]> git.pld-linux.org Git - packages/pkcs11-helper.git/blame - pkcs11-helper.spec
- updated to 1.29.0
[packages/pkcs11-helper.git] / pkcs11-helper.spec
CommitLineData
3c7e1fe9 1Summary: Helper library for the use with smart cards and the PKCS#11 API
e23dc132 2Summary(pl.UTF-8): Biblioteka pomocnicza do używania z kartami procesorowymi i API PKCS#11
3c7e1fe9 3Name: pkcs11-helper
0fc1fed2 4Version: 1.29.0
7e913d81 5Release: 1
3c7e1fe9
JB
6License: GPL v2 or BSD
7Group: Libraries
874b674f 8#Source0Download: https://github.com/OpenSC/pkcs11-helper/releases
0fc1fed2
JB
9Source0: https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-%{version}/%{name}-%{version}.tar.bz2
10# Source0-md5: 7a65cf41d4939bbac2f3432cccbf55aa
b6eec262 11Patch0: no-libs.patch
49bc9dd9 12Patch1: %{name}-nss.patch
87537fc5 13URL: https://github.com/OpenSC/pkcs11-helper
d9ce4974
JB
14BuildRequires: autoconf >= 2.60
15BuildRequires: automake >= 1:1.10
3c7e1fe9 16BuildRequires: doxygen
46b208e5 17BuildRequires: gnutls-devel >= 1.4
d9ce4974 18BuildRequires: libtool
874b674f 19BuildRequires: mbedtls-devel
46b208e5 20BuildRequires: nss-devel >= 3.11
3c7e1fe9 21BuildRequires: openssl-devel >= 0.9.7a
46b208e5 22BuildRequires: pkgconfig
874b674f
JB
23Requires: gnutls-libs >= 1.4
24Requires: nss >= 3.11
3c7e1fe9
JB
25Requires: openssl >= 0.9.7a
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
2d798c25 28%undefine __cxx
29
3c7e1fe9
JB
30%description
31pkcs11-helper provides a simple API to access PKCS#11 tokens.
32
3884b47b
JR
33%description -l pl.UTF-8
34pkcs11-helper udostępnia proste API do dostępu do tokenów PKCS#11.
3c7e1fe9
JB
35
36%package devel
37Summary: Header files for pkcs11-helper library
e23dc132 38Summary(pl.UTF-8): Pliki nagłówkowe biblioteki pkcs11-helper
3c7e1fe9
JB
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41
42%description devel
43Header files for pkcs11-helper library.
44
3884b47b
JR
45%description devel -l pl.UTF-8
46Pliki nagłówkowe biblioteki pkcs11-helper.
3c7e1fe9
JB
47
48%package static
49Summary: Static pkcs11-helper library
e23dc132 50Summary(pl.UTF-8): Statyczna biblioteka pkcs11-helper
3c7e1fe9
JB
51Group: Development/Libraries
52Requires: %{name}-devel = %{version}-%{release}
53
54%description static
55Static pkcs11-helper library.
56
3884b47b 57%description static -l pl.UTF-8
3c7e1fe9
JB
58Statyczna biblioteka pkcs11-helper.
59
874b674f
JB
60%package apidocs
61Summary: API documentation for pkcs11-helper library
62Summary(pl.UTF-8): Dokumentacja API biblioteki pkcs11-helper
63Group: Documentation
64
65%description apidocs
66API documentation for pkcs11-helper library.
67
68%description apidocs -l pl.UTF-8
69Dokumentacja API biblioteki pkcs11-helper.
70
3c7e1fe9
JB
71%prep
72%setup -q
b6eec262 73%patch0 -p1
49bc9dd9 74%patch1 -p1
3c7e1fe9
JB
75
76%build
d9ce4974
JB
77%{__libtoolize}
78%{__aclocal} -I m4
79%{__autoconf}
80%{__autoheader}
81%{__automake}
3c7e1fe9
JB
82%configure \
83 --enable-doc
84
85%{__make}
86
87%install
88rm -rf $RPM_BUILD_ROOT
89
90%{__make} install \
91 DESTDIR=$RPM_BUILD_ROOT
92
61435b3c
JB
93# obsoleted by pkg-config
94%{__rm} $RPM_BUILD_ROOT%{_libdir}/libpkcs11-helper.la
95# packaged as %doc
6ebca3b9 96%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
7da26269 97
3c7e1fe9
JB
98%clean
99rm -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.*.*.*
46b208e5 108%attr(755,root,root) %ghost %{_libdir}/libpkcs11-helper.so.1
7da26269 109%{_mandir}/man8/pkcs11-helper-1.8*
3c7e1fe9
JB
110
111%files devel
112%defattr(644,root,root,755)
3c7e1fe9 113%attr(755,root,root) %{_libdir}/libpkcs11-helper.so
3c7e1fe9
JB
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
874b674f
JB
121
122%files apidocs
123%defattr(644,root,root,755)
124%doc doc/api/api.out/html/*
This page took 0.15808 seconds and 4 git commands to generate.