summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2009-01-04 16:39:10 +0000
committerminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2009-01-04 16:39:10 +0000
commitbf9376ba90d111676b75be2f108b996d23cc0cdb (patch)
tree143b53039ceb41e81a75f3403505a2d6aa65cdc6
parent57950dee96bdfc8595e9198e1715dfdbd422351f (diff)
downloadlibapr-util-bf9376ba90d111676b75be2f108b996d23cc0cdb.tar.gz
Add optional dbm, openssl and nss subpackages to the RPM spec file.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@731293 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--CHANGES3
-rw-r--r--build/rpm/apr-util.spec.in40
2 files changed, 43 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 287abb96..9c44423f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with APR-util 1.4.0
+ *) Add optional dbm, openssl and nss subpackages to the RPM spec file.
+ [Graham Leggett]
+
*) apr_crypto_nss: Oh that it was this easy. Use pgk-config to find
NSS where possible. [Graham Leggett]
diff --git a/build/rpm/apr-util.spec.in b/build/rpm/apr-util.spec.in
index cb245f25..bd66be23 100644
--- a/build/rpm/apr-util.spec.in
+++ b/build/rpm/apr-util.spec.in
@@ -31,6 +31,15 @@ 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.
+%package dbm
+Group: Development/Libraries
+Summary: APR utility library DBM driver
+BuildRequires: db4-devel
+Requires: apr-util = %{version}-%{release}
+
+%description dbm
+This package provides the DBM driver for the apr-util.
+
%package pgsql
Group: Development/Libraries
Summary: APR utility library PostgreSQL DBD driver
@@ -90,6 +99,24 @@ Requires: apr-util = %{version}-%{release}
%description ldap
This package provides the LDAP support for the apr-util.
+%package openssl
+Group: Development/Libraries
+Summary: APR utility library OpenSSL crypto support
+BuildRequires: openssl-devel
+Requires: apr-util = %{version}-%{release}
+
+%description openssl
+This package provides crypto support for apr-util based on OpenSSL.
+
+%package nss
+Group: Development/Libraries
+Summary: APR utility library NSS crypto support
+BuildRequires: nss-devel
+Requires: apr-util = %{version}-%{release}
+
+%description nss
+This package provides crypto support for apr-util based on Mozilla NSS.
+
%prep
%setup -q
@@ -99,6 +126,7 @@ This package provides the LDAP support for the apr-util.
--with-ldap --without-gdbm \
--with-sqlite3 --with-pgsql --with-mysql --with-freetds --with-odbc \
--with-berkeley-db \
+ --with-crypto --with-openssl --with-nss \
--without-sqlite2
make %{?_smp_mflags} && make dox
@@ -132,6 +160,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libaprutil-%{apuver}.so.*
%dir %{_libdir}/apr-util-%{apuver}
+%files dbm
+%defattr(-,root,root,-)
+%{_libdir}/apr-util-%{apuver}/apr_dbm_db*
+
%files pgsql
%defattr(-,root,root,-)
%{_libdir}/apr-util-%{apuver}/apr_dbd_pgsql*
@@ -156,6 +188,14 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%{_libdir}/apr-util-%{apuver}/apr_ldap*
+%files openssl
+%defattr(-,root,root,-)
+%{_libdir}/apr-util-%{apuver}/apr_crypto_openssl*
+
+%files nss
+%defattr(-,root,root,-)
+%{_libdir}/apr-util-%{apuver}/apr_crypto_nss*
+
%files devel
%defattr(-,root,root,-)
%{_bindir}/apu-%{apuver}-config