cvsdist f3c349b
936408f
%define apuver 1
cvsdist d4faa31
cvsdist f3c349b
Summary: Apache Portable Runtime Utility library
cvsdist f3c349b
Name: apr-util
0cc96da
Version: 1.2.12
b1bece0
Release: 7%{?dist}
0f17f77
License: ASL 2.0
cvsdist f3c349b
Group: System Environment/Libraries
cvsdist f3c349b
URL: http://apr.apache.org/
1acc849
Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
343dbcc
Patch0: apr-util-1.2.2-exports.patch
4a0c2b4
Patch2: apr-util-1.2.7-pkgconf.patch
f141b8f
Patch3: apr-util-1.2.8-dbddso.patch
84416ca
Patch4: apr-util-1.2.12-billionlaughs.patch
84416ca
Patch5: apr-util-1.2.12-strmatch.patch
84416ca
Patch6: apr-util-1.2.12-brigadevprintf.patch
cvsdist f3c349b
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
3768c7a
BuildRequires: autoconf, apr-devel >= 1.2.0
8e7e0a0
BuildRequires: openldap-devel, db4-devel, expat-devel, e2fsprogs-devel
cvsdist f3c349b
%description
cvsdist f3c349b
The mission of the Apache Portable Runtime (APR) is to provide a
cvsdist f3c349b
free library of C data structures and routines.  This library
cvsdist f3c349b
contains additional utility interfaces for APR; including support
cvsdist f3c349b
for XML, LDAP, database interfaces, URI parsing and more.
cvsdist f3c349b
cvsdist f3c349b
%package devel
cvsdist f3c349b
Group: Development/Libraries
cvsdist f3c349b
Summary: APR utility library development kit
4a0c2b4
Requires: apr-util = %{version}-%{release}, apr-devel, pkgconfig
cvsdist d4faa31
Requires: openldap-devel, db4-devel, expat-devel
cvsdist f3c349b
cvsdist f3c349b
%description devel
cvsdist f3c349b
This package provides the support files which can be used to 
cvsdist f3c349b
build applications using the APR utility library.  The mission 
cvsdist f3c349b
of the Apache Portable Runtime (APR) is to provide a free 
cvsdist f3c349b
library of C data structures and routines.
cvsdist f3c349b
f141b8f
%package pgsql
f141b8f
Group: Development/Libraries
f141b8f
Summary: APR utility library PostgreSQL DBD driver
040b95f
BuildRequires: postgresql-devel
f141b8f
Requires: apr-util = %{version}-%{release}
f141b8f
f141b8f
%description pgsql
f141b8f
This package provides the PostgreSQL driver for the apr-util
f141b8f
DBD (database abstraction) interface.
f141b8f
040b95f
%package mysql
040b95f
Group: Development/Libraries
040b95f
Summary: APR utility library MySQL DBD driver
040b95f
BuildRequires: mysql-devel
040b95f
Requires: apr-util = %{version}-%{release}
040b95f
040b95f
%description mysql
040b95f
This package provides the MySQL driver for the apr-util DBD
040b95f
(database abstraction) interface.
040b95f
8e7e0a0
%package sqlite
8e7e0a0
Group: Development/Libraries
8e7e0a0
Summary: APR utility library SQLite DBD driver
8e7e0a0
BuildRequires: sqlite-devel >= 3.0.0
8e7e0a0
Requires: apr-util = %{version}-%{release}
8e7e0a0
8e7e0a0
%description sqlite
8e7e0a0
This package provides the SQLite driver for the apr-util DBD
8e7e0a0
(database abstraction) interface.
8e7e0a0
cvsdist f3c349b
%prep
cvsdist f3c349b
%setup -q
343dbcc
%patch0 -p1 -b .exports
4a0c2b4
%patch2 -p1 -b .pkgconf
f141b8f
%patch3 -p1 -b .dbddso
84416ca
%patch4 -p4 -b .billionlaughs
4c30868
%patch5 -p3 -b .strmatch
84416ca
%patch6 -p4 -b .brigadevprintf
8e7e0a0
cvsdist f3c349b
%build
cvsdist f3c349b
autoheader && autoconf
cvsdist f3c349b
%configure --with-apr=%{_prefix} \
cvsdist f3c349b
        --includedir=%{_includedir}/apr-%{apuver} \
936408f
        --with-ldap --without-gdbm \
