From 9c5e014b12f333ce483a4269107d013be47b60a6 Mon Sep 17 00:00:00 2001 From: Elio Maldonado Date: Wed, 9 Sep 2009 22:38:09 +0000 Subject: [PATCH] Add the nss-sysinit subpackage, add NSS_INCLUDE_DIR and NSS_LIB_DIR to the path --- nss.spec | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/nss.spec b/nss.spec index 35b5397..4dccb1d 100644 --- a/nss.spec +++ b/nss.spec @@ -6,7 +6,7 @@ Summary: Network Security Services Name: nss Version: 3.12.4 -Release: 6%{?dist} +Release: 7%{?dist} License: MPLv1.1 or GPLv2+ or LGPLv2+ URL: http://www.mozilla.org/projects/security/pki/nss/ Group: System Environment/Libraries @@ -35,6 +35,8 @@ Source12: %{name}-pem-20090907.tar.bz2 Patch2: nss-nolocalsql.patch Patch6: nss-enable-pem.patch +Patch7: newargs.patch +Patch8: sysinit.patch %description Network Security Services (NSS) is a set of libraries designed to @@ -59,6 +61,17 @@ v3 certificates, and other security standards. Install the nss-tools package if you need command-line tools to manipulate the NSS certificate and key database. +%package sysinit +Summary: System NSS Initilization +Group: System Environment/Base +Provides: nss-sysinit = %{version}-%{release} +Requires: nss = %{version}-%{release} + +%description sysinit +Default Operating System module that manages applications loading +NSS globally on the system. This module loads the system defined +PKCS #11 modules for NSS and chains with other NSS modules to load +any system or user configured modules. %package devel Summary: Development libraries for Network Security Services @@ -89,6 +102,8 @@ low level services. %patch2 -p0 %patch6 -p0 -b .libpem +%patch7 -p0 -b .newargs +%patch8 -p0 -b .sysinit %build @@ -115,6 +130,12 @@ NSPR_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nspr | sed 's/-L//'` export NSPR_INCLUDE_DIR export NSPR_LIB_DIR +NSS_INCLUDE_DIR=`/usr/bin/pkg-config --cflags-only-I nss-util | sed 's/-I//'` +NSS_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nss-util | sed 's/-L//'` + +export NSS_INCLUDE_DIR +export NSS_LIB_DIR + %ifarch x86_64 ppc64 ia64 s390x sparc64 USE_64=1 export USE_64 @@ -228,7 +249,7 @@ echo "test suite completed" %{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig # Copy the binary libraries we want -for file in libnss3.so libssl3.so libsmime3.so libnssckbi.so libnsspem.so +for file in libnss3.so libnssckbi.so libnsspem.so libnsssysinit.so libsmime3.so libssl3.so do %{__install} -p -m 755 mozilla/dist/*.OBJ/lib/$file $RPM_BUILD_ROOT/%{_libdir} done @@ -329,6 +350,10 @@ rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/nsslowhash.h %config(noreplace) %{_sysconfdir}/pki/nssdb/key3.db %config(noreplace) %{_sysconfdir}/pki/nssdb/secmod.db +%files sysinit +%defattr(-,root,root) +%{_libdir}/libnsssysinit.so + %files tools %defattr(-,root,root) %{_bindir}/certutil @@ -422,6 +447,9 @@ rm -rf $RPM_BUILD_ROOT/%{_includedir}/nss3/nsslowhash.h %changelog +* Tue Sep 08 2009 Elio Maldonado - 3.12.4-6 - Installing shared libraries to %%{_libdir}