apr-util-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. %define apuver 1
  2. Summary: Apache Portable Runtime Utility library
  3. Summary(ja): Apache ポータブルランタイムユーティリティライブラリ
  4. Name: apr-util
  5. Version: 1.5.4
  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. 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. %files pgsql
  151. %defattr(-,root,root,-)
  152. %{_libdir}/apr-util-%{apuver}/apr_dbd_pgsql*
  153. %files mysql
  154. %defattr(-,root,root,-)
  155. %{_libdir}/apr-util-%{apuver}/apr_dbd_mysql*
  156. %files sqlite
  157. %defattr(-,root,root,-)
  158. %{_libdir}/apr-util-%{apuver}/apr_dbd_sqlite*
  159. #files freetds
  160. #defattr(-,root,root,-)
  161. #{_libdir}/apr-util-%{apuver}/apr_dbd_freetds*
  162. %files odbc
  163. %defattr(-,root,root,-)
  164. %{_libdir}/apr-util-%{apuver}/apr_dbd_odbc*
  165. %files ldap
  166. %defattr(-,root,root,-)
  167. %{_libdir}/apr-util-%{apuver}/apr_ldap*
  168. %changelog
  169. * Mon May 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-1
  170. - updated to 1.5.4.
  171. * Tue Jul 22 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.5.3-2
  172. - add BR: libpq-devel instead of postgresql-devel
  173. * Thu May 22 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.3-1
  174. - update to 1.5.3
  175. - add BR: libdb-devel, libmysqlclient-devel
  176. - remove BR: db4-devel, MySQL-devel
  177. * Sat Oct 1 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.12-1
  178. - new upstream release
  179. - rebuilt with MySQL-5.5.15
  180. * Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 1.3.9-7
  181. - rebuilt with postgresql-9.0.3
  182. * Sat Apr 9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.9-6
  183. - rebuilt with unixODBC-2.2.14
  184. * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 1.3.9-5
  185. - rebuilt with rpm-4.8.1 for pkg-config
  186. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.9-4
  187. - rebuilt with gcc-4.4.3-3 on ppc
  188. * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.9-3
  189. - rebuilt with rpm-4.8.0-3 (on ppc)
  190. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-2
  191. - rebuild with db4-4.8.0
  192. * Sat Jan 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.9-1
  193. - new upstream release
  194. - dropped Patch100, 110, 120 and 130 (merged into upstream)
  195. - added BR: zlib-devel
  196. * Mon Aug 10 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.4-5
  197. - add Patch130 for fix CVE-2009-2412 (IOF apr_rmm_malloc)
  198. - This patch is included in 1.3.9
  199. * Thu Jun 11 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.4-4
  200. - add patch100 for fix CVE-2009-0023
  201. - add patch110 for fix CVE-2009-1955
  202. - add patch120 for fix CVE-2009-1956
  203. - These patches are included in 1.3.7 or later
  204. * Fri May 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.4-3
  205. - rebuilt with MySQL-5.1.34.
  206. * Thu Apr 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.4-2
  207. - rebuilt with openldap-2.4.11
  208. * Sat Oct 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.4-1vl5
  209. - new upstream release
  210. - split out DBD drivers and ldap support into subpackage
  211. * Fri Jun 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.0-1vl5
  212. - new upstream release
  213. - built with db-4.6.21
  214. * Sat Apr 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.12-2vl5
  215. - removed *.la files from devel package
  216. * Sat Apr 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.12-1vl5
  217. - new upstream release
  218. - added Patch3 from Fedora Core
  219. * Fri Mar 23 2007 Joe Orton <jorton@redhat.com> 1.2.8-6
  220. - add DBD DSO lifetime fix (r521327)
  221. * Thu Feb 21 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.2.10-0vl2
  222. - rebuild with expat-2.0.1
  223. * Sat Sep 29 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-0vl1
  224. - new upstream release
  225. * Thu May 10 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.8-0vl2
  226. - rebuilt with new toolchain
  227. * Sat Jan 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.8-0vl1
  228. - new upstream release
  229. - dropped Patch1 (merged into upstream)
  230. * Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.7-0vl2
  231. - rebuilt with openldap-2.3.27-0vl1
  232. * Mon May 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7-0vl1
  233. - initial build for Vine Linux based on FC package
  234. * Tue May 2 2006 Joe Orton <jorton@redhat.com> 1.2.7-2
  235. - update to 1.2.7
  236. - use pkg-config in apu-1-config to make it libdir-agnostic
  237. * Thu Apr 6 2006 Joe Orton <jorton@redhat.com> 1.2.6-2
  238. - update to 1.2.6
  239. - define LDAP_DEPRECATED in apr_ldap.h (r391985, #188073)
  240. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.2
  241. - bump again for double-long bug on ppc(64)
  242. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.1
  243. - rebuilt for new gcc4.1 snapshot and glibc changes
  244. * Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1.2.2-4
  245. - rebuild to drop reference to libexpat.la
  246. * Wed Jan 18 2006 Joe Orton <jorton@redhat.com> 1.2.2-3
  247. - disable sqlite2 support
  248. - BuildRequire e2fsprogs-devel
  249. - enable malloc paranoia in %%check
  250. * Tue Jan 3 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-2.2
  251. - rebuilt again
  252. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  253. - rebuilt
  254. * Tue Dec 6 2005 Joe Orton <jorton@redhat.com> 1.2.2-2
  255. - trim exports from .la file/--libs output (#174924)
  256. * Fri Nov 25 2005 Joe Orton <jorton@redhat.com> 1.2.2-1
  257. - update to 1.2.2
  258. * Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-3
  259. - fix epoch again
  260. * Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-2
  261. - update to 0.9.7
  262. - drop static libs (#170051)
  263. * Tue Jul 26 2005 Joe Orton <jorton@redhat.com> 0.9.6-3
  264. - add FILE bucket fix for truncated files (#159191)
  265. - add epoch to dependencies
  266. * Fri Mar 4 2005 Joe Orton <jorton@redhat.com> 0.9.6-2
  267. - rebuild
  268. * Wed Feb 9 2005 Joe Orton <jorton@redhat.com> 0.9.6-1
  269. - update to 0.9.6
  270. * Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-3
  271. - restore db-4.3 detection lost in 0.9.5 upgrade
  272. * Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-2
  273. - rebuild
  274. * Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-1
  275. - update to 0.9.5
  276. * Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 0.9.4-19
  277. - actually explicitly check for and detect db-4.3.
  278. * Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 0.9.4-18
  279. - rebuild against db-4.3.21.
  280. * Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 0.9.4-17
  281. - add security fix for CAN-2004-0786
  282. * Sat Jun 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-16
  283. - have -devel require matching release of apr-util
  284. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  285. - rebuilt
  286. * Thu Apr 1 2004 Joe Orton <jorton@redhat.com> 0.9.4-14
  287. - fix use of SHA1 passwords (#119651)
  288. * Tue Mar 30 2004 Joe Orton <jorton@redhat.com> 0.9.4-13
  289. - remove fundamentally broken check_sbcs() from xlate code
  290. * Fri Mar 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-12
  291. - tweak xlate fix
  292. * Fri Mar 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-11
  293. - rebuild with xlate fixes and tests enabled
  294. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-10.1
  295. - rebuilt
  296. * Tue Mar 2 2004 Joe Orton <jorton@redhat.com> 0.9.4-10
  297. - rename sdbm_* symbols to apu__sdbm_*
  298. * Mon Feb 16 2004 Joe Orton <jorton@redhat.com> 0.9.4-9
  299. - fix sdbm apr_dbm_exists() on s390x/ppc64
  300. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-8
  301. - rebuilt
  302. * Thu Feb 5 2004 Joe Orton <jorton@redhat.com> 0.9.4-7
  303. - fix warnings from use of apr_optional*.h with gcc 3.4
  304. * Thu Jan 29 2004 Joe Orton <jorton@redhat.com> 0.9.4-6
  305. - drop gdbm support
  306. * Thu Jan 8 2004 Joe Orton <jorton@redhat.com> 0.9.4-5
  307. - fix DB library detection
  308. * Sat Dec 13 2003 Jeff Johnson <jbj@jbj.org> 0.9.4-4
  309. - rebuild against db-4.2.52.
  310. * Mon Oct 13 2003 Jeff Johnson <jbj@jbj.org> 0.9.4-3
  311. - rebuild against db-4.2.42.
  312. * Mon Oct 6 2003 Joe Orton <jorton@redhat.com> 0.9.4-2
  313. - fix 'apu-config --apu-la-file' output
  314. * Mon Oct 6 2003 Joe Orton <jorton@redhat.com> 0.9.4-1
  315. - update to 0.9.4.
  316. * Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.9.3-10
  317. - rebuild
  318. * Mon Jul 7 2003 Joe Orton <jorton@redhat.com> 0.9.3-9
  319. - rebuild
  320. - don't run testuuid test because of #98677
  321. * Thu Jul 3 2003 Joe Orton <jorton@redhat.com> 0.9.3-8
  322. - rebuild
  323. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  324. - rebuilt
  325. * Tue May 20 2003 Joe Orton <jorton@redhat.com> 0.9.3-6
  326. - fix to detect crypt_r correctly (CAN-2003-0195)
  327. * Thu May 15 2003 Joe Orton <jorton@redhat.com> 0.9.3-5
  328. - fix to try linking against -ldb first (#90917)
  329. - depend on openldap, gdbm, db4, expat appropriately.
  330. * Tue May 13 2003 Joe Orton <jorton@redhat.com> 0.9.3-4
  331. - rebuild
  332. * Wed May 7 2003 Joe Orton <jorton@redhat.com> 0.9.3-3
  333. - make devel package conflict with old subversion-devel
  334. - run the less crufty parts of the test suite
  335. * Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-2
  336. - run ldconfig in post/postun
  337. * Mon Apr 28 2003 Joe Orton <jorton@redhat.com> 0.9.3-1
  338. - initial build