Browse Source

c-ares-1.14.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11609 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
891d6b1ad3
1 changed files with 43 additions and 2 deletions
  1. 43 2
      c/c-ares/c-ares-vl.spec

+ 43 - 2
c/c-ares/c-ares-vl.spec

@@ -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.