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