cvsdist f3c349
cvsdist d4faa3
%define apuver 0
cvsdist d4faa3
cvsdist f3c349
Summary: Apache Portable Runtime Utility library
cvsdist f3c349
Name: apr-util
cvsdist f3c349
Version: 0.9.4
cvsdist 9a316f
Release: 10.1
cvsdist f3c349
License: Apache Software License
cvsdist f3c349
Group: System Environment/Libraries
cvsdist f3c349
URL: http://apr.apache.org/
cvsdist f3c349
Source0: %{name}-%{version}.tar.gz
cvsdist f3c349
Patch0: apr-util-0.9.3-deplibs.patch
cvsdist f3c349
Patch1: apr-util-0.9.3-config.patch
cvsdist d4faa3
Patch2: apr-util-0.9.4-db4.patch
cvsdist 9a316f
Patch3: apr-util-0.9.4-gcc34.patch
cvsdist 9a316f
Patch4: apr-util-0.9.4-sdbm.patch
cvsdist 9a316f
Patch5: apr-util-0.9.4-sdbmnames.patch
cvsdist f3c349
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
cvsdist f3c349
BuildPrereq: autoconf, libtool, doxygen, apr-devel >= 0:0.9.4-1
cvsdist d4faa3
BuildPrereq: openldap-devel, db4-devel, expat-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
cvsdist f3c349
Requires: apr-util = %{version}, apr-devel
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
cvsdist f3c349
%patch0 -p1 -b .deplibs
cvsdist f3c349
%patch1 -p1 -b .config
cvsdist d4faa3
%patch2 -p1 -b .db4
cvsdist 9a316f
%patch3 -p1 -b .gcc34
cvsdist 9a316f
%patch4 -p1 -b .sdbm
cvsdist 9a316f
%patch5 -p1 -b .sdbmnames
cvsdist f3c349
cvsdist f3c349
%build
cvsdist f3c349
autoheader && autoconf
cvsdist f3c349
%configure --with-apr=%{_prefix} \
cvsdist f3c349
        --includedir=%{_includedir}/apr-%{apuver} \
cvsdist d4faa3
        --with-ldap --without-gdbm
cvsdist 9a316f
perl -pi -e "s/-Werror//g" build/rules.mk
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
cvsdist f3c349
# Unpackaged files
cvsdist f3c349
rm -f $RPM_BUILD_ROOT%{_libdir}/aprutil.exp
cvsdist f3c349
cvsdist 9a316f
%check
cvsdist 9a316f
# Run the less verbose tests
cvsdist 9a316f
%define tests testmd5 testrmm teststrmatch testuri
cvsdist 9a316f
cd test; make %{?_smp_mflags} %{tests} testdbm
cvsdist 9a316f
for t in %{tests}; do ./${t} || exit 1; done
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,-)
cvsdist f3c349
%doc CHANGES LICENSE
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.so.*
cvsdist f3c349
cvsdist f3c349
%files devel
cvsdist f3c349
%defattr(-,root,root,-)
cvsdist f3c349
%{_bindir}/apu-config
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.*a
cvsdist f3c349
%{_libdir}/libaprutil-%{apuver}.so
cvsdist f3c349
%{_includedir}/apr-%{apuver}/*.h
cvsdist f3c349
%doc --parents html
cvsdist f3c349
cvsdist f3c349
%changelog
cvsdist 9a316f
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
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