c-ares-vl.spec 10 KB

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