]> git.pld-linux.org Git - packages/pkcs11-helper.git/blob - pkcs11-helper.spec
5b88a3269c406f5ed170d13446c06d5478369998
[packages/pkcs11-helper.git] / pkcs11-helper.spec
1 Summary:        Helper library for the use with smart cards and the PKCS#11 API
2 Summary(pl.UTF-8):      Biblioteka pomocnicza do używania z kartami procesorowymi i API PKCS#11
3 Name:           pkcs11-helper
4 Version:        1.11
5 Release:        3
6 License:        GPL v2 or BSD
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/opensc/%{name}-%{version}.tar.bz2
9 # Source0-md5:  59f2ac76c66e4dc0c21614cc944e89fb
10 URL:            https://github.com/OpenSC/OpenSC/wiki/pkcs11-helper
11 # for macros
12 BuildRequires:  automake
13 BuildRequires:  doxygen
14 BuildRequires:  gnutls-devel >= 1.4
15 BuildRequires:  nss-devel >= 3.11
16 BuildRequires:  openssl-devel >= 0.9.7a
17 BuildRequires:  polarssl-devel
18 BuildRequires:  pkgconfig
19 Requires:       openssl >= 0.9.7a
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %undefine       __cxx
23
24 %description
25 pkcs11-helper provides a simple API to access PKCS#11 tokens.
26
27 %description -l pl.UTF-8
28 pkcs11-helper udostępnia proste API do dostępu do tokenów PKCS#11.
29
30 %package devel
31 Summary:        Header files for pkcs11-helper library
32 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki pkcs11-helper
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 Header files for pkcs11-helper library.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki pkcs11-helper.
41
42 %package static
43 Summary:        Static pkcs11-helper library
44 Summary(pl.UTF-8):      Statyczna biblioteka pkcs11-helper
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static pkcs11-helper library.
50
51 %description static -l pl.UTF-8
52 Statyczna biblioteka pkcs11-helper.
53
54 %prep
55 %setup -q
56
57 %build
58 %configure \
59         --enable-doc
60
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 # obsoleted by pkg-config
70 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpkcs11-helper.la
71 # packaged as %doc
72 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS COPYING COPYING.BSD ChangeLog README THANKS
83 %attr(755,root,root) %{_libdir}/libpkcs11-helper.so.*.*.*
84 %attr(755,root,root) %ghost %{_libdir}/libpkcs11-helper.so.1
85 %{_mandir}/man8/pkcs11-helper-1.8*
86
87 %files devel
88 %defattr(644,root,root,755)
89 %doc doc/api/api.out/html/*
90 %attr(755,root,root) %{_libdir}/libpkcs11-helper.so
91 %{_includedir}/pkcs11-helper-1.0
92 %{_pkgconfigdir}/libpkcs11-helper-1.pc
93 %{_aclocaldir}/pkcs11-helper-1.m4
94
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/libpkcs11-helper.a
This page took 0.345974 seconds and 3 git commands to generate.