cvsdist f3c349
jorton b78928
%define apuver 1
cvsdist d4faa3
cvsdist f3c349
Summary: Apache Portable Runtime Utility library
cvsdist f3c349
Name: apr-util
jorton 8ebc10
Version: 1.2.7
jorton 390609
Release: 2
jorton d3d483
License: Apache Software License 2.0
cvsdist f3c349
Group: System Environment/Libraries
cvsdist f3c349
URL: http://apr.apache.org/
cvsdist f3c349
Source0: %{name}-%{version}.tar.gz
jorton d3d483
Patch0: apr-util-1.2.2-exports.patch
jorton 390609
Patch1: apr-util-1.2.6-ldap.patch
jorton 8ebc10
Patch2: apr-util-1.2.7-pkgconf.patch
cvsdist f3c349
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
jorton b78928
BuildRequires: autoconf, doxygen, apr-devel >= 1.2.0
jorton b78928
BuildRequires: openldap-devel, db4-devel, expat-devel
jorton f11e4f
BuildRequires: postgresql-devel, sqlite-devel >= 3.0.0
jorton f11e4f
BuildRequires: e2fsprogs-devel
cvsdist f3c349
Conflicts: subversion < 0.20.1-2
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 8ebc10
Requires: apr-util = %{version}-%{release}, apr-devel, pkgconfig
cvsdist d4faa3
Requires: openldap-devel, db4-devel, expat-devel
cvsdist f3c349
Conflicts: subversion-devel < 0.20.1-2
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
cvsdist f3c349
%prep
cvsdist f3c349
%setup -q
jorton d3d483
%patch0 -p1 -b .exports
jorton 390609
%patch1 -p1 -b .ldap
jorton 8ebc10
%patch2 -p1 -b .pkgconf
cvsdist f3c349
cvsdist f3c349
%build
cvsdist f3c349
autoheader && autoconf
cvsdist f3c349
%configure --with-apr=%{_prefix} \
cvsdist f3c349
        --includedir=%{_includedir}/apr-%{apuver} \
jorton b78928
        --with-ldap --without-gdbm \
jorton f11e4f
        --with-sqlite3 --with-pgsql \
jorton 390609
        --with-berkeley-db \
jorton f11e4f
        --without-sqlite2
cvsdist f3c349
make %{?_smp_mflags} && make dox
cvsdist f3c349
cvsdist f3c349
%install
cvsdist f3c349
rm -rf $RPM_BUILD_ROOT
cvsdist f3c349
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist f3c349
cvsdist f3c349
# Documentation
cvsdist f3c349
mv docs/dox/html html
cvsdist f3c349
jorton c060c7
# Unpackaged files; remove the static libaprutil
jorton c060c7
rm -f $RPM_BUILD_ROOT%{_libdir}/aprutil.exp \
jorton c060c7
      $RPM_BUILD_ROOT%{_libdir}/libapr*.a
jorton c060c7
jorton c060c7
# And remove the reference to the static libaprutil from the .la
jorton c060c7
# file.
jorton b78928
sed -i '/^old_library/s,libapr.*\.a,,' \
jorton c060c7
      $RPM_BUILD_ROOT%{_libdir}/libapr*.la
cvsdist f3c349
jorton d3d483
# Remove unnecessary exports from dependency_libs
jorton d3d483
sed -ri '/^dependency_libs/{s,-l(pq|sqlite[0-9]|rt|dl|uuid) ,,g}' \
jorton d3d483
      $RPM_BUILD_ROOT%{_libdir}/libapr*.la
jorton d3d483
cvsdist 9a316f
%check
jorton b78928
# Run the less verbose test suites
jorton f11e4f
export MALLOC_CHECK_=2 MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
jorton b78928
cd test
jorton b78928
make %{?_smp_mflags} testall testrmm testdbm
jorton b78928
./testall -v -q
jorton b78928
./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 64cb6e
%doc CHANGES LICENSE NOTICE
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.so.*
cvsdist f3c349
cvsdist f3c349
%files devel
cvsdist f3c349
%defattr(-,root,root,-)
jorton b78928
%{_bindir}/apu-%{apuver}-config
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.*a
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.so
cvsdist f3c349
%{_includedir}/apr-%{apuver}/*.h
jorton b78928
%{_libdir}/pkgconfig/*.pc
cvsdist f3c349
%doc --parents html
cvsdist f3c349
cvsdist f3c349
%changelog
jorton 8ebc10
* Tue May  2 2006 Joe Orton <jorton@redhat.com> 1.2.7-2
jorton 8ebc10
- update to 1.2.7
jorton 8ebc10
- use pkg-config in apu-1-config to make it libdir-agnostic
jorton 8ebc10
jorton 390609
* Thu Apr  6 2006 Joe Orton <jorton@redhat.com> 1.2.6-2
jorton 390609
- update to 1.2.6
jorton 390609
- define LDAP_DEPRECATED in apr_ldap.h (r391985, #188073)
jorton 390609
Jesse Keating 9f2af3
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.2
Jesse Keating 9f2af3
- bump again for double-long bug on ppc(64)
Jesse Keating 9f2af3
Jesse Keating f11dbb
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-4.1
Jesse Keating f11dbb
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating f11dbb
jorton 079210
* Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1.2.2-4
jorton 079210
- rebuild to drop reference to libexpat.la
jorton 079210
jorton f11e4f
* Wed Jan 18 2006 Joe Orton <jorton@redhat.com> 1.2.2-3
jorton f11e4f
- disable sqlite2 support
jorton f11e4f
- BuildRequire e2fsprogs-devel
jorton f11e4f
- enable malloc paranoia in %%check
jorton f11e4f
Jesse Keating d226cb
* Tue Jan  3 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-2.2
Jesse Keating d226cb
- rebuilt again
Jesse Keating d226cb
Jesse Keating 6d9515
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating 6d9515
- rebuilt
Jesse Keating 6d9515
jorton d3d483
* Tue Dec  6 2005 Joe Orton <jorton@redhat.com> 1.2.2-2
jorton d3d483
- trim exports from .la file/--libs output (#174924)
jorton d3d483
jorton b78928
* Fri Nov 25 2005 Joe Orton <jorton@redhat.com> 1.2.2-1
jorton b78928
- update to 1.2.2
jorton b78928
jorton df6f61
* Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-3
jorton df6f61
- fix epoch again
jorton df6f61
jorton c060c7
* Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-2
jorton c060c7
- update to 0.9.7
jorton c060c7
- drop static libs (#170051)
jorton c060c7
jorton c060c7
* Tue Jul 26 2005 Joe Orton <jorton@redhat.com> 0.9.6-3
jorton c060c7
- add FILE bucket fix for truncated files (#159191)
jorton c060c7
- add epoch to dependencies
jorton c060c7
jorton abbf83
* Fri Mar  4 2005 Joe Orton <jorton@redhat.com> 0.9.6-2
jorton abbf83
- rebuild
jorton abbf83
jorton aa5c64
* Wed Feb  9 2005 Joe Orton <jorton@redhat.com> 0.9.6-1
jorton aa5c64
- update to 0.9.6
jorton aa5c64
jorton 7d1ada
* Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-3
jorton 7d1ada
- restore db-4.3 detection lost in 0.9.5 upgrade
jorton 7d1ada
jorton 164a3a
* Wed Jan 19 2005 Joe Orton <jorton@redhat.com> 0.9.5-2
jorton 164a3a
- rebuild
jorton 164a3a
jorton 64cb6e
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-1
jorton 64cb6e
- update to 0.9.5
jorton 64cb6e
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