From bf9376ba90d111676b75be2f108b996d23cc0cdb Mon Sep 17 00:00:00 2001 From: minfrin Date: Sun, 4 Jan 2009 16:39:10 +0000 Subject: 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 --- CHANGES | 3 +++ build/rpm/apr-util.spec.in | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) 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 -- cgit v1.2.1