c-ares-vl.spec 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A library that performs asynchronous DNS operations
  3. Name: c-ares
  4. Version: 1.16.1
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: MIT
  10. URL: http://c-ares.haxx.se/
  11. Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
  12. # The license can be obtained at http://c-ares.haxx.se/license.html
  13. Source1: LICENSE
  14. Patch0: 0001-Use-RPM-compiler-options.patch
  15. Patch1: c-ares-1.10.0-multilib.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  17. BuildRequires: autoconf
  18. BuildRequires: automake
  19. BuildRequires: libtool
  20. %description
  21. c-ares is a C library that performs DNS requests and name resolves
  22. asynchronously. c-ares is a fork of the library named 'ares', written
  23. by Greg Hudson at MIT.
  24. %package devel
  25. Summary: Development files for c-ares
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: pkgconfig
  29. %description devel
  30. This package contains the header files and libraries needed to
  31. compile applications or shared objects that use c-ares.
  32. %package -n compat32-%{name}
  33. Summary: A library that performs asynchronous DNS operations
  34. Group: System Environment/Libraries
  35. %description -n compat32-%{name}
  36. c-ares is a C library that performs DNS requests and name resolves
  37. asynchronously. c-ares is a fork of the library named 'ares', written
  38. by Greg Hudson at MIT.
  39. %package -n compat32-%{name}-devel
  40. Summary: Development files for c-ares
  41. Group: Development/Libraries
  42. Requires: compat32-%{name} = %{version}-%{release}
  43. Requires: %{name}-devel = %{version}-%{release}
  44. %description -n compat32-%{name}-devel
  45. This package contains the header files and libraries needed to
  46. compile applications or shared objects that use c-ares.
  47. %prep
  48. %setup -q
  49. %patch0 -p1 -b .optflags
  50. #%patch1 -p1 -b .multilib
  51. cp %{SOURCE1} .
  52. f=CHANGES ; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
  53. %build
  54. autoreconf -if
  55. %configure --enable-shared --disable-static \
  56. --disable-dependency-tracking
  57. %{__make} %{?_smp_mflags}
  58. %install
  59. rm -rf $RPM_BUILD_ROOT
  60. make DESTDIR=$RPM_BUILD_ROOT install
  61. rm -f $RPM_BUILD_ROOT/%{_libdir}/libcares.la
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %files
  67. %defattr(-, root, root)
  68. %license LICENSE*
  69. %doc AUTHORS README.md README.cares CHANGES NEWS RELEASE-NOTES
  70. %{_libdir}/*.so.*
  71. %files devel
  72. %defattr(-, root, root, 0755)
  73. %{_includedir}/ares.h
  74. %{_includedir}/ares_build.h
  75. %{_includedir}/ares_dns.h
  76. %{_includedir}/ares_rules.h
  77. %{_includedir}/ares_version.h
  78. %{_libdir}/*.so
  79. %{_libdir}/pkgconfig/libcares.pc
  80. %{_mandir}/man3/ares_*
  81. %if %{build_compat32}
  82. %files -n compat32-%{name}
  83. %defattr(-, root, root)
  84. %{_libdir}/*.so.*
  85. %files -n compat32-%{name}-devel
  86. %defattr(-, root, root, 0755)
  87. %{_libdir}/*.so
  88. %endif
  89. %changelog
  90. * Tue Jun 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.16.1-1
  91. - updated to 1.16.1.
  92. * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.15.0-1
  93. - updated to 1.15.0.
  94. * Fri Mar 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.14.0-1
  95. - updated to 1.14.0.
  96. - added compat32-* subpackages.
  97. * Sun Dec 24 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.13.0-4
  98. - initial build for Vine Linux.
  99. * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-3
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  101. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-2
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  103. * Tue Jun 20 2017 Jakub Hrozek <jhrozek@redhat.com> - 1.13.0-1
  104. - update to 1.13.0
  105. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  107. * Thu Sep 29 2016 Tom Callaway <spot@fedoraproject.org> - 1.12.0-1
  108. - update to 1.12.0
  109. * Fri Feb 19 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.11.0
  110. - New upstream version 1.11.0
  111. * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-6
  112. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  113. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-5
  114. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  115. * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-4
  116. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  117. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
  118. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  119. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-2
  120. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  121. * Mon May 13 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.10.1-1
  122. - New upstream release 1.10
  123. - Obsolete upstreamed patches
  124. - Amend the multilib patch, there's no need to patch configure since we
  125. are running autoreconf anyways
  126. - https://raw.github.com/bagder/c-ares/cares-1_10_0/RELEASE-NOTES
  127. * Thu Apr 11 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.9.1-6
  128. - Apply an upstream patch to override AC_CONFIG_MACRO_DIR only conditionally
  129. * Thu Apr 11 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.9.1-5
  130. - Apply a patch by Stephen Gallagher to patch autoconf, not configure to
  131. allow optflags to be passed in by build environment
  132. - Run autoreconf before configure
  133. - git rm obsolete patches
  134. - Apply upstream patch to stop overriding AC_CONFIG_MACRO_DIR
  135. * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-4
  136. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  137. * Wed Aug 8 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.9.1-3
  138. - Include URL to the license text
  139. * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-2
  140. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  141. * Mon Jun 25 2012 Tom Callaway <spot@fedoraproject.org> - 1.9.1-1
  142. - update to 1.9.1
  143. * Sat Apr 28 2012 Tom Callaway <spot@fedoraproject.org> - 1.8.0-1
  144. - update to 1.8.0
  145. - fix multilib patch (thanks to Paul Howarth)
  146. * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-2
  147. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  148. * Wed Aug 17 2011 Jakub Hrozek <jhrozek@redhat.com> - 1.7.5-1
  149. - New upstream release 1.7.5
  150. - Obsoletes patch #2
  151. - Rebase patch #1 (optflags) to match the 1.7.5 code
  152. - Fixed Source0 URL to point at the upstream tarball
  153. * Mon Apr 11 2011 Jakub Hrozek <jhrozek@redhat.com> - 1.7.4-3
  154. - Apply upstream patch to fix rhbz#695424
  155. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-2
  156. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  157. * Fri Dec 10 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.4-1
  158. - update to 1.7.4
  159. * Wed Aug 25 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.3-3
  160. - Actually apply the patches
  161. * Wed Aug 25 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.3-2
  162. - apply couple of patches from upstream
  163. * Tue Jun 15 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.3-1
  164. - Upgrade to new upstream release 1.7.3 (obsoletes search/domain patch)
  165. - Fix conflict of -devel packages on multilib architectures (#602880)
  166. * Thu Jun 3 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.1-2
  167. - Use last instance of search/domain, not the first one (#597286)
  168. * Tue Mar 23 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.1-1
  169. - update to 1.7.1 which contains the IPv6 nameserver patch
  170. * Sun Mar 7 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.0-3
  171. - Change IPv6 nameserver patch according to upstream changes
  172. (upstream revisions 1199,1201,1202)
  173. * Wed Mar 3 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.0-2
  174. - Add a patch to allow usage of IPv6 nameservers
  175. * Tue Dec 1 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.0-1
  176. - update to 1.7.0
  177. * Sat Jul 25 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.6.0-3
  178. - Patch to make upstream build system honor our CFLAGS and friends.
  179. - Don't bother building throwaway static libs.
  180. - Disable autotools dependency tracking for cleaner build logs and possible
  181. slight build speedup.
  182. - Convert docs to UTF-8.
  183. - Update URLs.
  184. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
  185. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  186. * Wed Jul 22 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.0-1
  187. - update to 1.6.0
  188. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-2
  189. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  190. * Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.5.3-1
  191. - update to 1.5.3
  192. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.1-2
  193. - Autorebuild for GCC 4.3
  194. * Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.5.1-1
  195. - update to 1.5.1
  196. * Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.4.0-2
  197. - rebuild for ppc32
  198. * Wed Jun 27 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.4.0-1
  199. - bump to 1.4.0 (resolves bugzilla 243591)
  200. - get rid of static library (.a)
  201. * Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.2-1
  202. - bump to 1.3.2
  203. * Mon Sep 11 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.1-2
  204. - FC-6 bump
  205. * Mon Jul 10 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.1-1
  206. - bump to 1.3.1
  207. * Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.0-2
  208. - bump for FC-5 rebuild
  209. * Sun Sep 4 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.0-1
  210. - include LICENSE text
  211. - bump to 1.3.0
  212. * Tue May 31 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-4
  213. - use dist tag to prevent EVR overlap
  214. * Fri Apr 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-2
  215. - fix license (MIT, not LGPL)
  216. - get rid of libcares.la
  217. * Fri Apr 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-1
  218. - initial package creation