040b95f
        --with-sqlite3 --with-pgsql --with-mysql \
0dbfc76
        --with-berkeley-db \
f141b8f
        --without-sqlite2 \
f141b8f
        --enable-dbd-dso
b19d2d9
make %{?_smp_mflags}
cvsdist f3c349b
cvsdist f3c349b
%install
cvsdist f3c349b
rm -rf $RPM_BUILD_ROOT
cvsdist f3c349b
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist f3c349b
51713d6
# Unpackaged files; remove the static libaprutil
51713d6
rm -f $RPM_BUILD_ROOT%{_libdir}/aprutil.exp \
51713d6
      $RPM_BUILD_ROOT%{_libdir}/libapr*.a
51713d6
51713d6
# And remove the reference to the static libaprutil from the .la
51713d6
# file.
936408f
sed -i '/^old_library/s,libapr.*\.a,,' \
51713d6
      $RPM_BUILD_ROOT%{_libdir}/libapr*.la
cvsdist f3c349b
343dbcc
# Remove unnecessary exports from dependency_libs
343dbcc
sed -ri '/^dependency_libs/{s,-l(pq|sqlite[0-9]|rt|dl|uuid) ,,g}' \
343dbcc
      $RPM_BUILD_ROOT%{_libdir}/libapr*.la
