|
@@ -1,7 +1,9 @@
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
Summary: A library that performs asynchronous DNS operations
|
|
|
Name: c-ares
|
|
|
-Version: 1.13.0
|
|
|
-Release: 4%{?_dist_release}
|
|
|
+Version: 1.14.0
|
|
|
+Release: 1%{?_dist_release}
|
|
|
License: MIT
|
|
|
Group: System Environment/Libraries
|
|
|
URL: http://c-ares.haxx.se/
|
|
@@ -36,6 +38,28 @@ Requires: pkgconfig
|
|
|
This package contains the header files and libraries needed to
|
|
|
compile applications or shared objects that use c-ares.
|
|
|
|
|
|
+
|
|
|
+%package -n compat32-%{name}
|
|
|
+Summary: A library that performs asynchronous DNS operations
|
|
|
+Group: System Environment/Libraries
|
|
|
+
|
|
|
+%description -n compat32-%{name}
|
|
|
+c-ares is a C library that performs DNS requests and name resolves
|
|
|
+asynchronously. c-ares is a fork of the library named 'ares', written
|
|
|
+by Greg Hudson at MIT.
|
|
|
+
|
|
|
+
|
|
|
+%package -n compat32-%{name}-devel
|
|
|
+Summary: Development files for c-ares
|
|
|
+Group: Development/Libraries
|
|
|
+Requires: compat32-%{name} = %{version}-%{release}
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n compat32-%{name}-devel
|
|
|
+This package contains the header files and libraries needed to
|
|
|
+compile applications or shared objects that use c-ares.
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
%patch0 -p1 -b .optflags
|
|
@@ -77,7 +101,24 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/pkgconfig/libcares.pc
|
|
|
%{_mandir}/man3/ares_*
|
|
|
|
|
|
+%if %{build_compat32}
|
|
|
+
|
|
|
+%files -n compat32-%{name}
|
|
|
+%defattr(-, root, root)
|
|
|
+%{_libdir}/*.so.*
|
|
|
+
|
|
|
+%files -n compat32-%{name}-devel
|
|
|
+%defattr(-, root, root, 0755)
|
|
|
+%{_libdir}/*.so
|
|
|
+%{_libdir}/pkgconfig/libcares.pc
|
|
|
+
|
|
|
+%endif
|
|
|
+
|
|
|
%changelog
|
|
|
+* Fri Mar 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.14.0-1
|
|
|
+- updated to 1.14.0.
|
|
|
+- added compat32-* subpackages.
|
|
|
+
|
|
|
* Sun Dec 24 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.13.0-4
|
|
|
- initial build for Vine Linux.
|
|
|
|