]>
Commit | Line | Data |
---|---|---|
8d1548f6 | 1 | %define foover %(echo %{version} | tr . _) |
e043961c | 2 | Summary: NSS - Network Security Services |
900f3743 | 3 | Summary(pl.UTF-8): NSS - Network Security Services |
e043961c | 4 | Name: nss |
8eeab90b | 5 | Version: 3.15.1 |
2455c084 | 6 | Release: 1 |
c61925df | 7 | Epoch: 1 |
c9f1afae | 8 | License: MPL v1.1 or GPL v2+ or LGPL v2.1+ |
a20334db | 9 | Group: Libraries |
d6727b26 | 10 | Source0: http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{foover}_RTM/src/%{name}-%{version}.tar.gz |
8eeab90b | 11 | # Source0-md5: fb68f4d210ac9397dd0d3c39c4f938eb |
9e8d6618 | 12 | Source1: %{name}-mozilla-nss.pc |
8d1548f6 | 13 | Source2: %{name}-config.in |
867c7e33 ER |
14 | Source3: http://www.cacert.org/certs/root.der |
15 | # Source3-md5: a61b375e390d9c3654eebd2031461f6b | |
e043961c | 16 | Patch0: %{name}-Makefile.patch |
0c7a986a | 17 | URL: http://www.mozilla.org/projects/security/pki/nss/ |
180376d6 | 18 | BuildRequires: nspr-devel >= 1:4.10 |
867c7e33 | 19 | BuildRequires: nss-tools |
acc47f6e | 20 | BuildRequires: perl-base |
0e541f12 | 21 | BuildRequires: sqlite3-devel |
e814da19 | 22 | BuildRequires: zlib-devel |
7d80b913 | 23 | BuildConflicts: mozilla < 0.9.6-3 |
180376d6 | 24 | Requires: nspr >= 1:4.10 |
ce0a2a28 | 25 | Requires: %{name}-softokn-freebl = %{epoch}:%{version}-%{release} |
64c1d08d | 26 | Obsoletes: libnss3 |
8a057a22 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e043961c | 28 | |
f68ec3a2 | 29 | %define specflags -fno-strict-aliasing |
c9f1afae JB |
30 | # signed - stripped before signing |
31 | %define _noautostrip .*%{_libdir}/libfreebl3.so\\|.*%{_libdir}/libsoftokn3.so | |
32 | %define _noautochrpath .*%{_libdir}/libfreebl3.so\\|.*%{_libdir}/libsoftokn3.so | |
f68ec3a2 | 33 | |
e3f4677f | 34 | %description |
6b813326 | 35 | NSS supports cross-platform development of security-enabled server |
d8ef6ecb | 36 | applications. Applications built with NSS can support PKCS #5, |
bf42a3ba | 37 | PKCS #7, PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 and v3, X.509 v3 |
6b813326 | 38 | certificates, and other security standards. |
e043961c | 39 | |
238a25a0 JR |
40 | %description -l pl.UTF-8 |
41 | NSS wspomaga pisanie wieloplatformowych bezpiecznych serwerów. | |
42 | Aplikacja używająca NSS jest w stanie obsłużyć PKCS #5, PKCS #7, | |
d8ef6ecb | 43 | PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 oraz v3, certyfikaty X.509 v3, |
238a25a0 | 44 | i wiele innych bezpiecznych standardów. |
e043961c | 45 | |
c3d988d0 JB |
46 | %package tools |
47 | Summary: NSS command line tools and utilities | |
c9f1afae | 48 | Summary(pl.UTF-8): Narzędzia NSS obsługiwane z linii poleceń |
c3d988d0 | 49 | Group: Applications |
93f17fb4 | 50 | Requires: %{name} = %{epoch}:%{version}-%{release} |
c3d988d0 JB |
51 | |
52 | %description tools | |
53 | The NSS Toolkit command line tool. | |
54 | ||
238a25a0 JR |
55 | %description tools -l pl.UTF-8 |
56 | Narzędzia NSS obsługiwane z linii poleceń. | |
c3d988d0 | 57 | |
e043961c | 58 | %package devel |
59 | Summary: NSS - header files | |
900f3743 | 60 | Summary(pl.UTF-8): NSS - pliki nagłówkowe |
e043961c | 61 | Group: Development/Libraries |
93f17fb4 | 62 | Requires: %{name} = %{epoch}:%{version}-%{release} |
180376d6 | 63 | Requires: nspr-devel >= 1:4.10 |
64c1d08d | 64 | Obsoletes: libnss3-devel |
e043961c | 65 | |
66 | %description devel | |
67 | Development part of NSS library. | |
68 | ||
238a25a0 JR |
69 | %description devel -l pl.UTF-8 |
70 | Część biblioteki NSS przeznaczona dla programistów. | |
e043961c | 71 | |
e043961c | 72 | %package static |
73 | Summary: NSS - static library | |
900f3743 | 74 | Summary(pl.UTF-8): NSS - biblioteka statyczna |
e043961c | 75 | Group: Development/Libraries |
93f17fb4 | 76 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
e043961c | 77 | |
78 | %description static | |
79 | Static NSS Toolkit libraries. | |
80 | ||
238a25a0 | 81 | %description static -l pl.UTF-8 |
e043961c | 82 | Statyczne wersje bibliotek z NSS. |
83 | ||
909366d3 AM |
84 | %package softokn-freebl |
85 | Summary: Freebl library for the Network Security Services | |
d6727b26 | 86 | Summary(pl.UTF-8): Biblioteka freebl dla bibliotek NSS |
909366d3 AM |
87 | Group: Libraries |
88 | ||
89 | %description softokn-freebl | |
d6727b26 JB |
90 | Freebl cryptographic library for the Network Security Services. |
91 | ||
92 | %description softokn-freebl -l pl.UTF-8 | |
93 | Biblioteka kryptograficzna freebl dla bibliotek NSS. | |
909366d3 | 94 | |
e043961c | 95 | %prep |
1015f127 | 96 | %setup -q |
e043961c | 97 | %patch0 -p1 |
98 | ||
c9f1afae JB |
99 | %if 0%{!?debug:1} |
100 | # strip before signing | |
180376d6 | 101 | %{__sed} -i -e '/export ADDON_PATH$/a\ echo STRIP \; %{__strip} --strip-unneeded -R.comment -R.note ${5}' nss/cmd/shlibsign/sign.sh |
c9f1afae JB |
102 | %endif |
103 | ||
e043961c | 104 | %build |
180376d6 | 105 | cd nss |
e043961c | 106 | |
867c7e33 ER |
107 | # http://wiki.cacert.org/wiki/NSSLib |
108 | addbuiltin -n "CAcert Inc." -t "CT,C,C" < %{SOURCE3} >> lib/ckfw/builtins/certdata.txt | |
109 | ||
ab170647 | 110 | %ifarch %{x8664} ppc64 sparc64 |
f68ec3a2 PS |
111 | export USE_64=1 |
112 | %endif | |
113 | ||
180376d6 | 114 | %{__make} -C coreconf -j1 \ |
e043961c | 115 | NSDISTMODE=copy \ |
116 | NS_USE_GCC=1 \ | |
117 | MOZILLA_CLIENT=1 \ | |
118 | NO_MDUPDATE=1 \ | |
119 | USE_PTHREADS=1 \ | |
120 | BUILD_OPT=1 \ | |
07b248d4 | 121 | CC="%{__cc}" \ |
e043961c | 122 | OPTIMIZER="%{rpmcflags}" |
123 | ||
180376d6 | 124 | %{__make} -j1 \ |
e043961c | 125 | NSDISTMODE=copy \ |
126 | NS_USE_GCC=1 \ | |
127 | MOZILLA_CLIENT=1 \ | |
128 | NO_MDUPDATE=1 \ | |
129 | USE_PTHREADS=1 \ | |
0d478c4c JB |
130 | USE_SYSTEM_ZLIB=1 \ |
131 | ZLIB_LIBS="-lz" \ | |
07b248d4 JB |
132 | BUILD_OPT=1 \ |
133 | CC="%{__cc}" \ | |
e043961c | 134 | OPTIMIZER="%{rpmcflags}" \ |
2455c084 | 135 | PLATFORM="pld" |
e043961c | 136 | |
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
909366d3 | 139 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/nss,/%{_lib},%{_libdir},%{_pkgconfigdir}} |
eec1fab1 | 140 | |
180376d6 JB |
141 | install dist/private/nss/* $RPM_BUILD_ROOT%{_includedir}/nss |
142 | install dist/public/dbm/* $RPM_BUILD_ROOT%{_includedir}/nss | |
143 | install dist/public/nss/* $RPM_BUILD_ROOT%{_includedir}/nss | |
144 | install dist/pld/bin/* $RPM_BUILD_ROOT%{_bindir} | |
145 | install dist/pld/lib/* $RPM_BUILD_ROOT%{_libdir} | |
e043961c | 146 | |
8d1548f6 ER |
147 | %{__sed} -e ' |
148 | s#libdir=.*#libdir=%{_libdir}#g | |
149 | s#includedir=.*#includedir=%{_includedir}#g | |
150 | s#VERSION#%{version}#g | |
180376d6 JB |
151 | ' %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/nss.pc |
152 | # compatibility symlink | |
153 | ln -s nss.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nss.pc | |
8d1548f6 | 154 | |
180376d6 JB |
155 | NSS_VMAJOR=$(awk '/#define.*NSS_VMAJOR/ {print $3}' nss/lib/nss/nss.h) |
156 | NSS_VMINOR=$(awk '/#define.*NSS_VMINOR/ {print $3}' nss/lib/nss/nss.h) | |
157 | NSS_VPATCH=$(awk '/#define.*NSS_VPATCH/ {print $3}' nss/lib/nss/nss.h) | |
8d1548f6 ER |
158 | %{__sed} -e " |
159 | s,@libdir@,%{_libdir},g | |
160 | s,@prefix@,%{_prefix},g | |
161 | s,@exec_prefix@,%{_prefix},g | |
507f226d | 162 | s,@includedir@,%{_includedir}/nss,g |
69aeda39 ER |
163 | s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g |
164 | s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g | |
165 | s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g | |
8d1548f6 ER |
166 | " %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/nss-config |
167 | chmod +x $RPM_BUILD_ROOT%{_bindir}/nss-config | |
9e8d6618 | 168 | |
909366d3 AM |
169 | mv $RPM_BUILD_ROOT%{_libdir}/libfreebl3.so $RPM_BUILD_ROOT/%{_lib} |
170 | ln -s /%{_lib}/libfreebl3.so $RPM_BUILD_ROOT%{_libdir}/libfreebl3.so | |
69cbb7a2 AM |
171 | mv $RPM_BUILD_ROOT%{_libdir}/libfreebl3.chk $RPM_BUILD_ROOT/%{_lib} |
172 | ln -s /%{_lib}/libfreebl3.chk $RPM_BUILD_ROOT%{_libdir}/libfreebl3.chk | |
909366d3 | 173 | |
e6093db0 AM |
174 | if [ ! -f "$RPM_BUILD_ROOT%{_includedir}/nss/nsslowhash.h" ]; then |
175 | echo "ERROR: %{_includedir}/nss/nsslowhash.h not installed. Needed by glibc" >&2 | |
176 | exit 1 | |
177 | fi | |
178 | ||
eccd0672 | 179 | %clean |
180 | rm -rf $RPM_BUILD_ROOT | |
181 | ||
985ee8fc JB |
182 | %post -p /sbin/ldconfig |
183 | %postun -p /sbin/ldconfig | |
e043961c | 184 | |
185 | %files | |
186 | %defattr(644,root,root,755) | |
c9f1afae JB |
187 | %attr(755,root,root) %{_libdir}/libfreebl3.so |
188 | %attr(755,root,root) %{_libdir}/libnss3.so | |
189 | %attr(755,root,root) %{_libdir}/libnssckbi.so | |
e0debb79 JB |
190 | %attr(755,root,root) %{_libdir}/libnssdbm3.so |
191 | %attr(755,root,root) %{_libdir}/libnssutil3.so | |
c9f1afae JB |
192 | %attr(755,root,root) %{_libdir}/libsmime3.so |
193 | %attr(755,root,root) %{_libdir}/libsoftokn3.so | |
194 | %attr(755,root,root) %{_libdir}/libssl3.so | |
195 | %{_libdir}/libfreebl3.chk | |
d6727b26 | 196 | %{_libdir}/libnssdbm3.chk |
c9f1afae | 197 | %{_libdir}/libsoftokn3.chk |
e043961c | 198 | |
199 | %files devel | |
200 | %defattr(644,root,root,755) | |
ed6867e9 | 201 | %attr(755,root,root) %{_bindir}/nss-config |
c89efb4d | 202 | %{_libdir}/libcrmf.a |
d6727b26 | 203 | %{_includedir}/nss |
c9f1afae JB |
204 | %{_pkgconfigdir}/mozilla-nss.pc |
205 | %{_pkgconfigdir}/nss.pc | |
e043961c | 206 | |
207 | %files tools | |
208 | %defattr(644,root,root,755) | |
180376d6 JB |
209 | %attr(755,root,root) %{_bindir}/addbuiltin |
210 | %attr(755,root,root) %{_bindir}/atob | |
211 | %attr(755,root,root) %{_bindir}/baddbdir | |
212 | %attr(755,root,root) %{_bindir}/bltest | |
213 | %attr(755,root,root) %{_bindir}/btoa | |
214 | %attr(755,root,root) %{_bindir}/certcgi | |
215 | %attr(755,root,root) %{_bindir}/certutil | |
216 | %attr(755,root,root) %{_bindir}/checkcert | |
217 | %attr(755,root,root) %{_bindir}/chktest | |
218 | %attr(755,root,root) %{_bindir}/cmsutil | |
219 | %attr(755,root,root) %{_bindir}/conflict | |
220 | %attr(755,root,root) %{_bindir}/crlutil | |
221 | %attr(755,root,root) %{_bindir}/crmftest | |
222 | %attr(755,root,root) %{_bindir}/dbtest | |
223 | %attr(755,root,root) %{_bindir}/derdump | |
224 | %attr(755,root,root) %{_bindir}/dertimetest | |
225 | %attr(755,root,root) %{_bindir}/digest | |
226 | %attr(755,root,root) %{_bindir}/encodeinttest | |
227 | %attr(755,root,root) %{_bindir}/fipstest | |
228 | %attr(755,root,root) %{_bindir}/httpserv | |
229 | %attr(755,root,root) %{_bindir}/listsuites | |
230 | %attr(755,root,root) %{_bindir}/lowhashtest | |
231 | %attr(755,root,root) %{_bindir}/makepqg | |
232 | %attr(755,root,root) %{_bindir}/mangle | |
233 | %attr(755,root,root) %{_bindir}/modutil | |
234 | %attr(755,root,root) %{_bindir}/multinit | |
235 | %attr(755,root,root) %{_bindir}/nonspr10 | |
236 | %attr(755,root,root) %{_bindir}/ocspclnt | |
237 | %attr(755,root,root) %{_bindir}/ocspresp | |
238 | %attr(755,root,root) %{_bindir}/oidcalc | |
239 | %attr(755,root,root) %{_bindir}/p7content | |
240 | %attr(755,root,root) %{_bindir}/p7env | |
241 | %attr(755,root,root) %{_bindir}/p7sign | |
242 | %attr(755,root,root) %{_bindir}/p7verify | |
243 | %attr(755,root,root) %{_bindir}/pk11gcmtest | |
244 | %attr(755,root,root) %{_bindir}/pk11mode | |
245 | %attr(755,root,root) %{_bindir}/pk12util | |
246 | %attr(755,root,root) %{_bindir}/pk1sign | |
247 | %attr(755,root,root) %{_bindir}/pkix-errcodes | |
248 | %attr(755,root,root) %{_bindir}/pp | |
249 | %attr(755,root,root) %{_bindir}/pwdecrypt | |
250 | %attr(755,root,root) %{_bindir}/remtest | |
251 | %attr(755,root,root) %{_bindir}/rsaperf | |
252 | %attr(755,root,root) %{_bindir}/sdrtest | |
253 | %attr(755,root,root) %{_bindir}/secmodtest | |
254 | %attr(755,root,root) %{_bindir}/selfserv | |
255 | %attr(755,root,root) %{_bindir}/shlibsign | |
256 | %attr(755,root,root) %{_bindir}/signtool | |
257 | %attr(755,root,root) %{_bindir}/signver | |
258 | %attr(755,root,root) %{_bindir}/ssltap | |
259 | %attr(755,root,root) %{_bindir}/strsclnt | |
260 | %attr(755,root,root) %{_bindir}/symkeyutil | |
261 | %attr(755,root,root) %{_bindir}/tstclnt | |
262 | %attr(755,root,root) %{_bindir}/vfychain | |
263 | %attr(755,root,root) %{_bindir}/vfyserv | |
e043961c | 264 | |
265 | %files static | |
266 | %defattr(644,root,root,755) | |
c9f1afae JB |
267 | %{_libdir}/libcertdb.a |
268 | %{_libdir}/libcerthi.a | |
269 | %{_libdir}/libcryptohi.a | |
270 | %{_libdir}/libdbm.a | |
271 | %{_libdir}/libfreebl3.a | |
272 | %{_libdir}/libjar.a | |
273 | %{_libdir}/libnss3.a | |
274 | %{_libdir}/libnssb.a | |
275 | %{_libdir}/libnssckfw.a | |
e0debb79 | 276 | %{_libdir}/libnssdbm3.a |
c9f1afae JB |
277 | %{_libdir}/libnssdev.a |
278 | %{_libdir}/libnsspki3.a | |
e0debb79 JB |
279 | %{_libdir}/libnssutil3.a |
280 | %{_libdir}/libpk11wrap3.a | |
c9f1afae JB |
281 | %{_libdir}/libpkcs12.a |
282 | %{_libdir}/libpkcs7.a | |
e0debb79 JB |
283 | %{_libdir}/libpkixcertsel.a |
284 | %{_libdir}/libpkixchecker.a | |
285 | %{_libdir}/libpkixcrlsel.a | |
286 | %{_libdir}/libpkixmodule.a | |
287 | %{_libdir}/libpkixparams.a | |
288 | %{_libdir}/libpkixpki.a | |
289 | %{_libdir}/libpkixresults.a | |
290 | %{_libdir}/libpkixstore.a | |
291 | %{_libdir}/libpkixsystem.a | |
292 | %{_libdir}/libpkixtop.a | |
293 | %{_libdir}/libpkixutil.a | |
c9f1afae | 294 | %{_libdir}/libsectool.a |
c9f1afae JB |
295 | %{_libdir}/libsmime3.a |
296 | %{_libdir}/libsoftokn3.a | |
297 | %{_libdir}/libssl3.a | |
909366d3 AM |
298 | |
299 | %files softokn-freebl | |
300 | %defattr(644,root,root,755) | |
301 | %attr(755,root,root) /%{_lib}/libfreebl3.so | |
69cbb7a2 | 302 | /%{_lib}/libfreebl3.chk |