1 %define nspr_version 4.6.4
2 %define nspr_evr 1:%{nspr_version}
3 %define nss_version 3.11.4
4 %define nss_evr 1:%{nss_version}
5 Summary: svrcore library for secure PIN handling using NSS crypto
6 Summary(pl.UTF-8): Biblioteka svrcore do bezpiecznej obsługi PIN-ów przy użyciu NSS
10 License: MPL v1.1 or GPL v2+ or LGPL v2.1+
11 Group: Development/Libraries
12 Source0: ftp://ftp.mozilla.org/pub/mozilla.org/directory/svrcore/releases/%{version}/src/%{name}-%{version}.tar.bz2
13 # Source0-md5: 46bcdc82624d11c1bb168cf9f15e066c
14 URL: http://www.mozilla.org/directory/
15 BuildRequires: automake
16 BuildRequires: nspr-devel >= %{nspr_evr}
17 BuildRequires: nss-devel >= %{nss_evr}
18 BuildRequires: perl-base
19 Requires: nspr >= %{nspr_evr}
20 Requires: nss >= %{nss_evr}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 svrcore provides applications with several ways to handle secure PIN
25 storage e.g. in an application that must be restarted, but needs the
26 PIN to unlock the private key and other crypto material, without user
27 intervention. svrcore uses the facilities provided by NSS.
29 %description -l pl.UTF-8
30 svrcore udostępnia aplikacjom kilka sposobów obsługi bezpiecznego
31 przechowywania PIN-ów, np. w aplikacji, która musi być zrestartowana,
32 ale wymaga PIN-u do odblokowania klucza prywatnego i innych danych
33 kryptograficznych bez interwencji użytkownika. svrcore wykorzystuje
34 funkcje udostępniane przez bibliotekę NSS.
37 Summary: Header files for svrcore library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki svrcore
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Requires: nspr-devel >= %{nspr_evr}
42 Requires: nss-devel >= %{nss_evr}
45 Header files for svrcore library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki svrcore.
51 Summary: Static svrcore library
52 Summary(pl.UTF-8): Statyczna biblioteka svrcore
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static svrcore library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka svrcore.
66 cp -f /usr/share/automake/config.sub .
71 rm -rf $RPM_BUILD_ROOT
74 DESTDIR=$RPM_BUILD_ROOT
76 rm -rf $RPM_BUILD_ROOT
78 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %defattr(644,root,root,755)
83 %doc LICENSE NEWS README
84 %attr(755,root,root) %{_libdir}/libsvrcore.so.*.*.*
85 %attr(755,root,root) %ghost %{_libdir}/libsvrcore.so.0
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_libdir}/libsvrcore.so
90 %{_libdir}/libsvrcore.la
91 %{_includedir}/svrcore.h
92 %{_pkgconfigdir}/svrcore.pc
95 %defattr(644,root,root,755)
96 %{_libdir}/libsvrcore.a