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