- updated to 1.27.0
[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.27.0
5 Release:        1
6 License:        GPL v2 or BSD
7 Group:          Libraries
8 #Source0Download: https://github.com/OpenSC/pkcs11-helper/releases
9 Source0:        https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-1.27/%{name}-%{version}.tar.bz2
10 # Source0-md5:  f3eb32bcc29af4dbdcb7f77b2889442d
11 Patch0:         no-libs.patch
12 Patch1:         %{name}-nss.patch
13 URL:            https://github.com/OpenSC/OpenSC/wiki/pkcs11-helper
14 BuildRequires:  autoconf >= 2.60
15 BuildRequires:  automake >= 1:1.10
16 BuildRequires:  doxygen
17 BuildRequires:  gnutls-devel >= 1.4
18 BuildRequires:  libtool
19 BuildRequires:  mbedtls-devel
20 BuildRequires:  nss-devel >= 3.11
21 BuildRequires:  openssl-devel >= 0.9.7a
22 BuildRequires:  pkgconfig
23 Requires:       gnutls-libs >= 1.4
24 Requires:       nss >= 3.11
25 Requires:       openssl >= 0.9.7a
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %undefine       __cxx
29
30 %description
31 pkcs11-helper provides a simple API to access PKCS#11 tokens.
32
33 %description -l pl.UTF-8
34 pkcs11-helper udostępnia proste API do dostępu do tokenów PKCS#11.
35
36 %package devel
37 Summary:        Header files for pkcs11-helper library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki pkcs11-helper
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41
42 %description devel
43 Header files for pkcs11-helper library.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki pkcs11-helper.
47
48 %package static
49 Summary:        Static pkcs11-helper library
50 Summary(pl.UTF-8):      Statyczna biblioteka pkcs11-helper
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static pkcs11-helper library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka pkcs11-helper.
59
60 %package apidocs
61 Summary:        API documentation for pkcs11-helper library
62 Summary(pl.UTF-8):      Dokumentacja API biblioteki pkcs11-helper
63 Group:          Documentation
64
65 %description apidocs
66 API documentation for pkcs11-helper library.
67
68 %description apidocs -l pl.UTF-8
69 Dokumentacja API biblioteki pkcs11-helper.
70
71 %prep
72 %setup -q
73 %patch0 -p1
74 %patch1 -p1
75
76 %build
77 %{__libtoolize}
78 %{__aclocal} -I m4
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 %configure \
83         --enable-doc
84
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 # obsoleted by pkg-config
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpkcs11-helper.la
95 # packaged as %doc
96 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post   -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
103
104 %files
105 %defattr(644,root,root,755)
106 %doc AUTHORS COPYING COPYING.BSD ChangeLog README THANKS
107 %attr(755,root,root) %{_libdir}/libpkcs11-helper.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libpkcs11-helper.so.1
109 %{_mandir}/man8/pkcs11-helper-1.8*
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libpkcs11-helper.so
114 %{_includedir}/pkcs11-helper-1.0
115 %{_pkgconfigdir}/libpkcs11-helper-1.pc
116 %{_aclocaldir}/pkcs11-helper-1.m4
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libpkcs11-helper.a
121
122 %files apidocs
123 %defattr(644,root,root,755)
124 %doc doc/api/api.out/html/*
This page took 0.167016 seconds and 4 git commands to generate.