apr-util-vl.spec 13 KB

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