apr-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. %define aprver 1
  2. # Arches on which the multilib apr.h hack is needed:
  3. %define multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x x86_64
  4. Summary: Apache Portable Runtime library
  5. Summary(ja): Apache ポータブルランタイムライブラリ
  6. Name: apr
  7. Version: 1.7.0
  8. Release: 3%{?_dist_release}
  9. Group: system
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. License: Apache Software License
  13. URL: https://apr.apache.org/
  14. Source0: %{name}-%{version}.tar.bz2
  15. Source1: apr-wrapper.h
  16. Patch1: apr-1.2.2-libdir.patch
  17. Patch2: apr-1.3.3-pkgconf.patch
  18. Patch3: apr-1.7.0-deepbind.patch
  19. Patch4: apr-1.7.0-autoconf.patch
  20. Patch5: apr-1.7.0-r1891269+.patch
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: autoconf, libtool, python, doxygen
  23. BuildRequires: libuuid-devel
  24. # To enable SCTP support
  25. BuildRequires: lksctp-tools-devel
  26. Conflicts: subversion < 0.20.1-2
  27. Obsoletes: apache2-apr
  28. %description
  29. The mission of the Apache Portable Runtime (APR) is to provide a
  30. free library of C data structures and routines, forming a system
  31. portability layer to as many operating systems as possible,
  32. including Unices, MS Win32, BeOS and OS/2.
  33. %package devel
  34. Summary: APR library development kit
  35. Summary(ja): APR ライブラリ開発キット
  36. Group: programming
  37. Requires: %{name} = %{version}-%{release}
  38. Conflicts: subversion-devel < 0.20.1-2
  39. Obsoletes: apache2-apr-devel
  40. %description devel
  41. This package provides the support files which can be used to
  42. build applications using the APR library. The mission of the
  43. Apache Portable Runtime (APR) is to provide a free library of
  44. C data structures and routines.
  45. %debug_package
  46. %prep
  47. %setup -q
  48. %patch1 -p1 -b .libdir
  49. %patch2 -p1 -b .pkgconf
  50. %patch3 -p1 -b .deepbind
  51. %patch4 -p1 -b .autoconf-2-71
  52. %patch5 -p1 -b .r1891269+
  53. %build
  54. # regenerate configure script etc.
  55. ./buildconf
  56. # Forcibly prevent detection of shm_open (which then picks up but
  57. # does not use -lrt).
  58. export ac_cv_search_shm_open=no
  59. %configure \
  60. --includedir=%{_includedir}/apr-%{aprver} \
  61. --with-installbuilddir=%{_libdir}/apr-%{aprver}/build \
  62. --with-devrandom=/dev/urandom \
  63. --disable-static \
  64. CC=gcc CXX=g++
  65. make %{?_smp_mflags} && make dox
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. make install DESTDIR=$RPM_BUILD_ROOT
  69. # Move docs to more convenient location
  70. rm -rf html
  71. mkdir -p html
  72. cp -pr docs/dox/html/* html/
  73. # mv docs/dox/html html
  74. # Trim exported dependecies
  75. sed -ri '/^dependency_libs/{s,-l(uuid|crypt) ,,g}' \
  76. $RPM_BUILD_ROOT%{_libdir}/libapr*.la
  77. sed -ri '/^LIBS=/{s,-l(uuid|crypt) ,,g;s/ */ /g}' \
  78. $RPM_BUILD_ROOT%{_bindir}/apr-%{aprver}-config
  79. %ifarch %{multilib_arches}
  80. # Ugly hack to allow parallel installation of 32-bit and 64-bit apr-devel
  81. # packages:
  82. mv $RPM_BUILD_ROOT%{_includedir}/apr-%{aprver}/apr.h \
  83. $RPM_BUILD_ROOT%{_includedir}/apr-%{aprver}/apr-%{_arch}.h
  84. install -c -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_includedir}/apr-%{aprver}/apr.h
  85. %endif
  86. # Unpackaged files:
  87. rm -f $RPM_BUILD_ROOT%{_libdir}/apr.exp
  88. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  89. %check
  90. # Fail if LFS support isn't present in a 32-bit build, since this
  91. # breaks ABI and the soname doesn't change: see #254241
  92. if grep 'define SIZEOF_VOIDP 4' include/apr.h \
  93. && ! grep off64_t include/apr.h; then
  94. cat config.log
  95. : LFS support not present in 32-bit build
  96. exit 1
  97. fi
  98. pushd test
  99. make %{?_smp_mflags}
  100. ./testall -v -q
  101. popd
  102. %clean
  103. rm -rf $RPM_BUILD_ROOT
  104. %files
  105. %defattr(-,root,root,-)
  106. %license LICENSE
  107. %doc CHANGES NOTICE
  108. %{_libdir}/libapr-%{aprver}.so.*
  109. %files devel
  110. %defattr(-,root,root,-)
  111. %doc docs/APRDesign.html docs/canonical_filenames.html
  112. %doc docs/incomplete_types docs/non_apr_programs
  113. %{_bindir}/apr-%{aprver}-config
  114. #{_libdir}/libapr-%{aprver}.a
  115. %{_libdir}/libapr-%{aprver}.so
  116. %{_libdir}/pkgconfig/*.pc
  117. %dir %{_libdir}/apr-%{aprver}
  118. %dir %{_libdir}/apr-%{aprver}/build
  119. %{_libdir}/apr-%{aprver}/build/*
  120. %dir %{_includedir}/apr-%{aprver}
  121. %{_includedir}/apr-%{aprver}/*.h
  122. %changelog
  123. * Fri Nov 11 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.0-3
  124. - dropped ldconfig scriptlets.
  125. * Wed Aug 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.0-2
  126. - rebuilt with current environment.
  127. * Sat Oct 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.0-1
  128. - updated to 1.7.0.
  129. - dropped Patch1 and 3: fixed in upstream.
  130. * Sun Nov 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.6.5-1
  131. - updated to 1.6.5.
  132. - dropped Patch2.
  133. - imported Patch1 from rawhide.
  134. * Mon May 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.2-1
  135. - updated to 1.5.2.
  136. * Thu May 22 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.1-1
  137. - update to 1.5.1
  138. * Sat Oct 1 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.5-1
  139. - new upstream release
  140. * Wed Sep 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.2-1
  141. - new upstream release
  142. - built with rpm-4.8.1
  143. - removed static libraries from devel package
  144. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.10-1
  145. - rebuilt with new toolchain
  146. * Thu Dec 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.9-1
  147. - new upstream release
  148. * Mon Aug 10 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.8-1
  149. - new upstream release with security fix (CVE-2009-2412)
  150. * Mon Jun 08 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-1
  151. - new upstream release
  152. * Sat Oct 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.3-1vl5
  153. - new upstream release
  154. - updated Patch5
  155. * Wed Jun 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.0-1vl5
  156. - new upstream release
  157. - removed Patch1 and 6
  158. * Sat Apr 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.12-2vl5
  159. - removed *.la files from devel package
  160. * Sat Apr 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.12-1vl5
  161. - new upstream release
  162. - added Patch2 and 6 from Fedora
  163. * Mon Jun 19 2006 Joe Orton <jorton@redhat.com> 1.2.7-9
  164. - add fix for use of %%pI with psprintf
  165. * Thu Nov 24 2005 Joe Orton <jorton@redhat.com> 0.9.7-3
  166. - use RTLD_DEEPBIND in apr_dso_open by default
  167. * Sat Sep 29 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.11-0vl1
  168. - new upstream release
  169. * Thu Jul 26 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.9-0vl1
  170. - new upstream release
  171. * Mon May 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.8-0vl3
  172. - remove Requires: gcc = %%(gcc -dumpversion)
  173. * Thu May 10 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.8-0vl2
  174. - rebuilt with new toolchain
  175. * Sat Jan 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.8-0vl1
  176. - new upstream release
  177. * Mon May 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7-0vl1
  178. - initial build for Vine Linux based on FC package
  179. * Tue May 23 2006 Joe Orton <jorton@redhat.com> 1.2.7-7
  180. - fix another multilib conflict (#192659)
  181. * Tue May 16 2006 Joe Orton <jorton@redhat.com> 1.2.7-6
  182. - BR e2fsprogs-devel for libuuid
  183. * Mon May 8 2006 Joe Orton <jorton@redhat.com> 1.2.7-4
  184. - use multilib parallel-installation wrapper hack for apr.h
  185. * Tue May 2 2006 Joe Orton <jorton@redhat.com> 1.2.7-3
  186. - fix installbuilddir in apr-1-config
  187. * Tue May 2 2006 Joe Orton <jorton@redhat.com> 1.2.7-2
  188. - update to 1.2.7
  189. - use pkg-config in apr-1-config to make it libdir-agnostic
  190. * Thu Apr 6 2006 Joe Orton <jorton@redhat.com> 1.2.6-2
  191. - update to 1.2.6
  192. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-7.2
  193. - bump again for double-long bug on ppc(64)
  194. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-7.1
  195. - rebuilt for new gcc4.1 snapshot and glibc changes
  196. * Wed Jan 4 2006 Joe Orton <jorton@redhat.com> 1.2.2-7
  197. - fix namespace pollution (r354824, r355464)
  198. * Wed Jan 4 2006 Joe Orton <jorton@redhat.com> 1.2.2-6
  199. - fix build with recent glibc (#176911)
  200. * Tue Jan 3 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-5.2
  201. - rebuilt again
  202. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  203. - rebuilt
  204. * Fri Dec 9 2005 Joe Orton <jorton@redhat.com> 1.2.2-5
  205. - rebuild for new gcc
  206. * Thu Dec 8 2005 Joe Orton <jorton@redhat.com> 1.2.2-4
  207. - add apr_file_seek() fixes from upstream (r326593, r326597)
  208. * Wed Dec 7 2005 Joe Orton <jorton@redhat.com> 1.2.2-3
  209. - apr-1-config: strip more exports (#175124)
  210. * Tue Dec 6 2005 Joe Orton <jorton@redhat.com> 1.2.2-2
  211. - avoid linking against -lrt
  212. - don't print -L${libdir} in --libs output
  213. - don't export -lcrypt/-luuid in .la file
  214. * Fri Dec 2 2005 Joe Orton <jorton@redhat.com> 1.2.2-1
  215. - update to 1.2.2
  216. * Thu Nov 24 2005 Joe Orton <jorton@redhat.com> 0.9.7-3
  217. - use RTLD_DEEPBIND in apr_dso_open by default
  218. * Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-2
  219. - update to 0.9.7
  220. * Fri Sep 30 2005 Florian La Roche <laroche@redhat.com>
  221. - rebuild for new gcc
  222. * Thu Sep 15 2005 Joe Orton <jorton@redhat.com> 0.9.6-6
  223. - don't override CFLAGS at build time
  224. - allow setting TCP_NODELAY and TCP_CORK concurrently
  225. - use _exit() not exit() in child if exec*() fails (upstream #30913)
  226. * Fri Sep 9 2005 Joe Orton <jorton@redhat.com> 0.9.6-5
  227. - add from 0.9.x branch:
  228. * fix for apr_{uid,gid}_* error handling (r239592)
  229. * fix for apr_file_ write flushing (r267192)
  230. - add backport for use of readdir64_r (r265032, r265681, r265684)
  231. * Mon Jul 11 2005 Florian La Roche <laroche@redhat.com>
  232. - rebuild
  233. * Tue May 17 2005 Joe Orton <jorton@redhat.com> 0.9.6-3
  234. - fix apr_procattr_child_*_set error handling
  235. * Tue Mar 1 2005 Joe Orton <jorton@redhat.com> 0.9.6-2
  236. - have apr-devel depend on specific version of gcc
  237. - add NOTICE to docdir
  238. * Wed Feb 9 2005 Joe Orton <jorton@redhat.com> 0.9.6-1
  239. - update to 0.9.6
  240. * Wed Feb 2 2005 Joe Orton <jorton@redhat.com> 0.9.5-4
  241. - don't disable sendfile on s390 (IBM LTC, #146891)
  242. * Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-3
  243. - really fix apr-config --srcdir
  244. * Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-2
  245. - fix apr-config --srcdir again
  246. * Sun Nov 21 2004 Joe Orton <jorton@redhat.com> 0.9.5-1
  247. - update to 0.9.5
  248. * Mon Sep 27 2004 Joe Orton <jorton@redhat.com> 0.9.4-24
  249. - rebuild
  250. * Wed Sep 1 2004 Joe Orton <jorton@redhat.com> 0.9.4-23
  251. - have -devel require apr of same V-R
  252. * Tue Aug 31 2004 Joe Orton <jorton@redhat.com> 0.9.4-22
  253. - backport fixes from HEAD:
  254. * correct implementation of nested mutexes
  255. * support for POSIX semaphores on LP64 platforms
  256. * Thu Jul 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-21
  257. - rebuild for another attempt at using sem_open
  258. * Tue Jul 13 2004 Joe Orton <jorton@redhat.com> 0.9.4-20
  259. - move sticky/suid bits outside APR_OS_DEFAULT bitmask (Greg Hudson)
  260. * Thu Jul 1 2004 Joe Orton <jorton@redhat.com> 0.9.4-19
  261. - rebuild
  262. * Wed Jun 30 2004 Joe Orton <jorton@redhat.com> 0.9.4-18
  263. - rebuild now /dev/shm is mounted
  264. * Thu Jun 17 2004 Joe Orton <jorton@redhat.com> 0.9.4-17
  265. - add fix for cleanup structure reuse (part of upstream #23567)
  266. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  267. - rebuilt
  268. * Thu Jun 10 2004 Joe Orton <jorton@redhat.com> 0.9.4-15
  269. - add support for setuid/setgid/sticky bits (Andr辿 Malo)
  270. - add apr_threadattr_{guardsize,stacksize}_set() (latter by Jeff Trawick)
  271. * Mon Jun 7 2004 Joe Orton <jorton@redhat.com> 0.9.4-14
  272. - enable posixsem and process-shared pthread mutex support, but
  273. ensure that sysvsem remains the default mechanism
  274. * Mon May 24 2004 Joe Orton <jorton@redhat.com> 0.9.4-13
  275. - entirely remove 2Gb file size limit from apr_file_copy();
  276. fixes "svnadmin hotcopy" on repos with >2Gb strings table
  277. - work around getnameinfo bugs with v4-mapped addresses
  278. - fix apr_time_exp_get() for dates in 2038 (Philip Martin)
  279. * Thu May 13 2004 Joe Orton <jorton@redhat.com> 0.9.4-12
  280. - use APR_LARGEFILE in apr_file_{copy,append}
  281. * Wed Mar 24 2004 Joe Orton <jorton@redhat.com> 0.9.4-11
  282. - add APR_LARGEFILE flag
  283. * Mon Mar 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-10
  284. - fix configure check for mmap of /dev/zero
  285. - just put -D_GNU_SOURCE in CPPFLAGS not _{BSD,SVID,XOPEN}_SOURCE
  286. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-9.1
  287. - rebuilt
  288. * Thu Feb 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-9
  289. - undocument apr_dir_read() ordering constraint and fix tests
  290. * Sun Feb 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-8
  291. - rebuilt without -Wall -Werror
  292. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-7
  293. - rebuilt
  294. * Tue Feb 3 2004 Joe Orton <jorton@redhat.com> 0.9.4-6
  295. - define apr_off_t as int/long/... to prevent it changing
  296. with _FILE_OFFSET_BITS on 32-bit platforms
  297. * Mon Jan 12 2004 Joe Orton <jorton@redhat.com> 0.9.4-5
  298. - add apr_temp_dir_get fixes from HEAD
  299. * Thu Jan 8 2004 Joe Orton <jorton@redhat.com> 0.9.4-4
  300. - ensure that libapr is linked against libpthread
  301. - don't link libapr against -lnsl
  302. * Thu Nov 13 2003 Joe Orton <jorton@redhat.com> 0.9.4-3
  303. - -devel package no longer requires libtool
  304. * Fri Oct 3 2003 Joe Orton <jorton@redhat.com> 0.9.4-2
  305. - disable tests on x86_64 (#97611)
  306. * Fri Oct 3 2003 Joe Orton <jorton@redhat.com> 0.9.4-1
  307. - update to 0.9.4, enable tests
  308. - ensure that libresolv is not used
  309. * Sun Sep 7 2003 Joe Orton <jorton@redhat.com> 0.9.3-14
  310. - use /dev/urandom (#103049)
  311. * Thu Jul 24 2003 Joe Orton <jorton@redhat.com> 0.9.3-13
  312. - add back CC=gcc, CXX=g++
  313. * Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.9.3-12
  314. - rebuild
  315. * Mon Jul 14 2003 Joe Orton <jorton@redhat.com> 0.9.3-11
  316. - work round useless autoconf 2.57 AC_DECL_SYS_SIGLIST
  317. * Thu Jul 10 2003 Joe Orton <jorton@redhat.com> 0.9.3-10
  318. - support --cc and --cpp arguments in apr-config
  319. * Thu Jul 3 2003 Joe Orton <jorton@redhat.com> 0.9.3-9
  320. - force libtool to use CC=gcc, CXX=g++
  321. * Thu Jul 3 2003 Joe Orton <jorton@redhat.com> 0.9.3-8
  322. - fix libtool location in apr_rules.mk
  323. * Mon Jun 30 2003 Joe Orton <jorton@redhat.com> 0.9.3-7
  324. - use AI_ADDRCONFIG in getaddrinfo() support (#73350)
  325. - include a working libtool script rather than relying on
  326. /usr/bin/libtool (#97695)
  327. * Wed Jun 18 2003 Joe Orton <jorton@redhat.com> 0.9.3-6
  328. - don't use /usr/bin/libtool
  329. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  330. - rebuilt
  331. * Tue May 20 2003 Joe Orton <jorton@redhat.com> 0.9.3-5
  332. - add fix for psprintf memory corruption (CAN-2003-0245)
  333. - remove executable bit from apr_poll.h
  334. * Thu May 1 2003 Joe Orton <jorton@redhat.com> 0.9.3-4
  335. - link libapr against libpthread
  336. - make apr-devel conflict with old subversion-devel
  337. - fix License
  338. * Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-3
  339. - run ldconfig in post/postun
  340. * Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-2
  341. - patch test suite to not care if IPv6 is disabled
  342. * Mon Apr 28 2003 Joe Orton <jorton@redhat.com> 0.9.3-1
  343. - initial build