rpms/nss-softokn/devel nss-softokn.spec,NONE,1.4.2.2
Elio Maldonado
emaldonado at fedoraproject.org
Tue Aug 25 18:08:59 UTC 2009
- Previous message: rpms/lyx/F-11 lyx-1.6.4-xdg_open.patch, NONE, 1.1 .cvsignore, 1.39, 1.40 lyx.spec, 1.93, 1.94 sources, 1.37, 1.38 lyx-1.6.3-xdg_open.patch, 1.1, NONE
- Next message: rpms/nss-softokn/devel Makefile, NONE, 1.1.2.2 nss-nolocalsql.patch, NONE, 1.1.2.2 nss-softokn-config.in, NONE, 1.1.2.2 nss-softokn-prelink.conf, NONE, 1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: emaldonado
Update of /cvs/extras/rpms/nss-softokn/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30440
Added Files:
Tag: nss-3_12_3_99_3-8_fc12
nss-softokn.spec
Log Message:
restoring the spec file after a succesfull scratch build
--- NEW FILE nss-softokn.spec ---
%global nspr_version 4.8
%global nss_name nss
%global nssutil_version 3.12.3.99.3
%global unsupported_tools_directory %{_libdir}/nss/unsupported-tools
%global saved_files_dir %{_libdir}/nss/saved
# Produce .chk files for the final stripped binaries
%define __spec_install_post \
%{?__debug_package:%{__debug_install_post}} \
%{__arch_install_post} \
%{__os_install_post} \
$RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign -i $RPM_BUILD_ROOT/%{_lib}/libsoftokn3.so \
$RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign -i $RPM_BUILD_ROOT/%{_lib}/libfreebl3.so \
$RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign -i $RPM_BUILD_ROOT/%{_lib}/libnssdbm3.so \
%{nil}
Summary: Network Security Services Soktoken Module
Name: nss-softokn
Version: 3.12.3.99.3
Release: 14%{?dist}
License: MPLv1.1 or GPLv2+ or LGPLv2+
URL: http://www.mozilla.org/projects/security/pki/nss/
Group: System Environment/Libraries
Requires: nspr >= %{nspr_version}
Requires: nss-util >= %{version}
Requires: nss-softokn-freebl%{_isa} >= %{version}
Requires: sqlite
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: nspr-devel >= %{nspr_version}
BuildRequires: sqlite-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig
BuildRequires: gawk
BuildRequires: psmisc
BuildRequires: perl
#Obsoletes: nss < 3.12.3.99.3-11
Source0: %{name}-%{version}-stripped.tar.bz2
# The nss-softokn tar ball is a subset of nss-%{version}-stripped.tar.bz2,
# Therefore we use the nss-split-softokn.sh script to keep only what we need.
# Download the nss tarball via CVS from the nss propect and follow these
# steps to make the r tarball for nss-util out of the for nss:
# cvs co nss
# cvs nss-softokn (as soon as it is in cvs - for now extract the srpm)
# cd nss-softokn/devel
# cp ../../nss/devel/${version}-stripped.tar.bz2 .
# (use 3.12.3.99.3 for version above until 3.12.4 comes out)
# sh ./nss-split-softokn.sh ${version}
# A %{name}-%{version}--stripped.tar.bz2 should appear
Source1: nss-split-softokn.sh
Source2: nss-softokn.pc.in
Source3: nss-softokn-config.in
Source4: nss-softokn-prelink.conf
# patches moved here from nss because they affect softoken only
# won't be needed when we upgrade to 3.12.4
Patch1: nss-nolocalsql.patch
Patch2: nss-stubs-bug502133.patch
%description
Network Security Services Softoken Cryptographic Module
%package freebl
Summary: Freebl library for the Network Security Services
Group: System Environment/Base
Conflicts: nss < 3.12.2.99.3-8
Obsoletes: nss-softokn-freebl < 3.12.3.99.3-11
%description freebl
Network Security Services Softoken Cryptographic Module Freelb Library.
Install the nss-softokn-freebl package if you need the freebl
library.
%package devel
Summary: Development libraries for Network Security Services
Group: Development/Libraries
Requires: nss-softokn = %{version}-%{release}
Requires: nspr-devel >= %{nspr_version}
Requires: nss-util-devel >= %{version}
Requires: pkgconfig
BuildRequires: nspr-devel >= %{nspr_version}
BuildRequires: nss-util-devel >= %{version}
# require nss at least the version when we split via subpackages
BuildRequires: nss-devel >= 3.12.2.99.3-11
%description devel
Header and Library files for doing development with Network Security Services.
%prep
%setup -q
# patches moved here from nss because they affect softokn only
# they won't be needed when we upgrade to 3.12.4
%patch1 -p0
%patch2 -p0 -b .502133
%build
FREEBL_NO_DEPEND=1
export FREEBL_NO_DEPEND
# Enable compiler optimizations and disable debugging code
BUILD_OPT=1
export BUILD_OPT
# Generate symbolic info for debuggers
XCFLAGS=$RPM_OPT_FLAGS
export XCFLAGS
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
export PKG_CONFIG_ALLOW_SYSTEM_LIBS
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
NSPR_INCLUDE_DIR=`/usr/bin/pkg-config --cflags-only-I nspr | sed 's/-I//'`
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 | sed 's/-I//'`
NSS_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nss | sed 's/-L//'`
export NSS_INCLUDE_DIR
export NSS_LIB_DIR
%ifarch x86_64 ppc64 ia64 s390x sparc64
USE_64=1
export USE_64
%endif
# Compile softkn plus needed support
%{__make} -C ./mozilla/security/coreconf
%{__make} -C ./mozilla/security/dbm
%{__make} -C ./mozilla/security/nss
# Set up our package file
%{__mkdir_p} ./mozilla/dist/pkgconfig
%{__cat} %{SOURCE2} | sed -e "s,%%libdir%%,%{_libdir},g" \
-e "s,%%prefix%%,%{_prefix},g" \
-e "s,%%exec_prefix%%,%{_prefix},g" \
-e "s,%%includedir%%,%{_includedir}/nss3,g" \
-e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
-e "s,%%SOFTKN_VERSION%%,%{version},g" > \
./mozilla/dist/pkgconfig/nss-softokn.pc
SOFTOKEN_VMAJOR=`cat mozilla/security/nss/lib/softoken/softkver.h | grep "#define.*SOFTOKEN_VMAJOR" | awk '{print $3}'`
SOFTOKEN_VMINOR=`cat mozilla/security/nss/lib/softoken/softkver.h | grep "#define.*SOFTOKEN_VMINOR" | awk '{print $3}'`
SOFTOKEN_VPATCH=`cat mozilla/security/nss/lib/softoken/softkver.h | grep "#define.*SOFTOKEN_VPATCH" | awk '{print $3}'`
export SOFTOKEN_VMAJOR
export SOFTOKEN_VMINOR
export SOFTOKEN_VPATCH
%{__cat} %{SOURCE3} | sed -e "s, at libdir@,%{_libdir},g" \
-e "s, at prefix@,%{_prefix},g" \
-e "s, at exec_prefix@,%{_prefix},g" \
-e "s, at includedir@,%{_includedir}/nss3,g" \
-e "s, at MOD_MAJOR_VERSION@,$SOFTOKEN_VMAJOR,g" \
-e "s, at MOD_MINOR_VERSION@,$SOFTOKEN_VMINOR,g" \
-e "s, at MOD_PATCH_VERSION@,$SOFTOKEN_VPATCH,g" \
> ./mozilla/dist/pkgconfig/nss-softokn-config
chmod 755 ./mozilla/dist/pkgconfig/nss-softokn-config
# save a copy in a safe place in case there is a preelink install or unistall
%{__cp} -p %{SOURCE4} ./mozilla/dist/pkgconfig/nss-softokn-prelink.conf
# enable the following line to force a test failure
# find ./mozilla -name \*.chk | xargs rm -f
#
# We can't run a subset of the tests because the tools have
# dependencies on nss libraries outside of softokn.
# Let's leave this as a place holder.
#
%install
%{__rm} -rf $RPM_BUILD_ROOT
# There is no make install target so we'll do it ourselves.
%{__mkdir_p} $RPM_BUILD_ROOT/%{_includedir}/nss3
%{__mkdir_p} $RPM_BUILD_ROOT/%{_bindir}
%{__mkdir_p} $RPM_BUILD_ROOT/%{_lib}
%{__mkdir_p} $RPM_BUILD_ROOT/%{unsupported_tools_directory}
%{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
%{__mkdir_p} $RPM_BUILD_ROOT/%{saved_files_dir}
# Copy the binary libraries we want
for file in libsoftokn3.so libfreebl3.so libnssdbm3.so
do
%{__install} -p -m 755 mozilla/dist/*.OBJ/lib/$file $RPM_BUILD_ROOT/%{_lib}
ln -sf ../../%{_lib}/$file $RPM_BUILD_ROOT/%{_libdir}/$file
done
# Make sure chk files can be found in both places
for file in libsoftokn3.chk libfreebl3.chk libnssdbm3.chk
do
ln -s ../../%{_lib}/$file $RPM_BUILD_ROOT/%{_libdir}/$file
done
# install our prelink configuration file
%{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d
%{__install} -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d/nss-softokn-prelink.conf
# and stash a copy away in a safe place
%{__install} -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT/%{saved_files_dir}/nss-softokn-prelink.conf
# Copy the binaries we ship as unsupported
for file in shlibsign
do
%{__install} -p -m 755 mozilla/dist/*.OBJ/bin/$file $RPM_BUILD_ROOT/%{unsupported_tools_directory}
done
# Copy the include files we want
for file in mozilla/dist/public/nss/*.h
do
%{__install} -p -m 644 $file $RPM_BUILD_ROOT/%{_includedir}/nss3
done
# Copy the package configuration files
%{__install} -p ./mozilla/dist/pkgconfig/nss-softokn.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nss-softokn.pc
%{__install} -p ./mozilla/dist/pkgconfig/nss-softokn-config $RPM_BUILD_ROOT/%{_bindir}/nss-softokn-config
%clean
%{__rm} -rf $RPM_BUILD_ROOT
# Trigger scriptlets to install or remove nss-softokn-prelink.conf
# when prelink is ether installed or removed in the user's system
# This trigger scriptlet is run when:
# 1) nss-softokn is already installed, and prelink is installed or upgraded
# 2) prelink is already installed, and nss-softokn is installed or upgraded
%triggerin -- prelink
%{__install} -p -m 644 %{saved_files_dir}/nss-softokn-prelink.conf \
%{_sysconfdir}/prelink.conf.d/nss-softokn-prelink.conf
# This trigger scriptlet is run when:
# 1) prelink is installed, and nss-softokn removed
# 2) nss-softokn is installed, and prelink gets removed
%triggerun -- prelink
[ $2 = 0 ] || exit 0
%{__rm} -f %{_sysconfdir}/prelink.conf.d/nss-softokn-prelink.conf
%post
/sbin/ldconfig >/dev/null 2>/dev/null
%postun
/sbin/ldconfig >/dev/null 2>/dev/null
[ $1 = 0 ] && %{__rm} -f %{_sysconfdir}/prelink.conf.d/nss-softokn-prelink.conf
%files
%defattr(-,root,root)
/%{_lib}/libnssdbm3.so
/%{_lib}/libnssdbm3.chk
/%{_lib}/libsoftokn3.so
/%{_lib}/libsoftokn3.chk
# shared with nss-tools
%dir %{_libdir}/nss
%dir %{saved_files_dir}
%dir %{unsupported_tools_directory}
%{unsupported_tools_directory}/shlibsign
%{saved_files_dir}/nss-softokn-prelink.conf
# we don't own %{_sysconfdir}/prelink.conf.d and
# must rely on triggers to install and remove our
# configuration file
%{_sysconfdir}/prelink.conf.d/nss-softokn-prelink.conf
%files freebl
%defattr(-,root,root)
/%{_lib}/libfreebl3.so
/%{_lib}/libfreebl3.chk
%files devel
%defattr(-,root,root)
%{_libdir}/libsoftokn3.so
%{_libdir}/libsoftokn3.chk
%{_libdir}/libfreebl3.so
%{_libdir}/libfreebl3.chk
%{_libdir}/libnssdbm3.so
%{_libdir}/libnssdbm3.chk
%{_libdir}/pkgconfig/nss-softokn.pc
%{_bindir}/nss-softokn-config
# co-owned with nss
%dir %{_includedir}/nss3
#
# The following headers are those exported public in
# mozilla/security/nss/lib/freebl/manifest.mn and
# mozilla/security/nss/lib/softoken/manifest.mn
#
# The following list is short because many headers, such as
# the pkcs #11 ones, have been provided by nss-util-devel
# which installed them before us.
#
%{_includedir}/nss3/blapit.h
%{_includedir}/nss3/ecl-exp.h
%{_includedir}/nss3/hasht.h
%{_includedir}/nss3/sechash.h
%{_includedir}/nss3/nsslowhash.h
%{_includedir}/nss3/secmodt.h
%{_includedir}/nss3/shsign.h
%changelog
* Thu Aug 20 2009 Elio Maldonado <emaldona at redhat.com> 3.12.3.99.3-14
- Third build, matches nss-util release
* Thu Aug 20 2009 Elio Maldonado <emaldona at redhat.com> 3.12.3.99.3-11
- Second build
* Thu Aug 14 2009 Elio Maldonado <emaldona at redhat.com> 3.12.3.99.3-8
- Initial build
- Previous message: rpms/lyx/F-11 lyx-1.6.4-xdg_open.patch, NONE, 1.1 .cvsignore, 1.39, 1.40 lyx.spec, 1.93, 1.94 sources, 1.37, 1.38 lyx-1.6.3-xdg_open.patch, 1.1, NONE
- Next message: rpms/nss-softokn/devel Makefile, NONE, 1.1.2.2 nss-nolocalsql.patch, NONE, 1.1.2.2 nss-softokn-config.in, NONE, 1.1.2.2 nss-softokn-prelink.conf, NONE, 1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list