While APR is available as an RPM for most distributions, it can
sometimes be desirable to install and use the canonical version of
APR on these systems, replacing the natively provided versions
of the packages.

While the APR project does not currently create binary RPMs for
the various distributions out there, it is easy to build your own
binary RPMs from the canonical APR and APR-Util tarballs as follows.

The APR RPM can be built directly from the APR source tarball using
the following command:

rpmbuild -tb apr-1.4.x.tar.bz2

Corresponding "-devel" packages will be required to be installed on your
build system prior to building the RPMs, the rpmbuild command
will automatically calculate what RPMs are required and will list any
dependencies that are missing on your system. These "-devel" packages will
not be required after the build is completed, and can be safely removed.

If successful, the following RPMs will be created:

apr-1.4.x-1.i686.rpm

The core APR library.

apr-debuginfo-1.4.x-1.i686.rpm

Debugging symbols for the library.

apr-devel-1.4.x-1.i686.rpm

Headers and development files for the library.

An APR-Util RPM can be built directly from the APR-Util source
tarball using the following command: