###############################################################################
name = nss
-version = 3.12.8
-release = 4
+version = 3.13.1
+release = 1
groups = System/Libraries
url = http://www.mozilla.org/projects/security/pki/nss/
v3 certificates, and other security standards.
end
-source_dl =
-sources
- %{thisapp}-stripped.tar.bz2
+sources += \
%{name}-pem-20100809.tar.bz2
-end
build
requires
chrpath
nspr-devel
- nss-softokn-devel
- nss-util-devel
perl
pkg-config
psmisc
export BUILD_OPT=1
export XCFLAGS=%{CFLAGS}
+ # Allow the usage of system libraries.
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
+ # Define where to find nspr header files and libraries.
export NSPR_INCLUDE_DIR=/usr/include/nspr4
export NSPR_LIB_DIR=%{libdir}
- export NSS_INCLUDE_DIR=/usr/include/nss3
- export NSS_LIB_DIR=%{libdir}
+ # Disable support for SHA224.
+ export NO_SHA224_AVAILABLE=1
+ # Use sqlite from system.
export NSS_USE_SYSTEM_SQLITE=1
if "%{DISTRO_ARCH}" == "x86_64"
end
prepare
- # Extract tarball
- cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/%{thisapp}-stripped.tar.bz2
+ # Extract tarball.
+ cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/%{thisapp}.tar.gz
- # Extract tarball into nss directory.
+ # Extract pem tarball into nss directory.
cd %{DIR_APP} && %{MACRO_EXTRACT} %{DIR_DL}/%{name}-pem-20100809.tar.bz2
# Apply all patches
%{MACRO_PATCHES}
-
- cp -vf %{DIR_SOURCE}/PayPalEE.cert \
- %{DIR_APP}/mozilla/security/nss/tests/libpkix/certs
end
build
end
install
+ # We have to do the complete install stuff self.
+
+ # Create directory layout.
mkdir -pv %{BUILDROOT}/usr/include/nss3
mkdir -pv %{BUILDROOT}/usr/{bin,%{lib}}
mkdir -pv %{BUILDROOT}%{libdir}/pkgconfig
mkdir -pv %{BUILDROOT}%{libdir}/nss/unsupported-tools
+ # Install all libraries.
install -p -v -m 755 mozilla/dist/*.OBJ/lib/libnss3.so \
%{BUILDROOT}%{libdir}
install -p -v -m 755 mozilla/dist/*.OBJ/lib/libnssckbi.so \
%{BUILDROOT}%{libdir}
install -p -v -m 755 mozilla/dist/*.OBJ/lib/libnsssysinit.so \
%{BUILDROOT}%{libdir}
+ install -p -v -m 755 mozilla/dist/*.OBJ/lib/libnssutil3.so \
+ %{BUILDROOT}%{libdir}
install -p -v -m 755 mozilla/dist/*.OBJ/lib/libsmime3.so \
%{BUILDROOT}%{libdir}
install -p -v -m 755 mozilla/dist/*.OBJ/lib/libssl3.so \
%{BUILDROOT}%{libdir}
+ install -p -v -m 755 mozilla/dist/*.OBJ/lib/libsoftokn3.so \
+ %{BUILDROOT}%{libdir}
+ install -p -v -m 755 mozilla/dist/*.OBJ/lib/libnssdbm3.so \
+ %{BUILDROOT}%{libdir}
+ install -p -v -m 755 mozilla/dist/*.OBJ/lib/libfreebl3.so \
+ %{BUILDROOT}/%{libdir}
# Install the empty NSS db files
mkdir -pv %{BUILDROOT}/etc/pki/nssdb
install -p -v -m 755 mozilla/dist/*.OBJ/bin/ocspclnt %{BUILDROOT}%{libdir}/nss/unsupported-tools
install -p -v -m 755 mozilla/dist/*.OBJ/bin/pp %{BUILDROOT}%{libdir}/nss/unsupported-tools
install -p -v -m 755 mozilla/dist/*.OBJ/bin/selfserv %{BUILDROOT}%{libdir}/nss/unsupported-tools
+ install -p -v -m 755 mozilla/dist/*.OBJ/bin/shlibsign %{BUILDROOT}%{libdir}/nss/unsupported-tools
install -p -v -m 755 mozilla/dist/*.OBJ/bin/strsclnt %{BUILDROOT}%{libdir}/nss/unsupported-tools
install -p -v -m 755 mozilla/dist/*.OBJ/bin/symkeyutil %{BUILDROOT}%{libdir}/nss/unsupported-tools
install -p -v -m 755 mozilla/dist/*.OBJ/bin/tstclnt %{BUILDROOT}%{libdir}/nss/unsupported-tools
install -p -v -m 755 mozilla/dist/*.OBJ/bin/vfyserv %{BUILDROOT}%{libdir}/nss/unsupported-tools
install -p -v -m 755 mozilla/dist/*.OBJ/bin/vfychain %{BUILDROOT}%{libdir}/nss/unsupported-tools
+ chrpath --delete %{BUILDROOT}%{libdir}/nss/unsupported-tools/*
sed -e "s,@libdir@,%{libdir},g" \
-e "s,@prefix@,/usr,g" \
install -p -v -m 755 %{DIR_SOURCE}/setup-nsssysinit.sh %{BUILDROOT}/usr/bin
- # Set up our package file
- # The nspr_version and nss_{util|softokn}_version globals used
- # here match the ones nss has for its Requires.
-
- # XXX need to fix this
+ # Generate file for pkg-config.
sed \
-e "s,%libdir%,%{libdir},g" \
-e "s,%prefix%,/usr,g" \
-e "s,%includedir%,/usr/include/nss3,g" \
-e "s,%NSS_VERSION%,%{version},g" \
-e "s,%NSPR_VERSION%,$(nspr-config --version),g" \
- -e "s,%NSSUTIL_VERSION%,$(nss-util-config --version),g" \
- -e "s,%SOFTOKEN_VERSION%,$(nss-softokn-config --version),g" \
< %{DIR_SOURCE}/nss.pc.in \
> %{BUILDROOT}%{libdir}/pkgconfig/nss.pc
# Copy the include files we want
cp -vf mozilla/dist/public/nss/*.h %{BUILDROOT}/usr/include/nss3
+ cp -vf mozilla/dist/private/nss/blapi.h %{BUILDROOT}/usr/include/nss3
chmod -v 644 %{BUILDROOT}/usr/include/nss3/*.h
-
- # remove the nss-util-devel headers
- cd %{BUILDROOT}/usr/include/nss3 && rm -vf \
- base64.h \
- ciferfam.h \
- nssb64.h \
- nssb64t.h \
- nsslocks.h \
- nssilock.h \
- nssilckt.h \
- nssrwlk.h \
- nssrwlkt.h \
- nssutil.h \
- pkcs11{,f,n,p,t,u}.h \
- portreg.h \
- secasn1.h \
- secasn1t.h \
- seccomon.h \
- secder.h \
- secdert.h \
- secdig.h \
- secdigt.h \
- secerr.h \
- secitem.h \
- secoid.h \
- secoidt.h \
- secport.h \
- utilrename.h
-
- # remove header shipped in nss-softokn-devel
- cd %{BUILDROOT}/usr/include/nss3 && rm -vf \
- blapit.h \
- ecl-exp.h \
- hasht.h \
- sechash.h \
- secmodt.h \
- shsign.h \
- nsslowhash.h
end
end
requires
nspr-devel
- %{name}
- nss-softokn-devel
- nss-util-devel
+ nss=%{thisver}
end
# Mozilla does no versioning :(
end
end
+ package %{name}-softokn
+ summary = Network Security Services Softoken Module.
+ description
+ Network Security Services Softoken Cryptographic Module.
+ end
+
+ requires = nss=%{thisver}
+
+ files
+ %{libdir}/libnssdbm3.so
+ %{libdir}/libsoftokn3.so
+ %{libdir}/nss/unsupported-tools/shlibsign
+ end
+ end
+
+ package %{name}-softokn-freebl
+ summary = Freebl library for the Network Security Services.
+ description
+ NSS Softoken Cryptographic Module Freelb Library.
+ end
+
+ requires
+ nss=%{thisver}
+ nss-softokn=%{thisver}
+ end
+
+ files = %{libdir}/libfreebl3.so
+ end
+
+ package %{name}-util
+ summary = Network Security Services Utilities Library.
+ description
+ Utilities for Network Security Services and the Softoken module.
+ end
+
+ requires = nss=%{thisver}
+
+ files = %{libdir}/libnssutil3.so
+ end
+
package %{name}-debuginfo
template DEBUGINFO
end