cvsdist f3c349
jorton 936408
%define apuver 1
cvsdist d4faa3
cvsdist f3c349
Summary: Apache Portable Runtime Utility library
cvsdist f3c349
Name: apr-util
bojan 1acc84
Version: 1.2.10
Jesse Keating c4dc1b
Release: 2%{?dist}
jorton 0f17f7
License: ASL 2.0
cvsdist f3c349
Group: System Environment/Libraries
cvsdist f3c349
URL: http://apr.apache.org/
bojan 1acc84
Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
bojan 1acc84
Source1: http://svn.apache.org/repos/asf/apr/apr-util/branches/1.2.x/dbd/apr_dbd_mysql.c
jorton 343dbc
Patch0: apr-util-1.2.2-exports.patch
jorton 4a0c2b
Patch2: apr-util-1.2.7-pkgconf.patch
jorton f141b8
Patch3: apr-util-1.2.8-dbddso.patch
cvsdist f3c349
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
jorton 3768c7
BuildRequires: autoconf, apr-devel >= 1.2.0
jorton 8e7e0a
BuildRequires: openldap-devel, db4-devel, expat-devel, e2fsprogs-devel
cvsdist f3c349
cvsdist f3c349
%description
cvsdist f3c349
The mission of the Apache Portable Runtime (APR) is to provide a
cvsdist f3c349
free library of C data structures and routines.  This library
cvsdist f3c349
contains additional utility interfaces for APR; including support
cvsdist f3c349
for XML, LDAP, database interfaces, URI parsing and more.
cvsdist f3c349
cvsdist f3c349
%package devel
cvsdist f3c349
Group: Development/Libraries
cvsdist f3c349
Summary: APR utility library development kit
jorton 4a0c2b
Requires: apr-util = %{version}-%{release}, apr-devel, pkgconfig
cvsdist d4faa3
Requires: openldap-devel, db4-devel, expat-devel
cvsdist f3c349
cvsdist f3c349
%description devel
cvsdist f3c349
This package provides the support files which can be used to 
cvsdist f3c349
build applications using the APR utility library.  The mission 
cvsdist f3c349
of the Apache Portable Runtime (APR) is to provide a free 
cvsdist f3c349
library of C data structures and routines.
cvsdist f3c349
jorton f141b8
%package pgsql
jorton f141b8
Group: Development/Libraries
jorton f141b8
Summary: APR utility library PostgreSQL DBD driver
jorton 040b95
BuildRequires: postgresql-devel
jorton f141b8
Requires: apr-util = %{version}-%{release}
jorton f141b8
jorton f141b8
%description pgsql
jorton f141b8
This package provides the PostgreSQL driver for the apr-util
jorton f141b8
DBD (database abstraction) interface.
jorton f141b8
jorton 040b95
%package mysql
jorton 040b95
Group: Development/Libraries
jorton 040b95
Summary: APR utility library MySQL DBD driver
jorton 040b95
BuildRequires: mysql-devel
jorton 040b95
Requires: apr-util = %{version}-%{release}
jorton 040b95
jorton 040b95
%description mysql
jorton 040b95
This package provides the MySQL driver for the apr-util DBD
jorton 040b95
(database abstraction) interface.
jorton 040b95
jorton 8e7e0a
%package sqlite
jorton 8e7e0a
Group: Development/Libraries
jorton 8e7e0a
Summary: APR utility library SQLite DBD driver
jorton 8e7e0a
BuildRequires: sqlite-devel >= 3.0.0
jorton 8e7e0a
Requires: apr-util = %{version}-%{release}
jorton 8e7e0a
jorton 8e7e0a
%description sqlite
jorton 8e7e0a
This package provides the SQLite driver for the apr-util DBD
jorton 8e7e0a
(database abstraction) interface.
jorton 8e7e0a
cvsdist f3c349
%prep
cvsdist f3c349
%setup -q
jorton 343dbc
%patch0 -p1 -b .exports
jorton 4a0c2b
%patch2 -p1 -b .pkgconf
jorton f141b8
%patch3 -p1 -b .dbddso
jorton 8e7e0a
jorton 040b95
cp $RPM_SOURCE_DIR/apr_dbd_mysql.c dbd
cvsdist f3c349
cvsdist f3c349
%build
cvsdist f3c349
autoheader && autoconf
cvsdist f3c349
%configure --with-apr=%{_prefix} \
cvsdist f3c349
        --includedir=%{_includedir}/apr-%{apuver} \
