apr-vl.spec 14 KB

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