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: ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{foover}_RTM/src/%{name}-%{version}.tar.gz
16 # Source0-md5: 196c8d2746bd75d3561d129f64bbf9cf
17 Source1: %{name}-mozilla-nss.pc
18 Patch0: %{name}-Makefile.patch
19 URL: http://www.mozilla.org/projects/security/pki/nss/
20 BuildRequires: nspr-devel >= 4.6.3
21 BuildRequires: zlib-devel
22 BuildConflicts: mozilla < 0.9.6-3
23 Requires: nspr >= 1:4.6.3
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define specflags -fno-strict-aliasing
30 NSS supports cross-platform development of security-enabled server
31 applications. Applications built with NSS can support PKCS #5,
32 PKCS #7, PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 and v3, X.509 v3
33 certificates, and other security standards.
36 NSS wspomaga pisanie wieloplatformowych bezpiecznych serwerów.
37 Aplikacja u¿ywaj±ca NSS jest w stanie obs³u¿yæ PKCS #5, PKCS #7,
38 PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 oraz v3, certyfikaty X.509 v3,
39 i wiele innych bezpiecznych standardów.
42 Summary: NSS command line tools and utilities
43 Summary(pl): Narzêdzia NSS
45 Requires: %{name} = %{epoch}:%{version}-%{release}
48 The NSS Toolkit command line tool.
50 %description tools -l pl
51 Narzêdzia NSS obs³ugiwane z linii poleceñ.
54 Summary: NSS - header files
55 Summary(pl): NSS - pliki nag³ówkowe
56 Group: Development/Libraries
57 Requires: %{name} = %{epoch}:%{version}-%{release}
58 Obsoletes: libnss3-devel
61 Development part of NSS library.
63 %description devel -l pl
64 Czê¶æ biblioteki NSS przeznaczona dla programistów.
67 Summary: NSS - static library
68 Summary(pl): NSS - biblioteka statyczna
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
73 Static NSS Toolkit libraries.
75 %description static -l pl
76 Statyczne wersje bibliotek z NSS.
83 cd mozilla/security/nss
85 %ifarch %{x8664} ppc64
89 %{__make} build_coreconf \
96 OPTIMIZER="%{rpmcflags}"
105 OPTIMIZER="%{rpmcflags}" \
117 OPTIMIZER="%{rpmcflags}" \
121 rm -rf $RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/nss,%{_libdir},%{_pkgconfigdir}}
124 install mozilla/dist/private/nss/* $RPM_BUILD_ROOT%{_includedir}/nss
125 install mozilla/dist/public/dbm/* $RPM_BUILD_ROOT%{_includedir}/nss
126 install mozilla/dist/public/nss/* $RPM_BUILD_ROOT%{_includedir}/nss
127 install mozilla/dist/pld/bin/* $RPM_BUILD_ROOT%{_bindir}
128 install mozilla/dist/pld/lib/* $RPM_BUILD_ROOT%{_libdir}
131 -e 's#libdir=.*#libdir=%{_libdir}#g' \
132 -e 's#includedir=.*#includedir=%{_includedir}#g' \
133 -e 's#VERSION#%{version}#g' \
134 %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nss.pc
136 # resolve conflict with squid
137 mv -f $RPM_BUILD_ROOT%{_bindir}/{,nss-}client
140 rm -rf $RPM_BUILD_ROOT
142 %post -p /sbin/ldconfig
143 %postun -p /sbin/ldconfig
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/lib*.so
151 %defattr(644,root,root,755)
154 %{_pkgconfigdir}/*.pc
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_bindir}/*
161 %defattr(644,root,root,755)
163 %exclude %{_libdir}/libcrmf.a