%define aprver 1 Summary: Apache Portable Runtime library Name: apr Version: 1.2.11 Release: 1 License: Apache Software License Group: System Environment/Libraries URL: http://apr.apache.org/ Source: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description The mission of the Apache Portable Runtime (APR) is to provide a free library of C data structures and routines, forming a system portability layer to as many operating systems as possible, including Unices, MS Win32, BeOS and OS/2. %package devel Group: Development/Libraries Summary: APR library development kit Requires: apr = %{version}-%{release}, pkg-config %description devel This package provides the support files which can be used to build applications using the APR 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 export CC=cc ./configure --prefix=%{_prefix} --enable-static --enable-shared \ --with-installbuilddir=%{_libdir}/apr-%{aprver}/build make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES LICENSE NOTICE %{_libdir}/libapr-%{aprver}.so* %files devel %defattr(-,root,root,-) %doc docs/APRDesign.html docs/canonical_filenames.html %doc docs/incomplete_types docs/non_apr_programs %{_bindir}/apr-%{aprver}-config %{_libdir}/libapr-%{aprver}.*a %{_libdir}/apr.exp %{_libdir}/pkgconfig/*.pc %dir %{_libdir}/apr-%{aprver} %dir %{_libdir}/apr-%{aprver}/build %{_libdir}/apr-%{aprver}/build/* %dir %{_includedir}/apr-%{aprver} %{_includedir}/apr-%{aprver}/*.h %changelog * Wed Sep 12 2007 Michael Perzl - 1.2.11-1 - first version for AIX V5.1 and higher