apr-util-vl.spec 13 KB

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