]> git.pld-linux.org Git - packages/svrcore.git/blob - svrcore.spec
BR: automake
[packages/svrcore.git] / svrcore.spec
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
7 Name:           svrcore
8 Version:        4.0.4
9 Release:        3
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)
22
23 %description
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.
28
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.
35
36 %package devel
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}
43
44 %description devel
45 Header files for svrcore library.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki svrcore.
49
50 %package static
51 Summary:        Static svrcore library
52 Summary(pl.UTF-8):      Statyczna biblioteka svrcore
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static svrcore library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka svrcore.
61
62 %prep
63 %setup -q
64
65 %build
66 cp -f /usr/share/automake/config.sub .
67 %configure
68 %{__make}
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
81 %files
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
86
87 %files devel
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
93
94 %files static
95 %defattr(644,root,root,755)
96 %{_libdir}/libsvrcore.a
This page took 0.066094 seconds and 4 git commands to generate.