jorton 936408
        --with-ldap --without-gdbm \
jorton 040b95
        --with-sqlite3 --with-pgsql --with-mysql \
jorton 0dbfc7
        --with-berkeley-db \
jorton f141b8
        --without-sqlite2 \
jorton f141b8
        --enable-dbd-dso
jorton b19d2d
make %{?_smp_mflags}
cvsdist f3c349
cvsdist f3c349
%install
cvsdist f3c349
rm -rf $RPM_BUILD_ROOT
cvsdist f3c349
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist f3c349
jorton 51713d
# Unpackaged files; remove the static libaprutil
jorton 51713d
rm -f $RPM_BUILD_ROOT%{_libdir}/aprutil.exp \
jorton 51713d
      $RPM_BUILD_ROOT%{_libdir}/libapr*.a
jorton 51713d
jorton 51713d
# And remove the reference to the static libaprutil from the .la
jorton 51713d
# file.
jorton 936408
sed -i '/^old_library/s,libapr.*\.a,,' \
jorton 51713d
      $RPM_BUILD_ROOT%{_libdir}/libapr*.la
cvsdist f3c349
jorton 343dbc
# Remove unnecessary exports from dependency_libs
jorton 343dbc
sed -ri '/^dependency_libs/{s,-l(pq|sqlite[0-9]|rt|dl|uuid) ,,g}' \
jorton 343dbc
      $RPM_BUILD_ROOT%{_libdir}/libapr*.la
