Package init
This commit is contained in:
commit
6d92555f23
41
0001-Use-RPM-compiler-options.patch
Normal file
41
0001-Use-RPM-compiler-options.patch
Normal file
@ -0,0 +1,41 @@
|
||||
From 7dada62a77e061c752123e672e844386ff3b01ea Mon Sep 17 00:00:00 2001
|
||||
From: Stephen Gallagher <sgallagh@redhat.com>
|
||||
Date: Wed, 10 Apr 2013 12:32:44 -0400
|
||||
Subject: [PATCH] Use RPM compiler options
|
||||
|
||||
---
|
||||
m4/cares-compilers.m4 | 19 ++++++-------------
|
||||
1 file changed, 6 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4
|
||||
index 7ee8e0dbe741c1a64149a0d20b826f507b3ec620..d7708230fb5628ae80fbf1052da0d2c78ebbc160 100644
|
||||
--- a/m4/cares-compilers.m4
|
||||
+++ b/m4/cares-compilers.m4
|
||||
@@ -143,19 +143,12 @@ AC_DEFUN([CARES_CHECK_COMPILER_GNU_C], [
|
||||
gccvhi=`echo $gccver | cut -d . -f1`
|
||||
gccvlo=`echo $gccver | cut -d . -f2`
|
||||
compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
|
||||
- flags_dbg_all="-g -g0 -g1 -g2 -g3"
|
||||
- flags_dbg_all="$flags_dbg_all -ggdb"
|
||||
- flags_dbg_all="$flags_dbg_all -gstabs"
|
||||
- flags_dbg_all="$flags_dbg_all -gstabs+"
|
||||
- flags_dbg_all="$flags_dbg_all -gcoff"
|
||||
- flags_dbg_all="$flags_dbg_all -gxcoff"
|
||||
- flags_dbg_all="$flags_dbg_all -gdwarf-2"
|
||||
- flags_dbg_all="$flags_dbg_all -gvms"
|
||||
- flags_dbg_yes="-g"
|
||||
- flags_dbg_off="-g0"
|
||||
- flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
|
||||
- flags_opt_yes="-O2"
|
||||
- flags_opt_off="-O0"
|
||||
+ flags_dbg_all=""
|
||||
+ flags_dbg_yes=""
|
||||
+ flags_dbg_off=""
|
||||
+ flags_opt_all=""
|
||||
+ flags_opt_yes=""
|
||||
+ flags_opt_off=""
|
||||
CURL_CHECK_DEF([_WIN32], [], [silent])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
--
|
||||
1.8.1.4
|
||||
BIN
c-ares-1.15.0.tar.gz
Normal file
BIN
c-ares-1.15.0.tar.gz
Normal file
Binary file not shown.
57
c-ares.spec
Normal file
57
c-ares.spec
Normal file
@ -0,0 +1,57 @@
|
||||
Name: c-ares
|
||||
Version: 1.15.0
|
||||
Release: 1
|
||||
Summary: A C library for asynchronous DNS requests
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/c-ares/c-ares
|
||||
Source0: https://github.com/c-ares/c-ares/releases/tag/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc autoconf automake libtool
|
||||
# Patch0 from Redhat is applied for stopping overriding AC_CONFIG_MACRO_DIR
|
||||
Patch0: 0001-Use-RPM-compiler-options.patch
|
||||
%description
|
||||
This is c-ares, an asynchronous resolver library. It is intended for applications
|
||||
which need to perform DNS queries without blocking, or need to perform multiple
|
||||
|
||||
%package devel
|
||||
Summary: C-ares development files
|
||||
Requires: %{name} = %{version}-%{release} pkgconfig
|
||||
|
||||
%description devel
|
||||
The headers and libraries files that c-ares required to compile applications or
|
||||
shared objects are contained in %{name}-devel package.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
autoreconf -if
|
||||
%configure --enable-shared --disable-dependency-tracking
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%delete_la
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc CHANGES LICENSE.md
|
||||
%{_libdir}/libcares.so.2.3.0
|
||||
%{_libdir}/libcares.so.2
|
||||
|
||||
%files devel
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_libdir}/libcares.so
|
||||
%{_libdir}/libcares.a
|
||||
%{_includedir}/*.h
|
||||
|
||||
%files help
|
||||
%doc NEWS README.cares README.md
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.15.0-1
|
||||
- Package Init
|
||||
Loading…
x
Reference in New Issue
Block a user