apr-util-vl.spec 13 KB

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