apr-util-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. %define apuver 1
  2. Summary: Apache Portable Runtime Utility library
  3. Summary(ja): Apache ポータブルランタイムユーティリティライブラリ
  4. Name: apr-util
  5. Version: 1.3.9
  6. Release: 7%{?_dist_release}
  7. License: Apache Software License 2.0
  8. Group: System Environment/Libraries
  9. URL: http://apr.apache.org/
  10. Source0: %{name}-%{version}.tar.bz2
  11. Patch1: apr-util-1.2.7-pkgconf.patch
  12. Patch2: apr-util-1.3.7-nodbmdso.patch
  13. #security fix
  14. Patch100: apr-util-1.3.x-CVE-2009-0023.diff
  15. Patch110: apr-util-1.3.x-CVE-2009-1955.diff
  16. Patch120: apr-util-1.3.4_CVE-2009-1956.patch
  17. Patch130: apr-util-1.3.x-CVE-2009-2412.diff
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: autoconf, doxygen, apr-devel >= 1.2.0
  20. BuildRequires: db4-devel, expat-devel, libuuid-devel
  21. BuildRequires: postgresql-devel
  22. BuildRequires: MySQL-devel
  23. BuildRequires: zlib-devel
  24. BuildRequires: sqlite3-devel
  25. BuildRequires: unixODBC-devel
  26. BuildRequires: openldap-devel
  27. Conflicts: subversion < 0.20.1-2
  28. Obsoletes: apache2-apr
  29. %description
  30. The mission of the Apache Portable Runtime (APR) is to provide a
  31. free library of C data structures and routines. This library
  32. contains additional utility interfaces for APR; including support
  33. for XML, LDAP, database interfaces, URI parsing and more.
  34. %package devel
  35. Summary: APR utility library development kit
  36. Summary(ja): APR ユーティリティライブラリ開発キット
  37. Group: Development/Libraries
  38. Requires: apr-util = %{version}-%{release}, apr-devel, pkgconfig
  39. Requires: openldap-devel, db4-devel, expat-devel
  40. Conflicts: subversion-devel < 0.20.1-2
  41. Obsoletes: apache2-apr-devel
  42. %description devel
  43. This package provides the support files which can be used to
  44. build applications using the APR utility library. The mission
  45. of the Apache Portable Runtime (APR) is to provide a free
  46. library of C data structures and routines.
  47. %package pgsql
  48. Summary: APR utility library PostgreSQL DBD driver
  49. Group: System Environment/Libraries
  50. Requires: apr-util = %{version}-%{release}
  51. %description pgsql
  52. This package provides the PostgreSQL driver for the apr-util
  53. DBD (database abstraction) interface.
  54. %package mysql
  55. Summary: APR utility library MySQL DBD driver
  56. Group: System Environment/Libraries
  57. Requires: apr-util = %{version}-%{release}
  58. %description mysql
  59. This package provides the MySQL driver for the apr-util DBD
  60. (database abstraction) interface.
  61. %package sqlite
  62. Summary: APR utility library SQLite DBD driver
  63. Group: System Environment/Libraries
  64. Requires: apr-util = %{version}-%{release}
  65. %description sqlite
  66. This package provides the SQLite driver for the apr-util DBD
  67. (database abstraction) interface.
  68. #%package freetds
  69. #Group: Development/Libraries
  70. #Summary: APR utility library FreeTDS DBD driver
  71. #BuildRequires: freetds-devel
  72. #Requires: apr-util = %{version}-%{release}
  73. #%description freetds
  74. #This package provides the FreeTDS driver for the apr-util DBD
  75. #(database abstraction) interface.
  76. %package odbc
  77. Summary: APR utility library ODBC DBD driver
  78. Group: System Environment/Libraries
  79. Requires: apr-util = %{version}-%{release}
  80. %description odbc
  81. This package provides the ODBC driver for the apr-util DBD
  82. (database abstraction) interface.
  83. %package ldap
  84. Summary: APR utility library LDAP support
  85. Group: System Environment/Libraries
  86. Requires: apr-util = %{version}-%{release}
  87. %description ldap
  88. This package provides the LDAP support for the apr-util.
  89. %prep
  90. %setup -q
  91. %patch1 -p1 -b .pkgconf
  92. %patch2 -p1 -b .nodbmdso
  93. #patch100 -p0 -b .CVE-2009-0023
  94. #patch110 -p0 -b .CVE-2009-1955
  95. #patch120 -p0 -b .CVE-2009-1956
  96. #patch130 -p4 -b .CVE-2009-2412
  97. %build
  98. autoheader && autoconf
  99. %configure --with-apr=%{_prefix} \
  100. --includedir=%{_includedir}/apr-%{apuver} \
  101. --with-ldap --without-gdbm \
  102. --with-sqlite3 --with-pgsql --with-mysql --with-odbc \
  103. --with-berkeley-db \
  104. --without-sqlite2
  105. # --disable-util-dso
  106. make %{?_smp_mflags} && make dox
  107. %install
  108. rm -rf $RPM_BUILD_ROOT
  109. make install DESTDIR=$RPM_BUILD_ROOT
  110. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/aclocal
  111. install -m 644 build/find_apu.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
  112. # Documentation
  113. rm -rf html
  114. mkdir -p html
  115. cp -pr docs/dox/html/* html
  116. # Unpackaged files; remove the static libaprutil
  117. rm -f $RPM_BUILD_ROOT%{_libdir}/aprutil.exp \
  118. $RPM_BUILD_ROOT%{_libdir}/libapr*.a
  119. # remove *.la
  120. rm -f $RPM_BUILD_ROOT%{_libdir}/libapr*.la
  121. # And remove the reference to the static libaprutil from the .la
  122. # file.
  123. #sed -i '/^old_library/s,libapr.*\.a,,' \
  124. # $RPM_BUILD_ROOT%{_libdir}/libapr*.la
  125. # Remove unnecessary exports from dependency_libs
  126. #sed -ri '/^dependency_libs/{s,-l(pq|sqlite[0-9]|rt|dl|uuid) ,,g}' \
  127. # $RPM_BUILD_ROOT%{_libdir}/libapr*.la
  128. # Trim libtool DSO cruft
  129. rm -f $RPM_BUILD_ROOT%{_libdir}/apr-util-%{apuver}/*.*a
  130. %check
  131. # Run the less verbose test suites
  132. export MALLOC_CHECK_=2 MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
  133. cd test
  134. make %{?_smp_mflags} testall
  135. # testall breaks with DBD DSO; ignore
  136. export LD_LIBRARY_PATH="`echo "../dbm/.libs:../dbd/.libs:../ldap/.libs:$LD_LIBRARY_PATH" | sed -e 's/::*$//'`"
  137. ./testall -v -q || true
  138. ./testall testrmm
  139. ./testall testdbm
  140. %clean
  141. rm -rf $RPM_BUILD_ROOT
  142. %post -p /sbin/ldconfig
  143. %postun -p /sbin/ldconfig
  144. %files
  145. %defattr(-,root,root,-)
  146. %doc CHANGES LICENSE NOTICE
  147. %{_libdir}/libaprutil-%{apuver}.so.*
  148. %dir %{_libdir}/apr-util-%{apuver}
  149. %files devel
  150. %defattr(-,root,root,-)
  151. %{_bindir}/apu-%{apuver}-config
  152. #{_libdir}/libaprutil-%{apuver}.a
  153. %{_libdir}/libaprutil-%{apuver}.so
  154. %{_includedir}/apr-%{apuver}/*.h
  155. %{_libdir}/pkgconfig/*.pc
  156. %{_datadir}/aclocal/*.m4
  157. %doc --parents html
  158. %files pgsql
  159. %defattr(-,root,root,-)
  160. %{_libdir}/apr-util-%{apuver}/apr_dbd_pgsql*
  161. %files mysql
  162. %defattr(-,root,root,-)
  163. %{_libdir}/apr-util-%{apuver}/apr_dbd_mysql*
  164. %files sqlite
  165. %defattr(-,root,root,-)
  166. %{_libdir}/apr-util-%{apuver}/apr_dbd_sqlite*
  167. #files freetds
  168. #defattr(-,root,root,-)
  169. #{_libdir}/apr-util-%{apuver}/apr_dbd_freetds*
  170. %files odbc
  171. %defattr(-,root,root,-)
  172. %{_libdir}/apr-util-%{apuver}/apr_dbd_odbc*
  173. %files ldap
  174. %defattr(-,root,root,-)
  175. %{_libdir}/apr-util-%{apuver}/apr_ldap*
  176. %changelog
  177. * Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 1.3.9-7
  178. - rebuilt with postgresql-9.0.3
  179. * Sat Apr 9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.9-6
  180. - rebuilt with unixODBC-2.2.14
  181. * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 1.3.9-5
  182. - rebuilt with rpm-4.8.1 for pkg-config
  183. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.9-4
  184. - rebuilt with gcc-4.4.3-3 on ppc
  185. * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.9-3
  186. - rebuilt with rpm-4.8.0-3 (on ppc)
  187. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-2
  188. - rebuild with db4-4.8.0
  189. * Sat Jan 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.9-1
  190. - new upstream release
  191. - dropped Patch100, 110, 120 and 130 (merged into upstream)
  192. - added BR: zlib-devel
  193. * Mon Aug 10 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.4-5
  194. - add Patch130 for fix CVE-2009-2412 (IOF apr_rmm_malloc)
  195. - This patch is included in 1.3.9
  196. * Thu Jun 11 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.4-4
  197. - add patch100 for fix CVE-2009-0023
  198. - add patch110 for fix CVE-2009-1955
  199. - add patch120 for fix CVE-2009-1956
  200. - These patches are included in 1.3.7 or later
  201. * Fri May 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.4-3
  202. - rebuilt with MySQL-5.1.34.
  203. * Thu Apr 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.4-2
  204. - rebuilt with openldap-2.4.11
  205. * Sat Oct 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.4-1vl5
  206. - new upstream release
  207. - split out DBD drivers and ldap support into subpackage
  208. * Fri Jun 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.0-1vl5
  209. - new upstream release
  210. - built with db-4.6.21
  211. * Sat Apr 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.12-2vl5
  212. - removed *.la files from devel package
  213. * Sat Apr 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.12-1vl5
  214. - new upstream release
  215. - added Patch3 from Fedora Core
  216. * Fri Mar 23 2007 Joe Orton <jorton@redhat.com> 1.2.8-6
  217. - add DBD DSO lifetime fix (r521327)
  218. * Thu Feb 21 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.2.10-0vl2
  219. - rebuild with expat-2.0.1
  220. * Sat Sep 29 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-0vl1
  221. - new upstream release
  222. * Thu May 10 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.8-0vl2
  223. - rebuilt with new toolchain
  224. * Sat Jan 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.8-0vl1
  225. - new upstream release
  226. - dropped Patch1 (merged into upstream)
  227. * Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.7-0vl2
  228. - rebuilt with openldap-2.3.27-0vl1
  229. * Mon May 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7-0vl1
  230. - initial build for Vine Linux based on FC package
  231. * Tue May 2 2006 Joe Orton <jorton@redhat.com> 1.2.7-2
  232. - update to 1.2.7
  233. - use pkg-config in apu-1-config to make it libdir-agnostic
  234. * Thu Apr 6 2006 Joe Orton <jorton@redhat.com> 1.2.6-2
  235. - update to 1.2.6
  236. - define LDAP_DEPRECATED in apr_ldap.h (r391985, #188073)
  237. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.2
  238. - bump again for double-long bug on ppc(64)
  239. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.1
  240. - rebuilt for new gcc4.1 snapshot and glibc changes
  241. * Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1.2.2-4
  242. - rebuild to drop reference to libexpat.la
  243. * Wed Jan 18 2006 Joe Orton <jorton@redhat.com> 1.2.2-3
  244. - disable sqlite2 support
  245. - BuildRequire e2fsprogs-devel
  246. - enable malloc paranoia in %%check
  247. * Tue Jan 3 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-2.2
  248. - rebuilt again
  249. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  250. - rebuilt
  251. * Tue Dec 6 2005 Joe Orton <jorton@redhat.com> 1.2.2-2
  252. - trim exports from .la file/--libs output (#174924)
  253. * Fri Nov 25 2005 Joe Orton <jorton@redhat.com> 1.2.2-1
  254. - update to 1.2.2
  255. * Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-3
  256. - fix epoch again
  257. * Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-2
  258. - update to 0.9.7
  259. - drop static libs (#170051)
  260. * Tue Jul 26 2005 Joe Orton <jorton@redhat.com> 0.9.6-3
  261. - add FILE bucket fix for truncated files (#159191)
  262. - add epoch to dependencies
  263. * Fri Mar 4 2005 Joe Orton <jorton@redhat.com> 0.9.6-2
  264. - rebuild
  265. * Wed Feb 9 2005 Joe Orton <jorton@redhat.com> 0.9.6-1
  266. - update to 0.9.6
  267. * Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-3
  268. - restore db-4.3 detection lost in 0.9.5 upgrade
  269. * Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-2
  270. - rebuild
  271. * Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-1
  272. - update to 0.9.5
  273. * Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 0.9.4-19
  274. - actually explicitly check for and detect db-4.3.
  275. * Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 0.9.4-18
  276. - rebuild against db-4.3.21.
  277. * Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 0.9.4-17
  278. - add security fix for CAN-2004-0786
  279. * Sat Jun 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-16
  280. - have -devel require matching release of apr-util
  281. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  282. - rebuilt
  283. * Thu Apr 1 2004 Joe Orton <jorton@redhat.com> 0.9.4-14
  284. - fix use of SHA1 passwords (#119651)
  285. * Tue Mar 30 2004 Joe Orton <jorton@redhat.com> 0.9.4-13
  286. - remove fundamentally broken check_sbcs() from xlate code
  287. * Fri Mar 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-12
  288. - tweak xlate fix
  289. * Fri Mar 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-11
  290. - rebuild with xlate fixes and tests enabled
  291. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-10.1
  292. - rebuilt
  293. * Tue Mar 2 2004 Joe Orton <jorton@redhat.com> 0.9.4-10
  294. - rename sdbm_* symbols to apu__sdbm_*
  295. * Mon Feb 16 2004 Joe Orton <jorton@redhat.com> 0.9.4-9
  296. - fix sdbm apr_dbm_exists() on s390x/ppc64
  297. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-8
  298. - rebuilt
  299. * Thu Feb 5 2004 Joe Orton <jorton@redhat.com> 0.9.4-7
  300. - fix warnings from use of apr_optional*.h with gcc 3.4
  301. * Thu Jan 29 2004 Joe Orton <jorton@redhat.com> 0.9.4-6
  302. - drop gdbm support
  303. * Thu Jan 8 2004 Joe Orton <jorton@redhat.com> 0.9.4-5
  304. - fix DB library detection
  305. * Sat Dec 13 2003 Jeff Johnson <jbj@jbj.org> 0.9.4-4
  306. - rebuild against db-4.2.52.
  307. * Mon Oct 13 2003 Jeff Johnson <jbj@jbj.org> 0.9.4-3
  308. - rebuild against db-4.2.42.
  309. * Mon Oct 6 2003 Joe Orton <jorton@redhat.com> 0.9.4-2
  310. - fix 'apu-config --apu-la-file' output
  311. * Mon Oct 6 2003 Joe Orton <jorton@redhat.com> 0.9.4-1
  312. - update to 0.9.4.
  313. * Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.9.3-10
  314. - rebuild
  315. * Mon Jul 7 2003 Joe Orton <jorton@redhat.com> 0.9.3-9
  316. - rebuild
  317. - don't run testuuid test because of #98677
  318. * Thu Jul 3 2003 Joe Orton <jorton@redhat.com> 0.9.3-8
  319. - rebuild
  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-6
  323. - fix to detect crypt_r correctly (CAN-2003-0195)
  324. * Thu May 15 2003 Joe Orton <jorton@redhat.com> 0.9.3-5
  325. - fix to try linking against -ldb first (#90917)
  326. - depend on openldap, gdbm, db4, expat appropriately.
  327. * Tue May 13 2003 Joe Orton <jorton@redhat.com> 0.9.3-4
  328. - rebuild
  329. * Wed May 7 2003 Joe Orton <jorton@redhat.com> 0.9.3-3
  330. - make devel package conflict with old subversion-devel
  331. - run the less crufty parts of the test suite
  332. * Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-2
  333. - run ldconfig in post/postun
  334. * Mon Apr 28 2003 Joe Orton <jorton@redhat.com> 0.9.3-1
  335. - initial build