forked from pool/libp11
Stanislav Brabec
c7f59de44d
* Bumped soname for PKCS11_token struct size changes. * Display the number of available slots. * Expose more token flags in PKCS11_token structure. * Check that private data is not NULL in pkcs11_release_slot. OBS-URL: https://build.opensuse.org/package/show/security:chipcard/libp11?expand=0&rev=14
123 lines
3.8 KiB
RPMSpec
123 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package libp11
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libp11
|
|
Version: 0.2.8
|
|
Release: 0
|
|
Url: http://www.opensc-project.org/libp11/
|
|
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
|
License: LGPL-2.1+
|
|
Group: Productivity/Security
|
|
Source: %{name}-%{version}.tar.gz
|
|
Source1: %{name}-rpmlintrc
|
|
Source2: baselibs.conf
|
|
BuildRequires: doxygen
|
|
BuildRequires: fdupes
|
|
BuildRequires: libtool
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: zlib-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Libp11 is a library implementing a small layer on top of PKCS#11 API to
|
|
make using PKCS#11 implementations easier.
|
|
|
|
The official name for PKCS#11 is "RSA Security Inc. PKCS #11
|
|
Cryptographic Token Interface (Cryptoki)".
|
|
|
|
Libp11 source code includes the official header files (version 2.20)
|
|
and thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic
|
|
Token Interface (Cryptoki)".
|
|
|
|
%package -n libp11-2
|
|
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
|
Group: Productivity/Security
|
|
|
|
%description -n libp11-2
|
|
Libp11 is a library implementing a small layer on top of PKCS#11 API to
|
|
make using PKCS#11 implementations easier.
|
|
|
|
The official name for PKCS#11 is "RSA Security Inc. PKCS #11
|
|
Cryptographic Token Interface (Cryptoki)".
|
|
|
|
Libp11 source code includes the official header files (version 2.20)
|
|
and thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic
|
|
Token Interface (Cryptoki)".
|
|
|
|
%package devel
|
|
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libp11-2 = %{version}
|
|
Requires: openssl-devel
|
|
|
|
%description devel
|
|
Libp11 is a library implementing a small layer on top of PKCS#11 API to
|
|
make using PKCS#11 implementations easier.
|
|
|
|
The official name for PKCS#11 is "RSA Security Inc. PKCS #11
|
|
Cryptographic Token Interface (Cryptoki)".
|
|
|
|
Libp11 source code include the official header files (version 2.20) and
|
|
thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic
|
|
Token Interface (Cryptoki)".
|
|
|
|
%prep
|
|
%setup -q
|
|
tr -d \\r <doc/nonpersistent/wiki.out/trac.css >doc/nonpersistent/wiki.out/trac.css.unix
|
|
touch -r doc/nonpersistent/wiki.out/trac.css doc/nonpersistent/wiki.out/trac.css.unix
|
|
mv doc/nonpersistent/wiki.out/trac.css.unix doc/nonpersistent/wiki.out/trac.css
|
|
|
|
%build
|
|
%if %suse_version > 1100
|
|
autoreconf -f -i
|
|
%endif
|
|
%configure --disable-static --with-pic \
|
|
--enable-doc\
|
|
--docdir=%{_docdir}/libp11-2\
|
|
--enable-api-doc\
|
|
--with-apidocdir=%{_docdir}/%{name}-devel
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} $RPM_BUILD_ROOT%{_docdir}/libp11-2
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
%fdupes %{buildroot}%{_docdir}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -n libp11-2 -p /sbin/ldconfig
|
|
|
|
%postun -n libp11-2 -p /sbin/ldconfig
|
|
|
|
%files -n libp11-2
|
|
%defattr (-, root, root)
|
|
%doc %{_docdir}/libp11-2
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr (-, root, root)
|
|
%doc %{_docdir}/%{name}-devel
|
|
%{_includedir}/*.h
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|