Summary: NSS - Network Security Services Summary(pl): NSS - Network Security Services Name: nss Version: 3.9.4 %define foover %(echo %{version} | tr . _) Release: 1 Epoch: 1 License: GPL Group: Libraries # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/dbm -r DBM_1_61_RTM # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/dbm -r DBM_1_61_RTM # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/coreconf -r NSS_3_9_4_RTM # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/nss -r NSS_3_9_4_RTM Source0: %{name}-%{version}.tar.bz2 # Source0-md5: ccf2d1cc0e8284fef3b49c94b9feafed #Source0: http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{foover}_RTM/src/%{name}-%{version}.tar.gz Patch0: %{name}-Makefile.patch Patch1: %{name}-system-zlib.patch BuildRequires: nspr-devel >= 4.4.1 BuildRequires: zip >= 2.1 BuildConflicts: mozilla < 0.9.6-3 Requires: nspr >= 4.4.1 Obsoletes: libnss3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description NSS supports cross-platform development of security-enabled server applications. Applications built with NSS can support PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 and v3, X.509 v3 certificates, and other security standards. %description -l pl NSS wspomaga pisanie wieloplatformowych bezpiecznych serwerów. Aplikacja używająca NSS jest w stanie obsłużyć PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 oraz v3, certyfikaty X.509 v3, i wiele innych bezpiecznych standardów. %package tools Summary: NSS command line tools and utilities Summary(pl): Narzędzia NSS Group: Applications Requires: %{name} = %{epoch}:%{version}-%{release} %description tools The NSS Toolkit command line tool. %description tools -l pl Narzędzia NSS obsługiwane z linii poleceń. %package devel Summary: NSS - header files Summary(pl): NSS - pliki nagłówkowe Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: libnss3-devel %description devel Development part of NSS library. %description devel -l pl Część biblioteki NSS przeznaczona dla programistów. %package static Summary: NSS - static library Summary(pl): NSS - biblioteka statyczna Group: Development/Libraries Requires: %{name}-devel = %{epoch}:%{version}-%{release} %description static Static NSS Toolkit libraries. %description static -l pl Statyczne wersje bibliotek z NSS. %prep %setup -q %patch0 -p1 %patch1 -p1 %build cd mozilla/security/nss %{__make} build_coreconf \ NSDISTMODE=copy \ NS_USE_GCC=1 \ MOZILLA_CLIENT=1 \ NO_MDUPDATE=1 \ USE_PTHREADS=1 \ BUILD_OPT=1 \ OPTIMIZER="%{rpmcflags}" %{__make} build_dbm \ NSDISTMODE=copy \ NS_USE_GCC=1 \ MOZILLA_CLIENT=1 \ NO_MDUPDATE=1 \ USE_PTHREADS=1 \ BUILD_OPT=1 \ OPTIMIZER="%{rpmcflags}" \ PLATFORM="pld" %{__make} all \ NSDISTMODE=copy \ NS_USE_GCC=1 \ MOZILLA_CLIENT=1 \ NO_MDUPDATE=1 \ USE_PTHREADS=1 \ BUILD_OPT=1 \ OPTIMIZER="%{rpmcflags}" \ PLATFORM="pld" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/nss,%{_libdir}} install mozilla/dist/private/nss/* $RPM_BUILD_ROOT%{_includedir}/nss install mozilla/dist/public/dbm/* $RPM_BUILD_ROOT%{_includedir}/nss install mozilla/dist/public/seccmd/* $RPM_BUILD_ROOT%{_includedir}/nss install mozilla/dist/public/nss/* $RPM_BUILD_ROOT%{_includedir}/nss install mozilla/dist/pld/bin/* $RPM_BUILD_ROOT%{_bindir} install mozilla/dist/pld/lib/* $RPM_BUILD_ROOT%{_libdir} # resolve conflict with squid mv -f $RPM_BUILD_ROOT%{_bindir}/{,nss-}client %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so %{_libdir}/lib*.chk %files devel %defattr(644,root,root,755) %{_includedir}/nss %{_libdir}/libcrmf.a %files tools %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %files static %defattr(644,root,root,755) %{_libdir}/lib*.a %exclude %{_libdir}/libcrmf.a