+# TODO
+# - package apidocs
Summary: Layer on top of PKCS#11 API to make using PKCS#11 implementations easier
Summary(pl.UTF-8): Warstwa powyżej API PKCS#11 ułatwiająca używanie implementacji PKCS#11
Name: libp11
-Version: 0.2.3
-Release: 1
+Version: 0.2.8
+Release: 2
License: LGPL v2.1+
Group: Libraries
Source0: http://www.opensc-project.org/files/libp11/%{name}-%{version}.tar.gz
-# Source0-md5: 28ee2fc73fd82fbaa4a0670c972ca191
+# Source0-md5: f46dcbbea13a0732ab095d36283d5060
URL: http://www.opensc-project.org/libp11/
+BuildRequires: doxygen
BuildRequires: libltdl-devel
BuildRequires: openssl-devel >= 0.9.7
BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%undefine __cxx
+
%description
Libp11 is a library implementing a small layer on top of PKCS#11 API
to make using PKCS#11 implementations easier.
%setup -q
%build
-%configure
+%configure \
+ --enable-api-doc
%{__make}
%install
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+# obsoleted by pkgconfig
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libp11.la
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc NEWS doc/{ChangeLog,README,*.html,*.css}
+%doc NEWS doc/{README,nonpersistent/{ChangeLog,wiki.out/*}}
%attr(755,root,root) %{_libdir}/libp11.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libp11.so.2
%files devel
%defattr(644,root,root,755)
-%doc doc/api/*
+%doc doc/api.out/html/*
%attr(755,root,root) %{_libdir}/libp11.so
-%{_libdir}/libp11.la
%{_includedir}/libp11.h
%{_pkgconfigdir}/libp11.pc
%{_examplesdir}/%{name}-%{version}