1 Summary: NSS - Network Security Services
2 Summary(pl): NSS - Network Security Services
5 %define foover %(echo %{version} | tr . _)
10 # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/dbm -r DBM_1_61_RTM
11 # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/dbm -r DBM_1_61_RTM
12 # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/coreconf -r NSS_3_9_4_RTM
13 # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/nss -r NSS_3_9_4_RTM
14 #Source0: %{name}-%{version}.tar.bz2
15 Source0: http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{foover}_RTM/src/%{name}-%{version}.tar.gz
16 # Source0-md5: bd58f762f1b352910901f11823e67b97
17 Source1: %{name}-mozilla-nss.pc
18 Patch0: %{name}-Makefile.patch
19 Patch1: %{name}-system-zlib.patch
21 # (:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/dbm -r NSS_3_10_RTM)
22 Patch2: %{name}-dbm.patch
23 BuildRequires: nspr-devel >= 4.4.1
24 BuildRequires: zip >= 2.1
25 BuildConflicts: mozilla < 0.9.6-3
26 Requires: nspr >= 4.4.1
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 NSS supports cross-platform development of security-enabled server
32 applications. Applications built with NSS can support PKCS #5,
33 PKCS #7, PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 and v3, X.509 v3
34 certificates, and other security standards.
37 NSS wspomaga pisanie wieloplatformowych bezpiecznych serwerów.
38 Aplikacja u¿ywaj±ca NSS jest w stanie obs³u¿yæ PKCS #5, PKCS #7,
39 PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 oraz v3, certyfikaty X.509 v3,
40 i wiele innych bezpiecznych standardów.
43 Summary: NSS command line tools and utilities
44 Summary(pl): Narzêdzia NSS
46 Requires: %{name} = %{epoch}:%{version}-%{release}
49 The NSS Toolkit command line tool.
51 %description tools -l pl
52 Narzêdzia NSS obs³ugiwane z linii poleceñ.
55 Summary: NSS - header files
56 Summary(pl): NSS - pliki nag³ówkowe
57 Group: Development/Libraries
58 Requires: %{name} = %{epoch}:%{version}-%{release}
59 Obsoletes: libnss3-devel
62 Development part of NSS library.
64 %description devel -l pl
65 Czê¶æ biblioteki NSS przeznaczona dla programistów.
68 Summary: NSS - static library
69 Summary(pl): NSS - biblioteka statyczna
70 Group: Development/Libraries
71 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
74 Static NSS Toolkit libraries.
76 %description static -l pl
77 Statyczne wersje bibliotek z NSS.
86 cd mozilla/security/nss
88 %{__make} build_coreconf \
95 OPTIMIZER="%{rpmcflags}"
104 OPTIMIZER="%{rpmcflags}" \
114 OPTIMIZER="%{rpmcflags}" \
118 rm -rf $RPM_BUILD_ROOT
119 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/nss,%{_libdir},%{_pkgconfigdir}}
121 install mozilla/dist/private/nss/* $RPM_BUILD_ROOT%{_includedir}/nss
122 install mozilla/dist/public/dbm/* $RPM_BUILD_ROOT%{_includedir}/nss
123 install mozilla/dist/public/nss/* $RPM_BUILD_ROOT%{_includedir}/nss
124 install mozilla/dist/pld/bin/* $RPM_BUILD_ROOT%{_bindir}
125 install mozilla/dist/pld/lib/* $RPM_BUILD_ROOT%{_libdir}
128 -e 's#libdir=.*#libdir=%{_libdir}#g' \
129 -e 's#includedir=.*#includedir=%{_includedir}#g' \
130 -e '#VERSION#%{version}#g' \
131 %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nss.pc
133 # resolve conflict with squid
134 mv -f $RPM_BUILD_ROOT%{_bindir}/{,nss-}client
137 rm -rf $RPM_BUILD_ROOT
139 %post -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_libdir}/lib*.so
148 %defattr(644,root,root,755)
151 %{_pkgconfigdir}/*.pc
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_bindir}/*
158 %defattr(644,root,root,755)
160 %exclude %{_libdir}/libcrmf.a