--- /dev/null
+Summary: Apache Portable Runtime
+Name: apr
+Version: 0.9.3
+Release: 1
+Epoch: 1
+License: GPL
+Group: Libraries
+Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
+# Source0-md5: 03b243de20ffcf4f30565bc4771489a6
+URL: http://apr.apache.org/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _includedir /usr/include/apr
+%define _datadir /usr/share/apr
+
+%description
+The mission of the Apache Portable Runtime (APR) project is to create
+and maintain software libraries that provide a predictable and
+consistent interface to underlying platform-specific implementations.
+The primary goal is to provide an API to which software developers may
+code and be assured of predictable if not identical behaviour
+regardless of the platform on which their software is built, relieving
+them of the need to code special-case conditions to work around or
+take advantage of platform-specific deficiencies or features.
+
+%package devel
+Summary: Header files and develpment documentation for apr
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}
+Requires: libtool
+
+%description devel
+Libpcap provides a portable framework for low-level network
+monitoring. Libpcap can provide network statistics collection,
+security monitoring and network debugging. Since almost every system
+vendor provides a different interface for packet capture, the apr
+authors created this system-independent API to ease in porting and to
+alleviate the need for several system-dependent packet capture modules
+in each application.
+
+Install apr if you need to do low-level network traffic monitoring on
+your network.
+
+%package static
+Summary: Static apr library
+Group: Development/Libraries
+Requires: %{name}-devel = %{epoch}:%{version}
+
+%description static
+Static apr library.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ --enable-threads
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES STATUS docs/*.html
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_libdir}/apr.exp
+%{_includedir}
+%dir %{_datadir}
+%dir %{_datadir}/build
+%{_datadir}/build/*.mk
+%attr(755,root,root) %{_datadir}/build/libtool
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a