%define apuver 1 Summary: Apache Portable Runtime Utility library Name: apr-util Version: 1.2.12 Release: 2 License: Apache Software License 2.0 Group: System Environment/Libraries URL: http://apr.apache.org/ Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: apr-devel >= 1.2.0 BuildRequires: pkg-config, sqlite-devel BuildRequires: expat-devel >= 2.0.0 Requires: apr >= 1.2.0 Requires: sqlite Requires: expat >= 2.0.0 %description The mission of the Apache Portable Runtime (APR) is to provide a free library of C data structures and routines. This library contains additional utility interfaces for APR; including support for XML, LDAP, database interfaces, URI parsing and more. %package devel Group: Development/Libraries Summary: APR utility library development kit Requires: apr-util = %{version}-%{release} Requires: apr-devel, pkg-config, sqlite-devel Requires: expat-devel >= 2.0.0 %description devel This package provides the support files which can be used to build applications using the APR utility library. The mission of the Apache Portable Runtime (APR) is to provide a free library of C data structures and routines. %prep %setup -q %build autoheader && autoconf ./configure \ --prefix=%{_prefix} \ --enable-static --enable-shared \ --with-apr=%{_prefix} \ --includedir=%{_includedir}/apr-%{apuver} make %{?_smp_mflags} %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install ( cd $RPM_BUILD_ROOT for dir in bin include lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done ) %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,system,-) %doc CHANGES LICENSE NOTICE %{_libdir}/libaprutil-%{apuver}.so* /usr/lib/libaprutil-%{apuver}.so* %files devel %defattr(-,root,system,-) %{_bindir}/apu-%{apuver}-config %{_libdir}/libaprutil-%{apuver}.*a %{_libdir}/aprutil.exp %{_includedir}/apr-%{apuver}/*.h %{_libdir}/pkgconfig/*.pc /usr/bin/apu-%{apuver}-config /usr/include/apr-%{apuver}/*.h /usr/lib/libaprutil-%{apuver}.*a %changelog * Mon Mar 31 2008 Michael Perzl - 1.2.12-2 - rebuilt against new version of expat * Tue Nov 27 2007 Michael Perzl - 1.2.12-1 - updated to v1.2.12 * Wed Sep 12 2007 Michael Perzl - 1.2.10-1 - first version for AIX V5.1 and higher