source: spec/trunk/SPECS/nss.spec@ 1330

Last change on this file since 1330 was 1026, checked in by dmik, 9 years ago

spec: nss: Release version 3.23.0-4.

File size: 39.3 KB
Line 
1# Note: this .spec is borrowed from:
2# nss-3.23.0-1.0.fc24.src.rpm
3# nss-util-3.23.0-1.0.fc24.src.rpm
4# nss-softokn-3.23.0-0.1.fc24.src.rpm
5
6%global nspr_version 4.12.0
7%global unsupported_tools_directory %{_libdir}/nss/unsupported-tools
8%global allTools "certutil cmsutil crlutil derdump modutil pk12util signtool signver ssltap vfychain vfyserv"
9
10# Produce .chk files for the final stripped binaries
11%define __spec_install_post \
12 %{?__debug_package:%{__debug_install_post}} \
13 %{__arch_install_post} \
14 %{__os_install_post} \
15 export BEGINLIBPATH=$RPM_BUILD_ROOT/%{_libdir} \
16 $RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign.exe -i $RPM_BUILD_ROOT/%{_libdir}/softokn3.dll \
17 $RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign.exe -i $RPM_BUILD_ROOT/%{_libdir}/freebl3.dll \
18 $RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign.exe -i $RPM_BUILD_ROOT/%{_libdir}/nssdbm3.dll \
19 $RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign.exe -i $RPM_BUILD_ROOT/%{_libdir}/softok3k.dll \
20 $RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign.exe -i $RPM_BUILD_ROOT/%{_libdir}/freebl3k.dll \
21 $RPM_BUILD_ROOT/%{unsupported_tools_directory}/shlibsign.exe -i $RPM_BUILD_ROOT/%{_libdir}/nssdbm3k.dll \
22%{nil}
23
24Summary: Network Security Services
25Name: nss
26Version: 3.23.0
27Release: 4%{?dist}
28License: MPLv2.0
29URL: http://www.mozilla.org/projects/security/pki/nss/
30Group: System Environment/Libraries
31Vendor: bww bitwise works GmbH
32
33Requires: nspr >= %{nspr_version}
34Requires: nss-util = %{version}-%{release}
35Requires: nss-softokn = %{version}-%{release}
36# @todo remove?
37#Requires: nss-system-init
38BuildRequires: nspr-devel >= %{nspr_version}
39BuildRequires: sqlite-devel
40BuildRequires: zlib-devel
41BuildRequires: pkgconfig
42BuildRequires: gawk
43#BuildRequires: psmisc
44BuildRequires: perl
45
46%scm_source svn http://svn.netlabs.org/repos/ports/nss/trunk 1529
47
48#Source0: %{name}-%{version}.tar.gz
49Source1: nss.pc.in
50Source2: nss-config.in
51#Source3: blank-cert8.db
52#Source4: blank-key3.db
53#Source5: blank-secmod.db
54#Source6: blank-cert9.db
55#Source7: blank-key4.db
56#Source8: system-pkcs11.txt
57#Source9: setup-nsssysinit.sh
58#Source12: %{name}-pem-20160308.tar.bz2
59# @todo We don't have xmlto yet.
60#Source20: nss-config.xml
61#Source21: setup-nsssysinit.xml
62#Source22: pkcs11.txt.xml
63#Source23: cert8.db.xml
64#Source24: cert9.db.xml
65#Source25: key3.db.xml
66#Source26: key4.db.xml
67#Source27: secmod.db.xml
68
69# From nss-util.spec:
70Source202: nss-util.pc.in
71Source203: nss-util-config.in
72
73# From nss-softokn.spec:
74Source302: nss-softokn.pc.in
75Source303: nss-softokn-config.in
76
77# DEF files to create forwarders for legacy DLLs (nss-legacy)
78Source401: nss3k.def
79Source402: nssckbik.def
80Source403: smime3k.def
81Source404: ssl3k.def
82# DEF files to create forwarders for legacy DLLs (nss-util-legacy)
83Source411: nssuti3k.def
84# DEF files to create forwarders for legacy DLLs (nss-softokn-legacy)
85Source421: nssdbm3k.def
86Source422: softok3k.def
87# DEF files to create forwarders for legacy DLLs (nss-softokn-freebl-legacy)
88Source431: freebl3k.def
89
90#Patch3: renegotiate-transitional.patch
91# Upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=402712
92#Patch6: nss-enable-pem.patch
93# Below reference applies to most pem module related patches
94# Upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=617723
95#Patch16: nss-539183.patch
96# must statically link pem against the freebl in the buildroot
97# Needed only when freebl on tree has new APIS
98#Patch25: nsspem-use-system-freebl.patch
99# TODO: Remove this patch when the ocsp test are fixed
100#Patch40: nss-3.14.0.0-disble-ocsp-test.patch
101# TODO remove when we switch to building nss without softoken
102#Patch49: nss-skip-bltest-and-fipstest.patch
103# This patch uses the gcc-iquote dir option documented at
104# http://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html#Directory-Options
105# to place the in-tree directories at the head of the list of list of directories
106# to be searched for for header files. This ensures a build even when system
107# headers are older. Such is the case when starting an update with API changes or even private export changes.
108# Once the buildroot aha been bootstrapped the patch may be removed but it doesn't hurt to keep it.
109#Patch50: iquote.patch
110#Patch52: disableSSL2libssl.patch
111#Patch53: disableSSL2tests.patch
112#Patch54: tstclnt-ssl2-off-by-default.patch
113#Patch55: skip_stress_TLS_RC4_128_with_MD5.patch
114# Local patch for TLS_ECDHE_{ECDSA|RSA}_WITH_3DES_EDE_CBC_SHA ciphers
115#Patch58: rhbz1185708-enable-ecc-3des-ciphers-by-default.patch
116
117# From nss-util.spec:
118#Patch202: hasht-dont-include-prtypes.patch
119#Patch203: pkcs1sig-include-prtypes.patch
120# TODO: investigate whether this patch should also be applied to
121# nss-softokn and nss and whether it should be submitted upstream.
122# First ensure that it won't cause any FIPS tests breakage.
123#Patch204: nss-util-3.19.3-ldflags.patch
124
125# From nss-softokn.spec:
126# Patch adapted from rhel-7
127# Upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=1236720
128#Patch311: nss-softokn-add_encrypt_derive.patch
129
130%description
131Network Security Services (NSS) is a set of libraries designed to
132support cross-platform development of security-enabled client and
133server applications. Applications built with NSS can support SSL v2
134and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509
135v3 certificates, and other security standards.
136
137%package tools
138Summary: Tools for the Network Security Services
139Group: System Environment/Base
140Requires: %{name} = %{version}-%{release}
141
142%description tools
143Network Security Services (NSS) is a set of libraries designed to
144support cross-platform development of security-enabled client and
145server applications. Applications built with NSS can support SSL v2
146and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509
147v3 certificates, and other security standards.
148
149Install the nss-tools package if you need command-line tools to
150manipulate the NSS certificate and key database.
151
152#%package sysinit
153#Summary: System NSS Initialization
154#Group: System Environment/Base
155## providing nss-system-init without version so that it can
156## be replaced by a better one, e.g. supplied by the os vendor
157#Provides: nss-system-init
158#Requires: %{name} = %{version}-%{release}
159#Requires(post): coreutils, sed
160
161#%description sysinit
162#Default Operating System module that manages applications loading
163#NSS globally on the system. This module loads the system defined
164#PKCS #11 modules for NSS and chains with other NSS modules to load
165#any system or user configured modules.
166
167%package devel
168Summary: Development libraries for Network Security Services
169Group: Development/Libraries
170Provides: %{name}-static = %{version}-%{release}
171Requires: %{name} = %{version}-%{release}
172Requires: %{name}-util-devel = %{version}-%{release}
173Requires: %{name}-softokn-devel = %{version}-%{release}
174Requires: nspr-devel >= %{nspr_version}
175Requires: pkgconfig
176# @todo We don't have xmlto yet.
177#BuildRequires: xmlto
178
179%description devel
180Header and Library files for doing development with Network Security Services.
181
182%package pkcs11-devel
183Summary: Development libraries for PKCS #11 (Cryptoki) using NSS
184Group: Development/Libraries
185Provides: nss-pkcs11-devel-static = %{version}-%{release}
186Requires: %{name}-devel = %{version}-%{release}
187Requires: %{name}-softokn-freebl-devel = %{version}-%{release}
188
189%description pkcs11-devel
190Library files for developing PKCS #11 modules using basic NSS
191low level services.
192
193%package legacy
194Summary: Legacy libraries for Netscape Security Services
195Group: System Environment/Libraries
196Requires: %{name} = %{version}-%{release}
197
198%description legacy
199NSS forwarder libraries with old DLL names ending with 'k'.
200
201# From nss-util.spec:
202
203%package util
204Summary: Network Security Services Utilities Library
205Group: System Environment/Libraries
206Requires: nspr >= %{nspr_version}
207
208%description util
209Utilities for Network Security Services and the Softoken module
210
211# We shouln't need to have a devel subpackage as util will be used in the
212# context of nss or nss-softoken. keeping to please rpmlint.
213#
214%package util-devel
215Summary: Development libraries for Network Security Services Utilities
216Group: Development/Libraries
217Requires: %{name}-util = %{version}-%{release}
218Requires: nspr-devel >= %{nspr_version}
219Requires: pkgconfig
220
221%description util-devel
222Header and library files for doing development with Network Security Services.
223
224%package util-legacy
225Summary: Legacy libraries for Netscape Security Services Utilities.
226Group: System Environment/Libraries
227Requires: %{name}-util = %{version}-%{release}
228
229%description util-legacy
230NSS Utilities forwarder libraries with old DLL names ending with 'k'.
231
232# From nss-softokn.spec:
233
234%package softokn
235Summary: Network Security Services Softoken Module
236Group: System Environment/Libraries
237Requires: nspr >= %{nspr_version}
238Requires: %{name}-util = %{version}-%{release}
239Requires: %{name}-softokn-freebl = %{version}-%{release}
240
241%description softokn
242Network Security Services Softoken Cryptographic Module
243
244%package softokn-freebl
245Summary: Freebl library for the Network Security Services
246Group: System Environment/Base
247Conflicts: nss < 3.12.2.99.3-5
248Conflicts: prelink < 0.4.3
249Conflicts: filesystem < 3
250
251%description softokn-freebl
252NSS Softoken Cryptographic Module Freebl Library
253
254Install the nss-softokn-freebl package if you need the freebl
255library.
256
257%package softokn-freebl-devel
258Summary: Header and Library files for doing development with the Freebl library for NSS
259Group: System Environment/Base
260Provides: %{name}-softokn-freebl-static = %{version}-%{release}
261Requires: %{name}-softokn-freebl = %{version}-%{release}
262
263%description softokn-freebl-devel
264NSS Softoken Cryptographic Module Freebl Library Development Tools
265This package supports special needs of some PKCS #11 module developers and
266is otherwise considered private to NSS. As such, the programming interfaces
267may change and the usual NSS binary compatibility commitments do not apply.
268Developers should rely only on the officially supported NSS public API.
269
270%package softokn-devel
271Summary: Development libraries for Network Security Services
272Group: Development/Libraries
273Requires: %{name}-softokn = %{version}-%{release}
274Requires: %{name}-softokn-freebl-devel = %{version}-%{release}
275Requires: nspr-devel >= %{nspr_version}
276Requires: %{name}-util-devel = %{version}-%{release}
277Requires: pkgconfig
278
279%description softokn-devel
280Header and library files for doing development with Network Security Services.
281
282%package softokn-legacy
283Summary: Legacy libraries for Netscape Security Services Softoken Cryptographic Modile.
284Group: System Environment/Libraries
285Requires: %{name}-softoken = %{version}-%{release}
286
287%description softokn-legacy
288NSS Softoken Cryptographic Modile forwarder libraries with old DLL names ending with 'k'.
289
290%package softokn-freebl-legacy
291Summary: Legacy libraries for Netscape Security Services Freebl.
292Group: System Environment/Libraries
293Requires: %{name}-softoken-freebl = %{version}-%{release}
294
295%description softokn-freebl-legacy
296NSS Freebl forwarder libraries with old DLL names ending with 'k'.
297
298%debug_package
299
300# Makes no sense to provide .dbg files for forwarder DLLs
301%define _strip_opts --debuginfo -x "*k.dll"
302
303%prep
304%scm_setup
305
306#%patch2 -p0 -b .relro
307#%patch3 -p0 -b .transitional
308#%patch6 -p0 -b .libpem
309#%patch16 -p0 -b .539183
310# link pem against buildroot's freebl, essential when mixing and matching
311#%patch25 -p0 -b .systemfreebl
312#%patch40 -p0 -b .noocsptest
313#%patch47 -p0 -b .templates
314#%patch49 -p0 -b .skipthem
315#%patch50 -p0 -b .iquote
316#pushd nss
317#%patch52 -p1 -b .disableSSL2libssl
318#%patch53 -p1 -b .disableSSL2tests
319#popd
320#%patch54 -p0 -b .ssl2_off
321#%patch55 -p1 -b .skip_stress_tls_rc4_128_with_md5
322#%patch58 -p0 -b .1185708_3des
323
324# @#todo remove?
325#pushd nss/tests/ssl
326## Create versions of sslcov.txt and sslstress.txt that disable tests
327## for SSL2 and EXPORT ciphers.
328#cat sslcov.txt| sed -r "s/^([^#].*EXPORT|^[^#].*SSL2)/#disabled \1/" > sslcov.noSSL2orExport.txt
329#cat sslstress.txt| sed -r "s/^([^#].*EXPORT|^[^#].*SSL2)/#disabled \1/" > sslstress.noSSL2orExport.txt
330#popd
331
332# From nss-util.spec:
333#%patch202 -p0 -b .prtypes
334#%patch203 -p0 -b .include_prtypes
335#%patch204 -p1 -b .ldflags
336
337# From nss-softokn.spec:
338# activate if needed when doing a major update with new apis
339#pushd nss
340#%patch311 -p1 -b .add_encrypt_derive
341#popd
342
343# Prepare forwarder DLLs.
344for m in %{SOURCE401} %{SOURCE402} %{SOURCE403} %{SOURCE404} %{SOURCE411} %{SOURCE421} %{SOURCE422} %{SOURCE431}; do
345 cp ${m} .
346done
347
348%build
349
350# OS/2 compatiblity
351unset PROGRAMS
352
353# Enable high memory support
354MOZ_OS2_HIGH_MEMORY=1
355export MOZ_OS2_HIGH_MEMORY
356
357# Force debug symbols to make debug_package happy
358MOZ_DEBUG_SYMBOLS=1
359export MOZ_DEBUG_SYMBOLS
360# MOZ_DEBUG is necessary to shut up premature debug symbol extraction
361MOZ_DEBUG=1
362export MOZ_DEBUG
363
364# Make sure build output lands in ./dist
365export BUILD_TREE=`echo "%{_builddir}/%{?buildsubdir}" | tr '\\\' /`
366
367export NSS_NO_SSL2_NO_EXPORT=1
368
369NSS_NO_PKCS11_BYPASS=1
370export NSS_NO_PKCS11_BYPASS
371
372# We don't need a freebl/softoken build w/o NSPR
373#FREEBL_NO_DEPEND=1
374#export FREEBL_NO_DEPEND
375
376# Must export FREEBL_LOWHASH=1 for nsslowhash.h so that it gets
377# copied to dist and the rpm install phase can find it
378# This due of the upstream changes to fix
379# https://bugzilla.mozilla.org/show_bug.cgi?id=717906
380# @todo this fails (missing -lfreebl3, needs investigation)
381#FREEBL_LOWHASH=1
382#export FREEBL_LOWHASH
383
384# Enable compiler optimizations and disable debugging code
385BUILD_OPT=1
386export BUILD_OPT
387
388# Uncomment to disable optimizations
389#RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/-O2/-O0/g'`
390#export RPM_OPT_FLAGS
391
392# Generate symbolic info for debuggers
393XCFLAGS=$RPM_OPT_FLAGS
394export XCFLAGS
395
396PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
397PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
398
399export PKG_CONFIG_ALLOW_SYSTEM_LIBS
400export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
401
402NSPR_INCLUDE_DIR=`/@unixroot/usr/bin/pkg-config --cflags-only-I nspr | sed 's/-I//'`
403NSPR_LIB_DIR=%{_libdir}
404
405export NSPR_INCLUDE_DIR
406export NSPR_LIB_DIR
407
408NSS_USE_SYSTEM_SQLITE=1
409export NSS_USE_SYSTEM_SQLITE
410
411USE_SYSTEM_ZLIB=1
412export USE_SYSTEM_ZLIB
413
414ZLIB_LIBS=-lz
415export ZLIB_LIBS
416
417# Disable external google tests as we lack std::wcslen in the gcc RPM
418NSS_DISABLE_GTESTS=1
419export NSS_DISABLE_GTESTS
420
421# uncomment if the iquote patch is activated
422#export IN_TREE_FREEBL_HEADERS_FIRST=1
423
424##### phase 2: build the rest of nss
425# nss supports pluggable ecc with more than suite-b
426#export NSS_ECC_MORE_THAN_SUITE_B=1
427
428export NSS_BLTEST_NOT_AVAILABLE=1
429%{__make} -C ./coreconf
430%{__make} -C ./lib/dbm
431%{__make} -C .
432unset NSS_BLTEST_NOT_AVAILABLE
433
434# build the man pages clean
435%{__make} clean_docs build_docs
436
437# and copy them to the dist directory for %%install to find them
438%{__mkdir_p} ./dist/docs/nroff
439%{__cp} ./doc/nroff/* ./dist/docs/nroff
440
441# Set up our package file
442# The nspr_version and nss_{util|softokn}_version globals used
443# here match the ones nss has for its Requires.
444%{__mkdir_p} ./dist/pkgconfig
445%{__cat} %{SOURCE1} | sed -e "s,%%libdir%%,%{_libdir},g" \
446 -e "s,%%prefix%%,%{_prefix},g" \
447 -e "s,%%exec_prefix%%,%{_prefix},g" \
448 -e "s,%%includedir%%,%{_includedir}/nss3,g" \
449 -e "s,%%NSS_VERSION%%,%{version},g" \
450 -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
451 -e "s,%%NSSUTIL_VERSION%%,%{version},g" \
452 -e "s,%%SOFTOKEN_VERSION%%,%{version},g" > \
453 ./dist/pkgconfig/nss.pc
454
455NSS_VMAJOR=`cat lib/nss/nss.h | grep "#define.*NSS_VMAJOR" | awk '{print $3}'`
456NSS_VMINOR=`cat lib/nss/nss.h | grep "#define.*NSS_VMINOR" | awk '{print $3}'`
457NSS_VPATCH=`cat lib/nss/nss.h | grep "#define.*NSS_VPATCH" | awk '{print $3}'`
458
459export NSS_VMAJOR
460export NSS_VMINOR
461export NSS_VPATCH
462
463%{__cat} %{SOURCE2} | sed -e "s,@libdir@,%{_libdir},g" \
464 -e "s,@prefix@,%{_prefix},g" \
465 -e "s,@exec_prefix@,%{_prefix},g" \
466 -e "s,@includedir@,%{_includedir}/nss3,g" \
467 -e "s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g" \
468 -e "s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g" \
469 -e "s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g" \
470 > ./dist/pkgconfig/nss-config
471
472chmod 755 ./dist/pkgconfig/nss-config
473
474# From nss-util.spec:
475# Set up our package file
476%{__mkdir_p} ./dist/pkgconfig
477%{__cat} %{SOURCE202} | sed -e "s,%%libdir%%,%{_libdir},g" \
478 -e "s,%%prefix%%,%{_prefix},g" \
479 -e "s,%%exec_prefix%%,%{_prefix},g" \
480 -e "s,%%includedir%%,%{_includedir}/nss3,g" \
481 -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
482 -e "s,%%NSSUTIL_VERSION%%,%{version},g" > \
483 ./dist/pkgconfig/nss-util.pc
484
485NSSUTIL_VMAJOR=`cat lib/util/nssutil.h | grep "#define.*NSSUTIL_VMAJOR" | awk '{print $3}'`
486NSSUTIL_VMINOR=`cat lib/util/nssutil.h | grep "#define.*NSSUTIL_VMINOR" | awk '{print $3}'`
487NSSUTIL_VPATCH=`cat lib/util/nssutil.h | grep "#define.*NSSUTIL_VPATCH" | awk '{print $3}'`
488
489export NSSUTIL_VMAJOR
490export NSSUTIL_VMINOR
491export NSSUTIL_VPATCH
492
493%{__cat} %{SOURCE203} | sed -e "s,@libdir@,%{_libdir},g" \
494 -e "s,@prefix@,%{_prefix},g" \
495 -e "s,@exec_prefix@,%{_prefix},g" \
496 -e "s,@includedir@,%{_includedir}/nss3,g" \
497 -e "s,@MOD_MAJOR_VERSION@,$NSSUTIL_VMAJOR,g" \
498 -e "s,@MOD_MINOR_VERSION@,$NSSUTIL_VMINOR,g" \
499 -e "s,@MOD_PATCH_VERSION@,$NSSUTIL_VPATCH,g" \
500 > ./dist/pkgconfig/nss-util-config
501
502chmod 755 ./dist/pkgconfig/nss-util-config
503
504# From nss-softokn.spec:
505# Set up our package file
506# The nspr_version and nss_util_version globals used here
507# must match the ones nss-softokn has for its Requires.
508%{__mkdir_p} ./dist/pkgconfig
509%{__cat} %{SOURCE302} | sed -e "s,%%libdir%%,%{_libdir},g" \
510 -e "s,%%prefix%%,%{_prefix},g" \
511 -e "s,%%exec_prefix%%,%{_prefix},g" \
512 -e "s,%%includedir%%,%{_includedir}/nss3,g" \
513 -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
514 -e "s,%%NSSUTIL_VERSION%%,%{version},g" \
515 -e "s,%%SOFTOKEN_VERSION%%,%{version},g" > \
516 ./dist/pkgconfig/nss-softokn.pc
517
518SOFTOKEN_VMAJOR=`cat lib/softoken/softkver.h | grep "#define.*SOFTOKEN_VMAJOR" | awk '{print $3}'`
519SOFTOKEN_VMINOR=`cat lib/softoken/softkver.h | grep "#define.*SOFTOKEN_VMINOR" | awk '{print $3}'`
520SOFTOKEN_VPATCH=`cat lib/softoken/softkver.h | grep "#define.*SOFTOKEN_VPATCH" | awk '{print $3}'`
521
522export SOFTOKEN_VMAJOR
523export SOFTOKEN_VMINOR
524export SOFTOKEN_VPATCH
525
526%{__cat} %{SOURCE303} | sed -e "s,@libdir@,%{_libdir},g" \
527 -e "s,@prefix@,%{_prefix},g" \
528 -e "s,@exec_prefix@,%{_prefix},g" \
529 -e "s,@includedir@,%{_includedir}/nss3,g" \
530 -e "s,@MOD_MAJOR_VERSION@,$SOFTOKEN_VMAJOR,g" \
531 -e "s,@MOD_MINOR_VERSION@,$SOFTOKEN_VMINOR,g" \
532 -e "s,@MOD_PATCH_VERSION@,$SOFTOKEN_VPATCH,g" \
533 > ./dist/pkgconfig/nss-softokn-config
534
535chmod 755 ./dist/pkgconfig/nss-softokn-config
536
537# @todo remove?
538#%{__cat} %{SOURCE9} > ./dist/pkgconfig/setup-nsssysinit.sh
539#chmod 755 ./dist/pkgconfig/setup-nsssysinit.sh
540
541%{__cp} ./lib/ckfw/nssck.api ./dist/private/nss/
542
543date +"%e %B %Y" | tr -d '\n' > date.xml
544echo -n %{version} > version.xml
545
546# @todo We don't have xmlto yet.
547## configuration files and setup script
548#for m in %{SOURCE20} %{SOURCE21} %{SOURCE22}; do
549# cp ${m} .
550#done
551#for m in nss-config.xml setup-nsssysinit.xml pkcs11.txt.xml; do
552# xmlto man ${m}
553#done
554#
555## nss databases considered to be configuration files
556#for m in %{SOURCE23} %{SOURCE24} %{SOURCE25} %{SOURCE26} %{SOURCE27}; do
557# cp ${m} .
558#done
559#for m in cert8.db.xml cert9.db.xml key3.db.xml key4.db.xml secmod.db.xml; do
560# xmlto man ${m}
561#done
562
563%check
564# @todo Disable check since it fails so far.
565exit 0
566
567if [ ${DISABLETEST:-0} -eq 1 ]; then
568 echo "testing disabled"
569 exit 0
570fi
571
572# Begin -- copied from the build section
573
574# inform the ssl test scripts that SSL2 is disabled
575export NSS_NO_SSL2_NO_EXPORT=1
576
577# We don't need a freebl/softoken build w/o NSPR
578#FREEBL_NO_DEPEND=1
579#export FREEBL_NO_DEPEND
580
581BUILD_OPT=1
582export BUILD_OPT
583
584export NSS_BLTEST_NOT_AVAILABLE=1
585
586# End -- copied from the build section
587
588# enable the following line to force a test failure
589# find ./nss -name \*.chk | xargs rm -f
590
591# Run test suite.
592# In order to support multiple concurrent executions of the test suite
593# (caused by concurrent RPM builds) on a single host,
594# we'll use a random port. Also, we want to clean up any stuck
595# selfserv processes. If process name "selfserv" is used everywhere,
596# we can't simply do a "killall selfserv", because it could disturb
597# concurrent builds. Therefore we'll do a search and replace and use
598# a different process name.
599# Using xargs doesn't mix well with spaces in filenames, in order to
600# avoid weird quoting we'll require that no spaces are being used.
601
602SPACEISBAD=`find ./tests | grep -c ' '` ||:
603if [ $SPACEISBAD -ne 0 ]; then
604 echo "error: filenames containing space are not supported (xargs)"
605 exit 1
606fi
607MYRAND=`perl -e 'print 9000 + int rand 1000'`; echo $MYRAND ||:
608RANDSERV=selfserv_${MYRAND}; echo $RANDSERV ||:
609DISTBINDIR=`ls -d ./dist/*.OBJ/bin`; echo $DISTBINDIR ||:
610pushd `pwd`
611cd $DISTBINDIR
612ln -s selfserv $RANDSERV
613popd
614# man perlrun, man perlrequick
615# replace word-occurrences of selfserv with selfserv_$MYRAND
616find ./tests -type f |\
617 grep -v "\.db$" |grep -v "\.crl$" | grep -v "\.crt$" |\
618 grep -vw CVS |xargs grep -lw selfserv |\
619 xargs -l perl -pi -e "s/\bselfserv\b/$RANDSERV/g" ||:
620
621killall $RANDSERV || :
622
623rm -rf ./tests_results
624pushd ./tests/
625# all.sh is the test suite script
626
627# don't need to run all the tests when testing packaging
628# nss_cycles: standard pkix upgradedb sharedb
629%define nss_tests "libpkix cert dbtests tools fips sdr crmf smime ssl ocsp merge pkits chains"
630# nss_ssl_tests: crl bypass_normal normal_bypass normal_fips fips_normal iopr
631# nss_ssl_run: cov auth stress
632#
633# Uncomment these lines if you need to temporarily
634# disable some test suites for faster test builds
635# global nss_ssl_tests "normal_fips"
636# global nss_ssl_run "cov auth"
637
638SKIP_NSS_TEST_SUITE=`echo $SKIP_NSS_TEST_SUITE`
639
640if [ "x$SKIP_NSS_TEST_SUITE" == "x" ]; then
641 HOST=localhost DOMSUF=localdomain PORT=$MYRAND NSS_CYCLES=%{?nss_cycles} NSS_TESTS=%{?nss_tests} NSS_SSL_TESTS=%{?nss_ssl_tests} NSS_SSL_RUN=%{?nss_ssl_run} ./all.sh
642else
643 echo "skipped test suite"
644fi
645
646popd
647
648# Normally, the grep exit status is 0 if selected lines are found and 1 otherwise,
649# Grep exits with status greater than 1 if an error ocurred.
650# If there are test failures we expect TEST_FAILURES > 0 and GREP_EXIT_STATUS = 0,
651# With no test failures we expect TEST_FAILURES = 0 and GREP_EXIT_STATUS = 1, whereas
652# GREP_EXIT_STATUS > 1 would indicate an error in grep such as failure to find the log file.
653killall $RANDSERV || :
654
655if [ "x$SKIP_NSS_TEST_SUITE" == "x" ]; then
656 TEST_FAILURES=$(grep -c FAILED ./tests_results/security/localhost.1/output.log) || GREP_EXIT_STATUS=$?
657else
658 TEST_FAILURES=0
659 GREP_EXIT_STATUS=1
660fi
661
662if [ ${GREP_EXIT_STATUS:-0} -eq 1 ]; then
663 echo "okay: test suite detected no failures"
664else
665 if [ ${GREP_EXIT_STATUS:-0} -eq 0 ]; then
666 # while a situation in which grep return status is 0 and it doesn't output
667 # anything shouldn't happen, set the default to something that is
668 # obviously wrong (-1)
669 echo "error: test suite had ${TEST_FAILURES:--1} test failure(s)"
670 exit 1
671 else
672 if [ ${GREP_EXIT_STATUS:-0} -eq 2 ]; then
673 echo "error: grep has not found log file"
674 exit 1
675 else
676 echo "error: grep failed with exit code: ${GREP_EXIT_STATUS}"
677 exit 1
678 fi
679 fi
680fi
681echo "test suite completed"
682
683%install
684
685%{__rm} -rf $RPM_BUILD_ROOT
686
687# There is no make install target so we'll do it ourselves.
688
689%{__mkdir_p} $RPM_BUILD_ROOT/%{_includedir}/nss3
690%{__mkdir_p} $RPM_BUILD_ROOT/%{_includedir}/nss3/templates
691%{__mkdir_p} $RPM_BUILD_ROOT/%{_bindir}
692%{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}
693%{__mkdir_p} $RPM_BUILD_ROOT/%{unsupported_tools_directory}
694%{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
695%if %{defined rhel}
696# not needed for rhel and its derivatives only fedora
697%else
698# because of the pp.1 conflict with perl-PAR-Packer
699%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/doc/nss-tools
700%endif
701
702mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
703mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5
704
705# Copy the binary libraries we want
706for file in nssckbi nss3 smime3 ssl3 # nsspem
707do
708 %{__install} -p -m 755 dist/*.OBJ/lib/$file.dll $RPM_BUILD_ROOT/%{_libdir}
709 test -f dist/*.OBJ/lib/$file.a && \
710 %{__install} -p -m 644 dist/*.OBJ/lib/$file.a $RPM_BUILD_ROOT/%{_libdir}
711done
712
713# From nss-util.spec:
714for file in nssutil3
715do
716 %{__install} -p -m 755 dist/*.OBJ/lib/$file.dll $RPM_BUILD_ROOT/%{_libdir}
717 test -f dist/*.OBJ/lib/$file.a && \
718 %{__install} -p -m 644 dist/*.OBJ/lib/$file.a $RPM_BUILD_ROOT/%{_libdir}
719done
720
721# From nss-softokn.spec:
722# Copy the binary libraries we want
723for file in softokn3 nssdbm3 freebl3
724do
725 %{__install} -p -m 755 dist/*.OBJ/lib/$file.dll $RPM_BUILD_ROOT/%{_libdir}
726 test -f dist/*.OBJ/lib/$file.a && \
727 %{__install} -p -m 644 dist/*.OBJ/lib/$file.a $RPM_BUILD_ROOT/%{_libdir}
728done
729
730# @todo remove?
731## Install the empty NSS db files
732## Legacy db
733#%{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/pki/nssdb
734#%{__install} -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/pki/nssdb/cert8.db
735#%{__install} -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/pki/nssdb/key3.db
736#%{__install} -p -m 644 %{SOURCE5} $RPM_BUILD_ROOT/%{_sysconfdir}/pki/nssdb/secmod.db
737## Shared db
738#%{__install} -p -m 644 %{SOURCE6} $RPM_BUILD_ROOT/%{_sysconfdir}/pki/nssdb/cert9.db
739#%{__install} -p -m 644 %{SOURCE7} $RPM_BUILD_ROOT/%{_sysconfdir}/pki/nssdb/key4.db
740#%{__install} -p -m 644 %{SOURCE8} $RPM_BUILD_ROOT/%{_sysconfdir}/pki/nssdb/pkcs11.txt
741
742# Copy the development libraries we want
743for file in crmf.a nssb.a nssckfw.a
744do
745 %{__install} -p -m 644 dist/*.OBJ/lib/$file $RPM_BUILD_ROOT/%{_libdir}
746done
747
748# Copy the binaries we want
749for file in certutil cmsutil crlutil modutil pk12util signtool signver ssltap
750do
751 %{__install} -p -m 755 dist/*.OBJ/bin/$file.exe $RPM_BUILD_ROOT/%{_bindir}
752done
753
754# Copy the binaries we ship as unsupported
755for file in atob btoa derdump listsuites ocspclnt pp selfserv strsclnt symkeyutil tstclnt vfyserv vfychain
756do
757 %{__install} -p -m 755 dist/*.OBJ/bin/$file.exe $RPM_BUILD_ROOT/%{unsupported_tools_directory}
758done
759
760# From nss-softokn.spec:
761# Copy the binaries we ship as unsupported
762for file in bltest fipstest shlibsign
763do
764 %{__install} -p -m 755 dist/*.OBJ/bin/$file.exe $RPM_BUILD_ROOT/%{unsupported_tools_directory}
765done
766
767# Copy the include files we want
768for file in dist/public/nss/*.h
769do
770 %{__install} -p -m 644 $file $RPM_BUILD_ROOT/%{_includedir}/nss3
771done
772
773# From nss-softokn.spec:
774# Copy some freebl include files we also want
775for file in blapi.h alghmac.h
776do
777 %{__install} -p -m 644 dist/private/nss/$file $RPM_BUILD_ROOT/%{_includedir}/nss3
778done
779
780# Copy the template files we want
781for file in dist/private/nss/nssck.api
782do
783 %{__install} -p -m 644 $file $RPM_BUILD_ROOT/%{_includedir}/nss3/templates
784done
785
786# From nss-util.spec:
787# Copy the template files we want
788for file in dist/private/nss/templates.c
789do
790 %{__install} -p -m 644 $file $RPM_BUILD_ROOT/%{_includedir}/nss3/templates
791done
792
793# From nss-softokn.spec:
794# Copy the static freebl library
795for file in freebl.a
796do
797%{__install} -p -m 644 dist/*.OBJ/lib/$file $RPM_BUILD_ROOT/%{_libdir}
798done
799
800# Copy the package configuration files
801%{__install} -p -m 644 ./dist/pkgconfig/nss.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nss.pc
802%{__install} -p -m 755 ./dist/pkgconfig/nss-config $RPM_BUILD_ROOT/%{_bindir}/nss-config
803
804# From nss-util.spec:
805# Copy the package configuration files
806%{__install} -p -m 644 ./dist/pkgconfig/nss-util.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nss-util.pc
807%{__install} -p -m 755 ./dist/pkgconfig/nss-util-config $RPM_BUILD_ROOT/%{_bindir}/nss-util-config
808
809# From nss-softokn.spec:
810# Copy the package configuration files
811%{__install} -p -m 644 ./dist/pkgconfig/nss-softokn.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/nss-softokn.pc
812%{__install} -p -m 755 ./dist/pkgconfig/nss-softokn-config $RPM_BUILD_ROOT/%{_bindir}/nss-softokn-config
813
814# @tod remove?
815## Copy the pkcs #11 configuration script
816#%{__install} -p -m 755 ./dist/pkgconfig/setup-nsssysinit.sh $RPM_BUILD_ROOT/%{_bindir}/setup-nsssysinit.sh
817## install a symbolic link to it, without the ".sh" suffix,
818## that matches the man page documentation
819#ln -r -s -f $RPM_BUILD_ROOT/%{_bindir}/setup-nsssysinit.sh $RPM_BUILD_ROOT/%{_bindir}/setup-nsssysinit
820
821# Copy the man pages for scripts
822# @todo We don't have xmlto yet.
823#for f in nss-config setup-nsssysinit; do
824# install -c -m 644 ${f}.1 $RPM_BUILD_ROOT%{_mandir}/man1/${f}.1
825#done
826# Copy the man pages for the nss tools
827for f in "%{allTools}"; do
828 install -c -m 644 ./dist/docs/nroff/${f}.1 $RPM_BUILD_ROOT%{_mandir}/man1/${f}.1
829done
830%if %{defined rhel}
831install -c -m 644 ./dist/docs/nroff/pp.1 $RPM_BUILD_ROOT%{_mandir}/man1/pp.1
832%else
833install -c -m 644 ./dist/docs/nroff/pp.1 $RPM_BUILD_ROOT%{_datadir}/doc/nss-tools/pp.1
834%endif
835
836# Copy the man pages for the configuration files
837# @todo We don't have xmlto yet.
838#for f in pkcs11.txt; do
839# install -c -m 644 ${f}.5 $RPM_BUILD_ROOT%{_mandir}/man5/${f}.5
840#done
841# Copy the man pages for the nss databases
842#for f in cert8.db cert9.db key3.db key4.db secmod.db; do
843# install -c -m 644 ${f}.5 $RPM_BUILD_ROOT%{_mandir}/man5/${f}.5
844#done
845
846# Generate & install forwarder DLLs.
847for m in nss3 nssckbi smime3 ssl3 nssdbm3 freebl3 ; do
848 gcc -Zomf -Zdll -nostdlib ${m}k.def -l${RPM_BUILD_ROOT}%{_libdir}/${m}.dll -lend -o ${RPM_BUILD_ROOT}%{_libdir}/${m}k.dll
849done
850# These are special due to one letter less
851gcc -Zomf -Zdll -nostdlib nssuti3k.def -l${RPM_BUILD_ROOT}%{_libdir}/nssutil3.dll -lend -o ${RPM_BUILD_ROOT}%{_libdir}/nssuti3k.dll
852gcc -Zomf -Zdll -nostdlib softok3k.def -l${RPM_BUILD_ROOT}%{_libdir}/softokn3.dll -lend -o ${RPM_BUILD_ROOT}%{_libdir}/softok3k.dll
853
854%clean
855%{__rm} -rf $RPM_BUILD_ROOT
856
857
858%files
859%defattr(-,root,root)
860%{!?_licensedir:%global license %%doc}
861%license COPYING
862%{_libdir}/nss3.dll
863%{_libdir}/ssl3.dll
864%{_libdir}/smime3.dll
865%{_libdir}/nssckbi.dll
866# @todo need?
867#%{_libdir}/nsspem.dll
868# @todo need?
869#%dir %{_sysconfdir}/pki/nssdb
870#%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pki/nssdb/cert8.db
871#%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pki/nssdb/key3.db
872#%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pki/nssdb/secmod.db
873##%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pki/nssdb/cert9.db
874##%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pki/nssdb/key4.db
875#%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pki/nssdb/pkcs11.txt
876# @todo We don't have xmlto yet.
877#%attr(0644,root,root) %doc %{_mandir}/man5/cert8.db.5.gz
878#%attr(0644,root,root) %doc %{_mandir}/man5/key3.db.5.gz
879#%attr(0644,root,root) %doc %{_mandir}/man5/secmod.db.5.gz
880#%attr(0644,root,root) %doc %{_mandir}/man5/cert9.db.5.gz
881#%attr(0644,root,root) %doc %{_mandir}/man5/key4.db.5.gz
882#%attr(0644,root,root) %doc %{_mandir}/man5/pkcs11.txt.5.gz
883
884# @todo need?
885#%files sysinit
886#%defattr(-,root,root)
887#%{_libdir}/libnsssysinit.so
888#%{_bindir}/setup-nsssysinit.sh
889## symbolic link to setup-nsssysinit.sh
890#%{_bindir}/setup-nsssysinit
891#%attr(0644,root,root) %doc %{_mandir}/man1/setup-nsssysinit.1.gz
892
893%files tools
894%defattr(-,root,root)
895%{_bindir}/certutil.exe
896%{_bindir}/cmsutil.exe
897%{_bindir}/crlutil.exe
898%{_bindir}/modutil.exe
899%{_bindir}/pk12util.exe
900%{_bindir}/signtool.exe
901%{_bindir}/signver.exe
902%{_bindir}/ssltap.exe
903%{unsupported_tools_directory}/atob.exe
904%{unsupported_tools_directory}/btoa.exe
905%{unsupported_tools_directory}/derdump.exe
906%{unsupported_tools_directory}/listsuites.exe
907%{unsupported_tools_directory}/ocspclnt.exe
908%{unsupported_tools_directory}/pp.exe
909%{unsupported_tools_directory}/selfserv.exe
910%{unsupported_tools_directory}/strsclnt.exe
911%{unsupported_tools_directory}/symkeyutil.exe
912%{unsupported_tools_directory}/tstclnt.exe
913%{unsupported_tools_directory}/vfyserv.exe
914%{unsupported_tools_directory}/vfychain.exe
915# instead of %%{_mandir}/man*/* let's list them explicitely
916# supported tools
917%attr(0644,root,root) %doc %{_mandir}/man1/certutil.1.gz
918%attr(0644,root,root) %doc %{_mandir}/man1/cmsutil.1.gz
919%attr(0644,root,root) %doc %{_mandir}/man1/crlutil.1.gz
920%attr(0644,root,root) %doc %{_mandir}/man1/modutil.1.gz
921%attr(0644,root,root) %doc %{_mandir}/man1/pk12util.1.gz
922%attr(0644,root,root) %doc %{_mandir}/man1/signtool.1.gz
923%attr(0644,root,root) %doc %{_mandir}/man1/signver.1.gz
924# unsupported tools
925%attr(0644,root,root) %doc %{_mandir}/man1/derdump.1.gz
926%if %{defined rhel}
927%attr(0644,root,root) %doc %{_mandir}/man1/pp.1.gz
928%else
929%dir %{_datadir}/doc/nss-tools
930%attr(0644,root,root) %doc %{_datadir}/doc/nss-tools/pp.1
931%endif
932%attr(0644,root,root) %doc %{_mandir}/man1/ssltap.1.gz
933%attr(0644,root,root) %doc %{_mandir}/man1/vfychain.1.gz
934%attr(0644,root,root) %doc %{_mandir}/man1/vfyserv.1.gz
935
936%files devel
937%defattr(-,root,root)
938%{_libdir}/nss3.a
939%{_libdir}/smime3.a
940%{_libdir}/ssl3.a
941%{_libdir}/crmf.a
942# @todo need?
943#%{_libdir}/nsspem.a
944%{_libdir}/pkgconfig/nss.pc
945%{_bindir}/nss-config
946# @todo We don't have xmlto yet.
947#%attr(0644,root,root) %doc %{_mandir}/man1/nss-config.1.gz
948%dir %{_includedir}/nss3
949%{_includedir}/nss3/cert.h
950%{_includedir}/nss3/certdb.h
951%{_includedir}/nss3/certt.h
952%{_includedir}/nss3/cmmf.h
953%{_includedir}/nss3/cmmft.h
954%{_includedir}/nss3/cms.h
955%{_includedir}/nss3/cmsreclist.h
956%{_includedir}/nss3/cmst.h
957%{_includedir}/nss3/crmf.h
958%{_includedir}/nss3/crmft.h
959%{_includedir}/nss3/cryptohi.h
960%{_includedir}/nss3/cryptoht.h
961%{_includedir}/nss3/sechash.h
962%{_includedir}/nss3/jar-ds.h
963%{_includedir}/nss3/jar.h
964%{_includedir}/nss3/jarfile.h
965%{_includedir}/nss3/key.h
966%{_includedir}/nss3/keyhi.h
967%{_includedir}/nss3/keyt.h
968%{_includedir}/nss3/keythi.h
969%{_includedir}/nss3/nss.h
970%{_includedir}/nss3/nssckbi.h
971#%{_includedir}/nss3/nsspem.h
972%{_includedir}/nss3/ocsp.h
973%{_includedir}/nss3/ocspt.h
974%{_includedir}/nss3/p12.h
975%{_includedir}/nss3/p12plcy.h
976%{_includedir}/nss3/p12t.h
977%{_includedir}/nss3/pk11func.h
978%{_includedir}/nss3/pk11pqg.h
979%{_includedir}/nss3/pk11priv.h
980%{_includedir}/nss3/pk11pub.h
981%{_includedir}/nss3/pk11sdr.h
982%{_includedir}/nss3/pkcs12.h
983%{_includedir}/nss3/pkcs12t.h
984%{_includedir}/nss3/pkcs7t.h
985%{_includedir}/nss3/preenc.h
986%{_includedir}/nss3/secmime.h
987%{_includedir}/nss3/secmod.h
988%{_includedir}/nss3/secmodt.h
989%{_includedir}/nss3/secpkcs5.h
990%{_includedir}/nss3/secpkcs7.h
991%{_includedir}/nss3/smime.h
992%{_includedir}/nss3/ssl.h
993%{_includedir}/nss3/sslerr.h
994%{_includedir}/nss3/sslproto.h
995%{_includedir}/nss3/sslt.h
996
997%files pkcs11-devel
998%defattr(-, root, root)
999%{_includedir}/nss3/nssbase.h
1000%{_includedir}/nss3/nssbaset.h
1001%{_includedir}/nss3/nssckepv.h
1002%{_includedir}/nss3/nssckft.h
1003%{_includedir}/nss3/nssckfw.h
1004%{_includedir}/nss3/nssckfwc.h
1005%{_includedir}/nss3/nssckfwt.h
1006%{_includedir}/nss3/nssckg.h
1007%{_includedir}/nss3/nssckmdt.h
1008%{_includedir}/nss3/nssckt.h
1009%{_includedir}/nss3/templates/nssck.api
1010%{_libdir}/nssb.a
1011%{_libdir}/nssckfw.a
1012
1013%files legacy
1014%defattr(-,root,root)
1015%{_libdir}/nss3k.dll
1016%{_libdir}/ssl3k.dll
1017%{_libdir}/smime3k.dll
1018%{_libdir}/nssckbik.dll
1019
1020# From nss-util.spec:
1021
1022%files util
1023%defattr(-,root,root)
1024%{_libdir}/nssutil3.dll
1025
1026%files util-devel
1027%defattr(-,root,root)
1028%{_libdir}/nssutil3.a
1029# package configuration files
1030%{_libdir}/pkgconfig/nss-util.pc
1031%{_bindir}/nss-util-config
1032# these are marked as public export in nss/lib/util/manifest.mk
1033# co-owned with nss
1034%dir %{_includedir}/nss3
1035%{_includedir}/nss3/base64.h
1036%{_includedir}/nss3/ciferfam.h
1037%{_includedir}/nss3/hasht.h
1038%{_includedir}/nss3/nssb64.h
1039%{_includedir}/nss3/nssb64t.h
1040%{_includedir}/nss3/nsslocks.h
1041%{_includedir}/nss3/nssilock.h
1042%{_includedir}/nss3/nssilckt.h
1043%{_includedir}/nss3/nssrwlk.h
1044%{_includedir}/nss3/nssrwlkt.h
1045%{_includedir}/nss3/nssutil.h
1046%{_includedir}/nss3/pkcs1sig.h
1047%{_includedir}/nss3/pkcs11.h
1048%{_includedir}/nss3/pkcs11f.h
1049%{_includedir}/nss3/pkcs11n.h
1050%{_includedir}/nss3/pkcs11p.h
1051%{_includedir}/nss3/pkcs11t.h
1052%{_includedir}/nss3/pkcs11u.h
1053%{_includedir}/nss3/portreg.h
1054%{_includedir}/nss3/secasn1.h
1055%{_includedir}/nss3/secasn1t.h
1056%{_includedir}/nss3/seccomon.h
1057%{_includedir}/nss3/secder.h
1058%{_includedir}/nss3/secdert.h
1059%{_includedir}/nss3/secdig.h
1060%{_includedir}/nss3/secdigt.h
1061%{_includedir}/nss3/secerr.h
1062%{_includedir}/nss3/secitem.h
1063%{_includedir}/nss3/secoid.h
1064%{_includedir}/nss3/secoidt.h
1065%{_includedir}/nss3/secport.h
1066%{_includedir}/nss3/utilmodt.h
1067%{_includedir}/nss3/utilpars.h
1068%{_includedir}/nss3/utilparst.h
1069%{_includedir}/nss3/utilrename.h
1070%{_includedir}/nss3/templates/templates.c
1071
1072%files util-legacy
1073%defattr(-,root,root)
1074%{_libdir}/nssuti3k.dll
1075
1076# From nss-softokn.spec:
1077
1078%files softokn
1079%defattr(-,root,root)
1080%{_libdir}/nssdbm3.dll
1081%{_libdir}/nssdbm3.chk
1082%{_libdir}/softokn3.dll
1083%{_libdir}/softokn3.chk
1084# shared with nss-tools
1085%dir %{_libdir}/nss
1086%dir %{unsupported_tools_directory}
1087%{unsupported_tools_directory}/bltest.exe
1088%{unsupported_tools_directory}/fipstest.exe
1089%{unsupported_tools_directory}/shlibsign.exe
1090
1091%files softokn-freebl
1092%defattr(-,root,root)
1093%{_libdir}/freebl3.dll
1094%{_libdir}/freebl3.chk
1095
1096%files softokn-freebl-devel
1097%defattr(-,root,root)
1098%{_libdir}/freebl.a
1099%{_includedir}/nss3/blapi.h
1100%{_includedir}/nss3/blapit.h
1101%{_includedir}/nss3/alghmac.h
1102
1103%files softokn-devel
1104%defattr(-,root,root)
1105%{_libdir}/nssdbm3.a
1106%{_libdir}/softokn3.a
1107%{_libdir}/pkgconfig/nss-softokn.pc
1108%{_bindir}/nss-softokn-config
1109# co-owned with nss
1110%dir %{_includedir}/nss3
1111%{_includedir}/nss3/ecl-exp.h
1112# @todo this fails (missing -lfreebl3, needs investigation)
1113#%{_includedir}/nss3/nsslowhash.h
1114%{_includedir}/nss3/shsign.h
1115
1116%files softokn-legacy
1117%defattr(-,root,root)
1118%{_libdir}/nssdbm3k.dll
1119%{_libdir}/nssdbm3k.chk
1120%{_libdir}/softok3k.dll
1121%{_libdir}/softok3k.chk
1122
1123%files softokn-freebl
1124%defattr(-,root,root)
1125%{_libdir}/freebl3.dll
1126%{_libdir}/freebl3.chk
1127
1128%files softokn-freebl-legacy
1129%defattr(-,root,root)
1130%{_libdir}/freebl3k.dll
1131%{_libdir}/freebl3k.chk
1132
1133
1134%changelog
1135* Thu Feb 23 2017 Dmitriy Kuminov <coding@dmik.org> - 3.23.0-4
1136- Use scm_source and friends.
1137- Generate more compact forwarder DLLs with better memory footprint.
1138
1139* Fri Apr 15 2016 Dmitriy Kuminov <coding@dmik.org> 3.23.0-3
1140- Remove erroneous -Wl,-rpath-link from nss-config and others.
1141
1142* Fri Apr 1 2016 Dmitriy Kuminov <coding@dmik.org> 3.23.0-2
1143- Enable high memory support.
1144
1145* Wed Mar 30 2016 Dmitriy Kuminov <coding@dmik.org> 3.23.0-1
1146- Update to version 3.23.
1147- Import OS/2-specific NSS fixes from Mozilla for OS/2 sources.
1148- Rebuild with GCC 4.9.2 and LIBC 0.6.6.
1149
1150* Mon Jan 16 2012 yd
1151- rebuild with libc 0.6.4 runtime.
Note: See TracBrowser for help on using the repository browser.