1 %global nspr_version
4.8.6
3 %global nss_util_version
3.12.8
4 %global unsupported_tools_directory
%{_libdir}/nss
/unsupported
-tools
5 %global saved_files_dir
%{_libdir}/nss
/saved
7 # Produce .chk files for the final stripped binaries
8 %define __spec_install_post \
9 %{?__debug_package:%{__debug_install_post}} \
10 %{__arch_install_post} \
11 %{__os_install_post} \
12 $RPM_BUILD_ROOT
/%{unsupported_tools_directory}/shlibsign -i $RPM_BUILD_ROOT/%{_libdir}/libsoftokn3.so \
13 $RPM_BUILD_ROOT
/%{unsupported_tools_directory}/shlibsign -i $RPM_BUILD_ROOT/%{_lib}/libfreebl3.so \
14 $RPM_BUILD_ROOT
/%{unsupported_tools_directory}/shlibsign -i $RPM_BUILD_ROOT/%{_libdir}/libnssdbm3.so \
17 Summary: Network Security Services Softoken Module
21 License: MPLv1.1 or GPLv2
+ or LGPLv2
+
22 URL: http
://www.mozilla.org
/projects
/security
/pki
/nss
/
23 Group: System Environment
/Libraries
24 Requires: nspr
>= %{nspr_version}
25 Requires: nss
-util
>= %{nss_util_version}
26 Requires: nss
-softokn
-freebl
%{_isa} >= %{version}
27 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
28 BuildRequires
: nspr
-devel
>= %{nspr_version}
29 BuildRequires
: nss
-util
-devel
>= %{nss_util_version}
30 BuildRequires
: sqlite
-devel
31 BuildRequires
: zlib
-devel
32 BuildRequires
: pkgconfig
37 Source0: %{name}-%{version}-stripped.tar.bz2
38 # The nss-softokn tar ball is a subset of nss-{version}-stripped.tar.bz2,
39 # Therefore we use the nss-split-softokn.sh script to keep only what we need.
40 # Download the nss tarball via git from the nss propect and follow these
41 # steps to make the tarball for nss-util out of the one for nss:
43 # fedpkg clone nss-softokn
45 # cp ../../nss/devel/${version}-stripped.tar.bz2 .
46 # sh ./nss-split-softokn.sh ${version}
47 # A file named {name}-{version}-stripped.tar.bz2 should appear
48 Source1: nss
-split
-softokn.sh
49 Source2: nss
-softokn.pc.
in
50 Source3: nss
-softokn
-config.
in
52 Patch2: nss
-softokn
-3.12.4-prelink.patch
53 Patch3: nss
-softokn
-3.12.4-fips
-fix.patch
56 Network Security Services Softoken Cryptographic Module
59 Summary: Freebl library
for the Network Security Services
60 Group: System Environment
/Base
61 Conflicts: nss
< 3.12.2.99.3-5
62 Conflicts: prelink
< 0.4.3
65 NSS Softoken Cryptographic Module Freelb Library
67 Install the nss
-softokn
-freebl package
if you need the freebl
71 Summary: Header and Library files
for doing development with the Freebl library
for NSS
72 Group: System Environment
/Base
73 Provides: nss
-softokn
-freebl
-static
= %{version}-%{release}
74 Requires: nss
-softokn
-freebl
%{?_isa} = %{version}-%{release}
76 %description freebl
-devel
77 NSS Softoken Cryptographic Module Freelb Library Development Tools
80 Summary: Development libraries
for Network Security Services
81 Group: Development
/Libraries
82 Requires: nss
-softokn
%{?_isa} = %{version}-%{release}
83 Requires: nspr
-devel
>= %{nspr_version}
84 Requires: nss
-util
-devel
>= %{nss_util_version}
86 BuildRequires
: nspr
-devel
>= %{nspr_version}
87 BuildRequires
: nss
-util
-devel
>= %{nss_util_version}
88 # require nss at least the version when we split via subpackages
89 BuildRequires
: nss
-devel
>= 3.12.2.99.3-11
92 Header and Library files
for doing development with Network Security Services.
98 %patch2 -p0
-b .prelink
99 %patch3 -p0
-b .fipsfix
105 export FREEBL_NO_DEPEND
108 export FREEBL_USE_PRELINK
110 # Enable compiler optimizations and disable debugging code
114 # Generate symbolic info for debuggers
115 XCFLAGS
=$RPM_OPT_FLAGS
118 PKG_CONFIG_ALLOW_SYSTEM_LIBS
=1
119 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
=1
121 export PKG_CONFIG_ALLOW_SYSTEM_LIBS
122 export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
124 NSPR_INCLUDE_DIR
=`
/usr
/bin
/pkg
-config
--cflags
-only
-I nspr | sed 's
/-I
//'`
125 NSPR_LIB_DIR
=`
/usr
/bin
/pkg
-config
--libs
-only
-L nspr | sed 's
/-L
//'`
127 export NSPR_INCLUDE_DIR
130 NSS_INCLUDE_DIR
=`
/usr
/bin
/pkg
-config
--cflags
-only
-I nss
-util | sed 's
/-I
//'`
131 NSS_LIB_DIR
=`
/usr
/bin
/pkg
-config
--libs
-only
-L nss
-util | sed 's
/-L
//'`
133 export NSS_INCLUDE_DIR
136 NSS_USE_SYSTEM_SQLITE
=1
137 export NSS_USE_SYSTEM_SQLITE
139 %ifarch x86_64 ppc64 ia64 s390x sparc64
144 # Compile softokn plus needed support
145 %{__make} -C .
/mozilla
/security
/coreconf
146 %{__make} -C .
/mozilla
/security
/dbm
147 %{__make} -C .
/mozilla
/security
/nss
149 # Set up our package file
150 # The nspr_version and nss_util_version globals used here
151 # must match the ones nss-softokn has for its Requires.
152 %{__mkdir_p} .
/mozilla
/dist
/pkgconfig
153 %{__cat} %{SOURCE2} | sed -e "s,%%libdir%%,%{_libdir},g" \
154 -e "s
,%
%prefix%%
,%{_prefix},g" \
155 -e "s
,%
%exec_prefix%%
,%{_prefix},g" \
156 -e "s
,%
%includedir%%
,%{_includedir}/nss3
,g" \
157 -e "s
,%
%NSPR_VERSION%%
,%{nspr_version},g" \
158 -e "s
,%
%NSSUTIL_VERSION%%
,%{nss_util_version},g" \
159 -e "s
,%
%SOFTOKEN_VERSION%%
,%{version},g"
> \
160 .
/mozilla
/dist
/pkgconfig
/nss
-softokn.pc
162 SOFTOKEN_VMAJOR
=`cat mozilla
/security
/nss
/lib
/softoken
/softkver.h | grep "
#define.*SOFTOKEN_VMAJOR" | awk '{print $3}'`
163 SOFTOKEN_VMINOR
=`cat mozilla
/security
/nss
/lib
/softoken
/softkver.h | grep "
#define.*SOFTOKEN_VMINOR" | awk '{print $3}'`
164 SOFTOKEN_VPATCH
=`cat mozilla
/security
/nss
/lib
/softoken
/softkver.h | grep "
#define.*SOFTOKEN_VPATCH" | awk '{print $3}'`
166 export SOFTOKEN_VMAJOR
167 export SOFTOKEN_VMINOR
168 export SOFTOKEN_VPATCH
170 %{__cat} %{SOURCE3} | sed -e "s,@libdir@,%{_libdir},g" \
171 -e "s
,@prefix@
,%{_prefix},g" \
172 -e "s
,@exec_prefix@
,%{_prefix},g" \
173 -e "s
,@includedir@
,%{_includedir}/nss3
,g" \
174 -e "s
,@MOD_MAJOR_VERSION@
,$SOFTOKEN_VMAJOR
,g" \
175 -e "s
,@MOD_MINOR_VERSION@
,$SOFTOKEN_VMINOR
,g" \
176 -e "s
,@MOD_PATCH_VERSION@
,$SOFTOKEN_VPATCH
,g" \
177 > .
/mozilla
/dist
/pkgconfig
/nss
-softokn
-config
179 chmod
755 .
/mozilla
/dist
/pkgconfig
/nss
-softokn
-config
182 # enable the following line to force a test failure
183 # find ./mozilla -name \*.chk | xargs rm -f
186 # We can't run a subset of the tests because the tools have
187 # dependencies on nss libraries outside of softokn.
188 # Let's leave this as a place holder.
194 %{__rm} -rf $RPM_BUILD_ROOT
196 # There is no make install target so we'll do it ourselves.
198 %{__mkdir_p} $RPM_BUILD_ROOT/%{_includedir}/nss3
199 %{__mkdir_p} $RPM_BUILD_ROOT/%{_bindir}
200 %{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}
201 %{__mkdir_p} $RPM_BUILD_ROOT/%{_lib}
202 %{__mkdir_p} $RPM_BUILD_ROOT/%{unsupported_tools_directory}
203 %{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
204 %{__mkdir_p} $RPM_BUILD_ROOT/%{saved_files_dir}
206 # Copy the binary libraries we want
207 for file
in libsoftokn3.so libnssdbm3.so
209 %{__install} -p -m 755 mozilla/dist/*.OBJ/lib/$file $RPM_BUILD_ROOT/%{_libdir}
212 # Because libcrypt depends on libfreebl3.so, it is special
213 # so we install it in /lib{64}, keeping a symbolic link to it
214 # back in /usr/lib{64} to keep everyone else working
215 for file
in libfreebl3.so
217 %{__install} -p -m 755 mozilla/dist/*.OBJ/lib/$file $RPM_BUILD_ROOT/%{_lib}
218 ln
-sf ..
/..
/%{_lib}/libfreebl3.so $RPM_BUILD_ROOT/%{_libdir}/libfreebl3.so
221 # Make sure chk files can be found in both places
222 for file
in libfreebl3.chk
224 ln
-s ..
/..
/%{_lib}/$file $RPM_BUILD_ROOT/%{_libdir}/$file
227 # Copy the binaries we ship as unsupported
228 for file
in shlibsign
230 %{__install} -p -m 755 mozilla/dist/*.OBJ/bin/$file $RPM_BUILD_ROOT/%{unsupported_tools_directory}
233 # Copy the include files we want
234 for file
in mozilla
/dist
/public
/nss
/*.h
236 %{__install} -p -m 644 $file $RPM_BUILD_ROOT/%{_includedir}/nss3
239 # Copy a freebl include file we also want
240 for file
in mozilla
/dist
/private
/nss
/blapi.h
242 %{__install} -p -m 644 $file $RPM_BUILD_ROOT/%{_includedir}/nss3
245 # Copy the static freebl library
246 for file
in libfreebl.a
248 %{__install} -p -m 644 mozilla/dist/*.OBJ/lib/$file $RPM_BUILD_ROOT/%{_libdir}
251 # Copy the package configuration files
252 %{__install} -p -m 644 ./mozilla/dist/pkgconfig/nss-softokn.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
/nss
-softokn.pc
253 %{__install} -p -m 755 ./mozilla/dist/pkgconfig/nss-softokn-config $RPM_BUILD_ROOT/%{_bindir}/nss
-softokn
-config
256 %{__rm} -rf $RPM_BUILD_ROOT
260 /sbin
/ldconfig
>/dev
/null
2>/dev
/null
263 /sbin
/ldconfig
>/dev
/null
2>/dev
/null
266 %defattr(-,root
,root
)
267 %{_libdir}/libnssdbm3.so
268 %{_libdir}/libnssdbm3.chk
269 %{_libdir}/libsoftokn3.so
270 %{_libdir}/libsoftokn3.chk
271 # shared with nss-tools
273 %dir %{saved_files_dir}
274 %dir %{unsupported_tools_directory}
275 %{unsupported_tools_directory}/shlibsign
278 %defattr(-,root
,root
)
279 /%{_lib}/libfreebl3.so
280 /%{_lib}/libfreebl3.chk
281 # and these symbolic links
282 %{_libdir}/libfreebl3.so
283 %{_libdir}/libfreebl3.chk
286 %defattr(-,root
,root
)
287 %{_libdir}/libfreebl.a
288 %{_includedir}/nss3
/blapi.h
291 %defattr(-,root
,root
)
292 %{_libdir}/pkgconfig
/nss
-softokn.pc
293 %{_bindir}/nss
-softokn
-config
296 %dir %{_includedir}/nss3
298 # The following headers are those exported public in
299 # mozilla/security/nss/lib/freebl/manifest.mn and
300 # mozilla/security/nss/lib/softoken/manifest.mn
302 # The following list is short because many headers, such as
303 # the pkcs #11 ones, have been provided by nss-util-devel
304 # which installed them before us.
306 %{_includedir}/nss3
/blapit.h
307 %{_includedir}/nss3
/ecl
-exp.h
308 %{_includedir}/nss3
/hasht.h
309 %{_includedir}/nss3
/sechash.h
310 %{_includedir}/nss3
/nsslowhash.h
311 %{_includedir}/nss3
/secmodt.h
312 %{_includedir}/nss3
/shsign.h
315 * Wed Sep
29 2010 jkeating
- 3.12.8-2
316 - Rebuilt
for gcc bug
634757
318 * Thu Sep
23 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.8-1
320 - Adhere to static library packaging guidelines
(#609613)
321 - Fix nss
-util
-devel version dependency line
322 - Shorten freebl and freebl subpackages descriptions
324 * Sat Sep
18 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.99.4-1
327 * Sat Sep
12 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.7.99.3-2
328 - Update the required version of nss
-util to
3.12.7.99.3
330 * Sat Sep
04 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.7.99.3-1
333 * Mon Aug
30 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.7-3
334 - Update BuildRequires on nspr
-devel and nss
-util
-devel
336 * Sat Aug
29 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.7-2
337 - Define NSS_USE_SYSTEM_SQLITE and remove nss
-nolocalsql patch
338 - Fix rpmlint warnings about macros
in comments and changelog
340 * Mon Aug
16 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.7-1
342 - Fix build files to ensure nsslowhash.h is included
in public headers
344 * Tue Jun
08 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.6-3
347 * Mon Jun
07 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.6-2
348 - Bump NVR to be greater than those
for nss
-softokn subpackages
in F11
(rhbz
#601407)
350 * Sun Jun
06 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-23
351 - Bump release number
353 * Fri Jun
04 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-22
354 - Cleanup changelog comments to avoid unwanted macro expansions
356 * Wed Jun
02 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-21
359 * Wed Jun
02 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-20
360 - Add %
%{?_isa} to the requires
in the devel packages
(#596840)
361 - Fix typo
in the package description
(#598295)
362 - Update nspr version to
4.8.4
364 * Sat May
08 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-19
365 - Consider the system as not fips enabled when
/proc
/sys
/crypto
/fips_enabled isn't present
(rhbz
#590199)
367 * Sat May
08 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-18
368 - Fix
Conflicts line to prevent update when prelink is not yet the right version
(rhbz
#590199)
370 * Mon Apr
19 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-17
371 - Updated prelink patch rhbz
#504949
373 * Wed Apr
15 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-16
374 - allow prelink of softoken and freebl. Change the verify code to use
375 prelink
-u
if prelink is installed. Fix by Robert Relyea rhbz
#504949
377 * Mon Jan
18 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-15
378 - Move libfreebl3.so and its .chk file to
/lib
{64} (rhbz
#561544)
380 * Mon Jan
18 2010 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-13
381 - Fix
in nss
-softokn
-spec.
in
382 - Require nss
-util
>= 3.12.4
384 * Thu Dec
03 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-12
385 - Require nss
-util
3.12.5
387 * Fri Nov
20 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-11
388 - export freebl devel tools
(#538226)
390 * Tue Sep
23 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-10
391 - Fix paths
in nss
-softokn
-prelink so signed libraries don't get touched
, rhbz
#524794
393 * Thu Sep
17 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-9
394 - Add nssdbm3.so to nss
-softokn
-prelink.conf
, rhbz
#524077
396 * Thu Sep
10 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-8
397 - Retagging
for a chained build
399 * Thu Sep
10 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-6
400 - Don't list libraries
in nss
-softokn
-config
, dynamic linking required
402 * Tue Sep
08 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-5
403 - Installing shared libraries to %
%{_libdir}
405 * Sun Sep
06 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-4
406 - Postuninstall scriptlet finishes quietly
408 * Sat Sep
05 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-3
409 - Remove symblic links to shared libraries from devel
, rhbz
#521155
410 - Apply the nss
-nolocalsql patch
411 - No rpath
-link
in nss
-softokn
-config
413 * Fri Sep
04 2009 serstring
=Elio Maldonado
<emaldona@redhat.cpm
> - 3.12.4-2
414 - Retagging to pick up the correct .cvsignore
416 * Tue Sep
01 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.4-1
418 - Fix logic on postun
419 - Don't require sqlite
421 * Mon Aug
31 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.3.99.3-24
422 - Fixed
test on
%postun to avoid returning
1 when nss
-softokn instances still remain
424 * Sun Aug
30 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.3.99.3-23
425 - Explicitly state via nss_util_version the nss
-util version we require
427 * Fri Aug
28 2009 Warren Togami
<wtogami@redhat.com
> - 3.12.3.99.3-22
428 - caolan's nss
-softokn.pc patch
430 * Thu Aug
27 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.3.99.3-21
431 - Bump the release number
for a chained build of nss
-util
, nss
-softokn and nss
433 * Thu Aug
27 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.3.99.3-20
434 - List freebl
, nssdbm and softokn libraries
in nss
-softokn
-config and nss
-softokn.pc
436 * Thu Aug
27 2009 Elio Maldonado@
<emaldona@redhat.com
> - 3.12.3.99.3-19
437 - Determine NSSUTIL_INCLUDE_DIR and NSSUTIL_LIB_DIR with a pkg
-config query on nss
-util
438 - Remove the release
17 hack
440 * Wed Aug
27 2009 Elio maldonado
<emaldona@redhat.com
> - 3.12.3.99.3-18
441 - fix spurious executable permissions on nss
-softokn.pc
443 * Thu Aug
27 2009 Adel Gadllah
<adel.gadllah@gmail.com
> - 3.12.3.99.3-17
444 - Add hack to fix build
446 * Tue Aug
25 2009 Dennis Gilmore
<dennis@ausil.us
> - 3.12.3.99.3-16
447 - only have a single
Requires: line
in the .pc file
449 * Tue Aug
25 2009 Dennis Gilmore
<dennis@ausil.us
> - 3.12.3.99.3-12
450 - bump to unique rpm nvr
452 * Tue Aug
25 2009 Elio Maldonado
<emaldona@redhat.com
> - 3.12.3.99.3-10
453 - Build after nss with subpackages and new nss
-util
455 * Thu Aug
20 2009 Dennis Gilmore
<dennis@ausil.us
> 3.12.3.99.3-9
456 - revert to shipping bits
458 * Thu Aug
19 2009 Elio Maldonado
<emaldona@redhat.com
> 3.12.3.99.3-8.1
459 - Disable installing
until conflicts are relsoved
461 * Thu Aug
19 2009 Elio Maldonado
<emaldona@redhat.com
> 3.12.3.99.3-8