apr-util-vl.spec 14 KB

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