343dbcc
f141b8f
# Trim libtool DSO cruft
f141b8f
rm -f $RPM_BUILD_ROOT%{_libdir}/apr-util-%{apuver}/*.*a
f141b8f
cvsdist 9a316fe
%check
936408f
# Run the less verbose test suites
1e09b59
export MALLOC_CHECK_=2 MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
936408f
cd test
0cc96da
make %{?_smp_mflags} testall
f141b8f
# testall breaks with DBD DSO; ignore
f141b8f
./testall -v -q || true
0cc96da
./testall testrmm
0cc96da
./testall testdbm
cvsdist 9a316fe
cvsdist f3c349b
%clean
cvsdist f3c349b
rm -rf $RPM_BUILD_ROOT
cvsdist f3c349b
cvsdist f3c349b
%post -p /sbin/ldconfig
cvsdist f3c349b
cvsdist f3c349b
%postun -p /sbin/ldconfig
cvsdist f3c349b
cvsdist f3c349b
%files
cvsdist f3c349b
%defattr(-,root,root,-)
79b1fdd
%doc CHANGES LICENSE NOTICE
cvsdist f3c349b
%{_libdir}/libaprutil-%{apuver}.so.*
f141b8f
%dir %{_libdir}/apr-util-%{apuver}
f141b8f
f141b8f
%files pgsql
f141b8f
%defattr(-,root,root,-)
f141b8f
%{_libdir}/apr-util-%{apuver}/apr_dbd_pgsql*
cvsdist f3c349b
040b95f
%files mysql
040b95f
%defattr(-,root,root,-)
040b95f
%{_libdir}/apr-util-%{apuver}/apr_dbd_mysql*
040b95f
8e7e0a0
%files sqlite
8e7e0a0
%defattr(-,root,root,-)
8e7e0a0
%{_libdir}/apr-util-%{apuver}/apr_dbd_sqlite*
8e7e0a0
cvsdist f3c349b
%files devel
cvsdist f3c349b
%defattr(-,root,root,-)
936408f
%{_bindir}/apu-%{apuver}-config
cvsdist f3c349b
%{_libdir}/libaprutil-%{apuver}.*a
cvsdist f3c349b
%{_libdir}/libaprutil-%{apuver}.so
cvsdist f3c349b
%{_includedir}/apr-%{apuver}/*.h
936408f
%{_libdir}/pkgconfig/*.pc
cvsdist f3c349b
cvsdist f3c349b
%changelog
b1bece0
* Mon Jun  8 2009 Bojan Smojver <bojan@rexursive.com> - 1.2.12-7
b1bece0
- include missing bit of the apr_strmatch.c patch
b1bece0
84416ca
* Mon Jun  8 2009 Bojan Smojver <bojan@rexursive.com> - 1.2.12-6
84416ca
- CVE-2009-0023
84416ca
- "billion laughs" fix of apr_xml_* interface
84416ca
- off by one in apr_brigade_vprintf
84416ca
cf6fb27
* Wed Jun 11 2008 Dennis Gilmore <dennis@ausil.us> - 1.2.12-5.1
cf6fb27
- minor rebuild on sparc
cf6fb27
7cef57c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.12-5
7cef57c
- Autorebuild for GCC 4.3
7cef57c
59ead4b
* Tue Dec  4 2007 Joe Orton <jorton@redhat.com> 1.2.12-4
59ead4b
- rebuild for OpenLDAP soname bump
59ead4b
dd56722
* Mon Dec  3 2007 Bojan Smojver <bojan@rexursive.com> - 1.2.12-3
9921473
- remove all instances of MySQL flags being added to APRUTIL_LDFLAGS
9921473
59ead4b
* Tue Nov 27 2007 Bojan Smojver <bojan@rexursive.com> - 1.2.12-1
0cc96da
- bump up to 1.2.12
0cc96da
- drop MySQL DBD driver, shipped upstream
0cc96da
- adjust various patches to apply
0cc96da
- rework tests in %%check (1.2.x got tests from trunk)
0cc96da
c4dc1bd
* Mon Sep 24 2007 Jesse Keating <jkeating@redhat.com> - 1.2.10-2
c4dc1bd
- Rebuild for upgrade path (add dist since that's now on F-7 branch)
c4dc1bd
1acc849
* Sun Sep  9 2007 Bojan Smojver <bojan@rexursive.com> 1.2.10-1
1acc849
- bump up to 1.2.10
1acc849
- pick up newly checked in MySQL DBD driver directly from ASF
1acc849
- remove dbdopen patch (fixed upstream)
1acc849
- remove xmlns patch (fixed upstream)
1acc849
- remove autoexpat patch (fixed upstream)
1acc849
ad45203
* Sun Sep  2 2007 Joe Orton <jorton@redhat.com> 1.2.8-12
ad45203
- rebuild for fixed APR 32-bit ABI
ad45203
- remove sqlite driver from main package (#274521)
ad45203
bf55e30
* Wed Aug 22 2007 Joe Orton <jorton@redhat.com> 1.2.8-11
bf55e30
- rebuild for expat soname bump
bf55e30
0f17f77
* Tue Aug 21 2007 Joe Orton <jorton@redhat.com> 1.2.8-10
0f17f77
- fix License
0f17f77
8e7e0a0
* Wed Aug  8 2007 Joe Orton <jorton@redhat.com> 1.2.8-9
8e7e0a0
- add rewrite of expat autoconf code (upstream r493791)
8e7e0a0
- fix build for new glibc open()-as-macro
8e7e0a0
- split out sqlite subpackage
8e7e0a0
c658f85
* Tue Jul  3 2007 Joe Orton <jorton@redhat.com> 1.2.8-8
c658f85
- add fix for attribute namespace handling in apr_xml (PR 41908)
c658f85
3768c7a
* Thu Apr  5 2007 Joe Orton <jorton@redhat.com> 1.2.8-7
3768c7a
- remove old Conflicts, doxygen BR (#225254)
3768c7a
568d577
* Fri Mar 23 2007 Joe Orton <jorton@redhat.com> 1.2.8-6
568d577
- add DBD DSO lifetime fix (r521327)
568d577
b19d2d9
* Thu Mar 22 2007 Joe Orton <jorton@redhat.com> 1.2.8-5
b19d2d9
- drop doxygen documentation (which caused multilib conflicts)
b19d2d9
040b95f
* Wed Feb 28 2007 Joe Orton <jorton@redhat.com> 1.2.8-4
040b95f
- add mysql driver in -mysql subpackage (Bojan Smojver, #222237)
040b95f
f141b8f
* Tue Feb 27 2007 Joe Orton <jorton@redhat.com> 1.2.8-3
f141b8f
- build DBD drivers as DSOs (w/Bojan Smojver, #192922)
f141b8f
- split out pgsql driver into -pgsql subpackage
f141b8f
e786a79
* Tue Dec  5 2006 Joe Orton <jorton@redhat.com> 1.2.8-2
e786a79
- update to 1.2.8, pick up new libpq soname
e786a79
b59c895
* Fri Dec  1 2006 Joe Orton <jorton@redhat.com> 1.2.7-5
b59c895
- really rebuild for db45
b59c895
509f768
* Sat Nov 11 2006 Joe Orton <jorton@redhat.com> 1.2.7-4
509f768
- add support for BDB 4.5 from upstream, rebuild
509f768
229b40e
* Wed Jul 19 2006 Joe Orton <jorton@redhat.com> 1.2.7-3
229b40e
- fix buildconf with autoconf 2.60
229b40e
8865f7d
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.7-2.1
8865f7d
- rebuild
8865f7d
4a0c2b4
* Tue May  2 2006 Joe Orton <jorton@redhat.com> 1.2.7-2
4a0c2b4
- update to 1.2.7
4a0c2b4
- use pkg-config in apu-1-config to make it libdir-agnostic
4a0c2b4
0dbfc76
* Thu Apr  6 2006 Joe Orton <jorton@redhat.com> 1.2.6-2
0dbfc76
- update to 1.2.6
0dbfc76
- define LDAP_DEPRECATED in apr_ldap.h (r391985, #188073)
0dbfc76
73dc808
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.2
73dc808
- bump again for double-long bug on ppc(64)
73dc808
38fa9d3
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.1
38fa9d3
- rebuilt for new gcc4.1 snapshot and glibc changes
38fa9d3
bb3544d
* Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1.2.2-4
bb3544d
- rebuild to drop reference to libexpat.la
bb3544d
1e09b59
* Wed Jan 18 2006 Joe Orton <jorton@redhat.com> 1.2.2-3
1e09b59
- disable sqlite2 support
1e09b59
- BuildRequire e2fsprogs-devel
1e09b59
- enable malloc paranoia in %%check
1e09b59
8a95683
* Tue Jan  3 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-2.2
8a95683
- rebuilt again
8a95683
c6af37a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c6af37a
- rebuilt
c6af37a
343dbcc
* Tue Dec  6 2005 Joe Orton <jorton@redhat.com> 1.2.2-2
343dbcc
- trim exports from .la file/--libs output (#174924)
343dbcc
936408f
* Fri Nov 25 2005 Joe Orton <jorton@redhat.com> 1.2.2-1
936408f
- update to 1.2.2
936408f
b6aab24
* Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-3
b6aab24
- fix epoch again
b6aab24
51713d6
* Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-2
51713d6
- update to 0.9.7
51713d6
- drop static libs (#170051)
51713d6
51713d6
* Tue Jul 26 2005 Joe Orton <jorton@redhat.com> 0.9.6-3
51713d6
- add FILE bucket fix for truncated files (#159191)
51713d6
- add epoch to dependencies
51713d6
d5bc40f
* Fri Mar  4 2005 Joe Orton <jorton@redhat.com> 0.9.6-2
d5bc40f
- rebuild
d5bc40f
6bc0a73
* Wed Feb  9 2005 Joe Orton <jorton@redhat.com> 0.9.6-1
6bc0a73
- update to 0.9.6
6bc0a73
8be02a8
* Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-3
8be02a8
- restore db-4.3 detection lost in 0.9.5 upgrade
8be02a8
7d8c8ea
* Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-2
7d8c8ea
- rebuild
7d8c8ea
79b1fdd
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-1
79b1fdd
- update to 0.9.5
79b1fdd
jbj 9a4e45a
* Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 0.9.4-19
jbj 9a4e45a
- actually explicitly check for and detect db-4.3.
jbj 9a4e45a
jbj a95c237
* Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 0.9.4-18
jbj a95c237
- rebuild against db-4.3.21.
jbj a95c237
ac38d22
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 0.9.4-17
ac38d22
- add security fix for CAN-2004-0786
ac38d22
cvsdist 63b89d7
* Sat Jun 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-16
cvsdist 63b89d7
- have -devel require matching release of apr-util
cvsdist 63b89d7
cvsdist 95acfd2
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 95acfd2
- rebuilt
cvsdist 95acfd2
cvsdist f9340e3
* Thu Apr  1 2004 Joe Orton <jorton@redhat.com> 0.9.4-14
cvsdist f9340e3
- fix use of SHA1 passwords (#119651)
cvsdist f9340e3
cvsdist f9340e3
* Tue Mar 30 2004 Joe Orton <jorton@redhat.com> 0.9.4-13
cvsdist f9340e3
- remove fundamentally broken check_sbcs() from xlate code
cvsdist f9340e3
cvsdist f9340e3
* Fri Mar 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-12
cvsdist f9340e3
- tweak xlate fix
cvsdist f9340e3
cvsdist f9340e3
* Fri Mar 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-11
cvsdist f9340e3
- rebuild with xlate fixes and tests enabled
cvsdist f9340e3
cvsdist f9340e3
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-10.1
cvsdist 9a316fe
- rebuilt
cvsdist 9a316fe
cvsdist 9a316fe
* Tue Mar  2 2004 Joe Orton <jorton@redhat.com> 0.9.4-10
cvsdist 9a316fe
- rename sdbm_* symbols to apu__sdbm_*
cvsdist 9a316fe
cvsdist 9a316fe
* Mon Feb 16 2004 Joe Orton <jorton@redhat.com> 0.9.4-9
cvsdist 9a316fe
- fix sdbm apr_dbm_exists() on s390x/ppc64
cvsdist 9a316fe
cvsdist 9a316fe
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-8
cvsdist 9a316fe
- rebuilt
cvsdist 9a316fe
cvsdist 9a316fe
* Thu Feb  5 2004 Joe Orton <jorton@redhat.com> 0.9.4-7
cvsdist 9a316fe
- fix warnings from use of apr_optional*.h with gcc 3.4
cvsdist 9a316fe
cvsdist d4faa31
* Thu Jan 29 2004 Joe Orton <jorton@redhat.com> 0.9.4-6
cvsdist d4faa31
- drop gdbm support
cvsdist d4faa31
cvsdist d4faa31
* Thu Jan  8 2004 Joe Orton <jorton@redhat.com> 0.9.4-5
cvsdist d4faa31
- fix DB library detection
cvsdist d4faa31
cvsdist d4faa31
* Sat Dec 13 2003 Jeff Johnson <jbj@jbj.org> 0.9.4-4
cvsdist d4faa31
- rebuild against db-4.2.52.
cvsdist d4faa31
cvsdist d4faa31
* Mon Oct 13 2003 Jeff Johnson <jbj@jbj.org> 0.9.4-3
cvsdist d4faa31
- rebuild against db-4.2.42.
cvsdist d4faa31
cvsdist f3c349b
* Mon Oct  6 2003 Joe Orton <jorton@redhat.com> 0.9.4-2
cvsdist f3c349b
- fix 'apu-config --apu-la-file' output
cvsdist f3c349b
cvsdist f3c349b
* Mon Oct  6 2003 Joe Orton <jorton@redhat.com> 0.9.4-1
cvsdist f3c349b
- update to 0.9.4.
cvsdist f3c349b
cvsdist f3c349b
* Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.9.3-10
cvsdist f3c349b
- rebuild
cvsdist f3c349b
cvsdist f3c349b
* Mon Jul  7 2003 Joe Orton <jorton@redhat.com> 0.9.3-9
cvsdist f3c349b
- rebuild
cvsdist f3c349b
- don't run testuuid test because of #98677
cvsdist f3c349b
cvsdist f3c349b
* Thu Jul  3 2003 Joe Orton <jorton@redhat.com> 0.9.3-8
cvsdist f3c349b
- rebuild
cvsdist f3c349b
cvsdist f3c349b
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist f3c349b
- rebuilt
cvsdist f3c349b
cvsdist f3c349b
* Tue May 20 2003 Joe Orton <jorton@redhat.com> 0.9.3-6
cvsdist f3c349b
- fix to detect crypt_r correctly (CAN-2003-0195)
cvsdist f3c349b
cvsdist f3c349b
* Thu May 15 2003 Joe Orton <jorton@redhat.com> 0.9.3-5
cvsdist f3c349b
- fix to try linking against -ldb first (#90917)
cvsdist f3c349b
- depend on openldap, gdbm, db4, expat appropriately.
cvsdist f3c349b
cvsdist f3c349b
* Tue May 13 2003 Joe Orton <jorton@redhat.com> 0.9.3-4
cvsdist f3c349b
- rebuild
cvsdist f3c349b
cvsdist f3c349b
* Wed May  7 2003 Joe Orton <jorton@redhat.com> 0.9.3-3
cvsdist f3c349b
- make devel package conflict with old subversion-devel
cvsdist f3c349b
- run the less crufty parts of the test suite
cvsdist f3c349b
cvsdist f3c349b
* Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-2
cvsdist f3c349b
- run ldconfig in post/postun
cvsdist f3c349b
cvsdist f3c349b
* Mon Apr 28 2003 Joe Orton <jorton@redhat.com> 0.9.3-1
cvsdist f3c349b
- initial build