jorton 343dbc
jorton f141b8
# Trim libtool DSO cruft
jorton f141b8
rm -f $RPM_BUILD_ROOT%{_libdir}/apr-util-%{apuver}/*.*a
jorton f141b8
cvsdist 9a316f
%check
jorton 936408
# Run the less verbose test suites
jorton 1e09b5
export MALLOC_CHECK_=2 MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
jorton 936408
cd test
jorton 936408
make %{?_smp_mflags} testall testrmm testdbm
jorton f141b8
# testall breaks with DBD DSO; ignore
jorton f141b8
./testall -v -q || true
jorton 936408
./testrmm
cvsdist 9a316f
./testdbm auto tsdbm
cvsdist 9a316f
./testdbm -tDB auto tbdb.db
cvsdist 9a316f
cvsdist f3c349
%clean
cvsdist f3c349
rm -rf $RPM_BUILD_ROOT
cvsdist f3c349
cvsdist f3c349
%post -p /sbin/ldconfig
cvsdist f3c349
cvsdist f3c349
%postun -p /sbin/ldconfig
cvsdist f3c349
cvsdist f3c349
%files
cvsdist f3c349
%defattr(-,root,root,-)
jorton 79b1fd
%doc CHANGES LICENSE NOTICE
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.so.*
jorton f141b8
%dir %{_libdir}/apr-util-%{apuver}
jorton f141b8
jorton f141b8
%files pgsql
jorton f141b8
%defattr(-,root,root,-)
jorton f141b8
%{_libdir}/apr-util-%{apuver}/apr_dbd_pgsql*
cvsdist f3c349
jorton 040b95
%files mysql
jorton 040b95
%defattr(-,root,root,-)
jorton 040b95
%{_libdir}/apr-util-%{apuver}/apr_dbd_mysql*
jorton 040b95
jorton 8e7e0a
%files sqlite
jorton 8e7e0a
%defattr(-,root,root,-)
jorton 8e7e0a
%{_libdir}/apr-util-%{apuver}/apr_dbd_sqlite*
jorton 8e7e0a
cvsdist f3c349
%files devel
cvsdist f3c349
%defattr(-,root,root,-)
jorton 936408
%{_bindir}/apu-%{apuver}-config
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.*a
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.so
cvsdist f3c349
%{_includedir}/apr-%{apuver}/*.h
jorton 936408
%{_libdir}/pkgconfig/*.pc
cvsdist f3c349
cvsdist f3c349
%changelog
Jesse Keating c4dc1b
* Mon Sep 24 2007 Jesse Keating <jkeating@redhat.com> - 1.2.10-2
Jesse Keating c4dc1b
- Rebuild for upgrade path (add dist since that's now on F-7 branch)
Jesse Keating c4dc1b
bojan 1acc84
* Sun Sep  9 2007 Bojan Smojver <bojan@rexursive.com> 1.2.10-1
bojan 1acc84
- bump up to 1.2.10
bojan 1acc84
- pick up newly checked in MySQL DBD driver directly from ASF
bojan 1acc84
- remove dbdopen patch (fixed upstream)
bojan 1acc84
- remove xmlns patch (fixed upstream)
bojan 1acc84
- remove autoexpat patch (fixed upstream)
bojan 1acc84
jorton ad4520
* Sun Sep  2 2007 Joe Orton <jorton@redhat.com> 1.2.8-12
jorton ad4520
- rebuild for fixed APR 32-bit ABI
jorton ad4520
- remove sqlite driver from main package (#274521)
jorton ad4520
jorton bf55e3
* Wed Aug 22 2007 Joe Orton <jorton@redhat.com> 1.2.8-11
jorton bf55e3
- rebuild for expat soname bump
jorton bf55e3
jorton 0f17f7
* Tue Aug 21 2007 Joe Orton <jorton@redhat.com> 1.2.8-10
jorton 0f17f7
- fix License
jorton 0f17f7
jorton 8e7e0a
* Wed Aug  8 2007 Joe Orton <jorton@redhat.com> 1.2.8-9
jorton 8e7e0a
- add rewrite of expat autoconf code (upstream r493791)
jorton 8e7e0a
- fix build for new glibc open()-as-macro
jorton 8e7e0a
- split out sqlite subpackage
jorton 8e7e0a
jorton c658f8
* Tue Jul  3 2007 Joe Orton <jorton@redhat.com> 1.2.8-8
jorton c658f8
- add fix for attribute namespace handling in apr_xml (PR 41908)
jorton c658f8
jorton 3768c7
* Thu Apr  5 2007 Joe Orton <jorton@redhat.com> 1.2.8-7
jorton 3768c7
- remove old Conflicts, doxygen BR (#225254)
jorton 3768c7
jorton 568d57
* Fri Mar 23 2007 Joe Orton <jorton@redhat.com> 1.2.8-6
jorton 568d57
- add DBD DSO lifetime fix (r521327)
jorton 568d57
jorton b19d2d
* Thu Mar 22 2007 Joe Orton <jorton@redhat.com> 1.2.8-5
jorton b19d2d
- drop doxygen documentation (which caused multilib conflicts)
jorton b19d2d
jorton 040b95
* Wed Feb 28 2007 Joe Orton <jorton@redhat.com> 1.2.8-4
jorton 040b95
- add mysql driver in -mysql subpackage (Bojan Smojver, #222237)
jorton 040b95
jorton f141b8
* Tue Feb 27 2007 Joe Orton <jorton@redhat.com> 1.2.8-3
jorton f141b8
- build DBD drivers as DSOs (w/Bojan Smojver, #192922)
jorton f141b8
- split out pgsql driver into -pgsql subpackage
jorton f141b8
jorton e786a7
* Tue Dec  5 2006 Joe Orton <jorton@redhat.com> 1.2.8-2
jorton e786a7
- update to 1.2.8, pick up new libpq soname
jorton e786a7
jorton b59c89
* Fri Dec  1 2006 Joe Orton <jorton@redhat.com> 1.2.7-5
jorton b59c89
- really rebuild for db45
jorton b59c89
jorton 509f76
* Sat Nov 11 2006 Joe Orton <jorton@redhat.com> 1.2.7-4
jorton 509f76
- add support for BDB 4.5 from upstream, rebuild
jorton 509f76
jorton 229b40
* Wed Jul 19 2006 Joe Orton <jorton@redhat.com> 1.2.7-3
jorton 229b40
- fix buildconf with autoconf 2.60
jorton 229b40
Jesse Keating 8865f7
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.7-2.1
Jesse Keating 8865f7
- rebuild
Jesse Keating 8865f7
jorton 4a0c2b
* Tue May  2 2006 Joe Orton <jorton@redhat.com> 1.2.7-2
jorton 4a0c2b
- update to 1.2.7
jorton 4a0c2b
- use pkg-config in apu-1-config to make it libdir-agnostic
jorton 4a0c2b
jorton 0dbfc7
* Thu Apr  6 2006 Joe Orton <jorton@redhat.com> 1.2.6-2
jorton 0dbfc7
- update to 1.2.6
jorton 0dbfc7
- define LDAP_DEPRECATED in apr_ldap.h (r391985, #188073)
jorton 0dbfc7
Jesse Keating 73dc80
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.2
Jesse Keating 73dc80
- bump again for double-long bug on ppc(64)
Jesse Keating 73dc80
Jesse Keating 38fa9d
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.1
Jesse Keating 38fa9d
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating 38fa9d
jorton bb3544
* Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1.2.2-4
jorton bb3544
- rebuild to drop reference to libexpat.la
jorton bb3544
jorton 1e09b5
* Wed Jan 18 2006 Joe Orton <jorton@redhat.com> 1.2.2-3
jorton 1e09b5
- disable sqlite2 support
jorton 1e09b5
- BuildRequire e2fsprogs-devel
jorton 1e09b5
- enable malloc paranoia in %%check
jorton 1e09b5
Jesse Keating 8a9568
* Tue Jan  3 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-2.2
Jesse Keating 8a9568
- rebuilt again
Jesse Keating 8a9568
Jesse Keating c6af37
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating c6af37
- rebuilt
Jesse Keating c6af37
jorton 343dbc
* Tue Dec  6 2005 Joe Orton <jorton@redhat.com> 1.2.2-2
jorton 343dbc
- trim exports from .la file/--libs output (#174924)
jorton 343dbc
jorton 936408
* Fri Nov 25 2005 Joe Orton <jorton@redhat.com> 1.2.2-1
jorton 936408
- update to 1.2.2
jorton 936408
jorton b6aab2
* Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-3
jorton b6aab2
- fix epoch again
jorton b6aab2
jorton 51713d
* Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-2
jorton 51713d
- update to 0.9.7
jorton 51713d
- drop static libs (#170051)
jorton 51713d
jorton 51713d
* Tue Jul 26 2005 Joe Orton <jorton@redhat.com> 0.9.6-3
jorton 51713d
- add FILE bucket fix for truncated files (#159191)
jorton 51713d
- add epoch to dependencies
jorton 51713d
jorton d5bc40
* Fri Mar  4 2005 Joe Orton <jorton@redhat.com> 0.9.6-2
jorton d5bc40
- rebuild
jorton d5bc40
jorton 6bc0a7
* Wed Feb  9 2005 Joe Orton <jorton@redhat.com> 0.9.6-1
jorton 6bc0a7
- update to 0.9.6
jorton 6bc0a7
jorton 8be02a
* Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-3
jorton 8be02a
- restore db-4.3 detection lost in 0.9.5 upgrade
jorton 8be02a
jorton 7d8c8e
* Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-2
jorton 7d8c8e
- rebuild
jorton 7d8c8e
jorton 79b1fd
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-1
jorton 79b1fd
- update to 0.9.5
jorton 79b1fd
jbj 9a4e45
* Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 0.9.4-19
jbj 9a4e45
- actually explicitly check for and detect db-4.3.
jbj 9a4e45
jbj a95c23
* Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 0.9.4-18
jbj a95c23
- rebuild against db-4.3.21.
jbj a95c23
jorton ac38d2
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 0.9.4-17
jorton ac38d2
- add security fix for CAN-2004-0786
jorton ac38d2
cvsdist 63b89d
* Sat Jun 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-16
cvsdist 63b89d
- have -devel require matching release of apr-util
cvsdist 63b89d
cvsdist 95acfd
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 95acfd
- rebuilt
cvsdist 95acfd
cvsdist f9340e
* Thu Apr  1 2004 Joe Orton <jorton@redhat.com> 0.9.4-14
cvsdist f9340e
- fix use of SHA1 passwords (#119651)
cvsdist f9340e
cvsdist f9340e
* Tue Mar 30 2004 Joe Orton <jorton@redhat.com> 0.9.4-13
cvsdist f9340e
- remove fundamentally broken check_sbcs() from xlate code
cvsdist f9340e
cvsdist f9340e
* Fri Mar 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-12
cvsdist f9340e
- tweak xlate fix
cvsdist f9340e
cvsdist f9340e
* Fri Mar 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-11
cvsdist f9340e
- rebuild with xlate fixes and tests enabled
cvsdist f9340e
cvsdist f9340e
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-10.1
cvsdist 9a316f
- rebuilt
cvsdist 9a316f
cvsdist 9a316f
* Tue Mar  2 2004 Joe Orton <jorton@redhat.com> 0.9.4-10
cvsdist 9a316f
- rename sdbm_* symbols to apu__sdbm_*
cvsdist 9a316f
cvsdist 9a316f
* Mon Feb 16 2004 Joe Orton <jorton@redhat.com> 0.9.4-9
cvsdist 9a316f
- fix sdbm apr_dbm_exists() on s390x/ppc64
cvsdist 9a316f
cvsdist 9a316f
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-8
cvsdist 9a316f
- rebuilt
cvsdist 9a316f
cvsdist 9a316f
* Thu Feb  5 2004 Joe Orton <jorton@redhat.com> 0.9.4-7
cvsdist 9a316f
- fix warnings from use of apr_optional*.h with gcc 3.4
cvsdist 9a316f
cvsdist d4faa3
* Thu Jan 29 2004 Joe Orton <jorton@redhat.com> 0.9.4-6
cvsdist d4faa3
- drop gdbm support
cvsdist d4faa3
cvsdist d4faa3
* Thu Jan  8 2004 Joe Orton <jorton@redhat.com> 0.9.4-5
cvsdist d4faa3
- fix DB library detection
cvsdist d4faa3
cvsdist d4faa3
* Sat Dec 13 2003 Jeff Johnson <jbj@jbj.org> 0.9.4-4
cvsdist d4faa3
- rebuild against db-4.2.52.
cvsdist d4faa3
cvsdist d4faa3
* Mon Oct 13 2003 Jeff Johnson <jbj@jbj.org> 0.9.4-3
cvsdist d4faa3
- rebuild against db-4.2.42.
cvsdist d4faa3
cvsdist f3c349
* Mon Oct  6 2003 Joe Orton <jorton@redhat.com> 0.9.4-2
cvsdist f3c349
- fix 'apu-config --apu-la-file' output
cvsdist f3c349
cvsdist f3c349
* Mon Oct  6 2003 Joe Orton <jorton@redhat.com> 0.9.4-1
cvsdist f3c349
- update to 0.9.4.
cvsdist f3c349
cvsdist f3c349
* Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.9.3-10
cvsdist f3c349
- rebuild
cvsdist f3c349
cvsdist f3c349
* Mon Jul  7 2003 Joe Orton <jorton@redhat.com> 0.9.3-9
cvsdist f3c349
- rebuild
cvsdist f3c349
- don't run testuuid test because of #98677
cvsdist f3c349
cvsdist f3c349
* Thu Jul  3 2003 Joe Orton <jorton@redhat.com> 0.9.3-8
cvsdist f3c349
- rebuild
cvsdist f3c349
cvsdist f3c349
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist f3c349
- rebuilt
cvsdist f3c349
cvsdist f3c349
* Tue May 20 2003 Joe Orton <jorton@redhat.com> 0.9.3-6
cvsdist f3c349
- fix to detect crypt_r correctly (CAN-2003-0195)
cvsdist f3c349
cvsdist f3c349
* Thu May 15 2003 Joe Orton <jorton@redhat.com> 0.9.3-5
cvsdist f3c349
- fix to try linking against -ldb first (#90917)
cvsdist f3c349
- depend on openldap, gdbm, db4, expat appropriately.
cvsdist f3c349
cvsdist f3c349
* Tue May 13 2003 Joe Orton <jorton@redhat.com> 0.9.3-4
cvsdist f3c349
- rebuild
cvsdist f3c349
cvsdist f3c349
* Wed May  7 2003 Joe Orton <jorton@redhat.com> 0.9.3-3
cvsdist f3c349
- make devel package conflict with old subversion-devel
cvsdist f3c349
- run the less crufty parts of the test suite
cvsdist f3c349
cvsdist f3c349
* Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-2
cvsdist f3c349
- run ldconfig in post/postun
cvsdist f3c349
cvsdist f3c349
* Mon Apr 28 2003 Joe Orton <jorton@redhat.com> 0.9.3-1
cvsdist f3c349
- initial build