Accepting request 506194 from home:pluskalm:branches:security:chipcard

- Update to verion 0.4.6
  * For full list of changes since version 0.3.0 see NEWS
- Create openssl-engine-libp11 subpackage
- Add gpg signature

OBS-URL: https://build.opensuse.org/request/show/506194
OBS-URL: https://build.opensuse.org/package/show/security:chipcard/libp11?expand=0&rev=20
This commit is contained in:
2017-06-30 12:22:17 +00:00
committed by Git OBS Bridge
parent 26a40d2cc8
commit 290585142a
6 changed files with 184 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package libp11
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,22 +17,21 @@
Name: libp11
Version: 0.3.0
Version: 0.4.6
Release: 0
Url: https://github.com/OpenSC/libp11
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
License: LGPL-2.1+
Group: Productivity/Security
Source: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
Source2: baselibs.conf
BuildRequires: doxygen
Url: https://github.com/OpenSC/libp11
Source0: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: %{name}-rpmlintrc
Source4: baselibs.conf
BuildRequires: fdupes
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: pkg-config
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
%description
Libp11 is a library implementing a small layer on top of PKCS#11 API to
@@ -60,6 +59,21 @@ 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 openssl-engine-%{name}
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
Group: Productivity/Security
%description -n openssl-engine-%{name}
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++
@@ -81,21 +95,21 @@ Token Interface (Cryptoki)".
%setup -q
%build
%configure --disable-static --with-pic \
%configure \
--disable-static \
--disable-silent-rules \
--with-pic \
--enable-doc\
--docdir=%{_docdir}/libp11-2\
--enable-api-doc\
--with-apidocdir=%{_docdir}/%{name}-devel
--docdir=%{_docdir}/libp11-2
make %{?_smp_mflags}
%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} $RPM_BUILD_ROOT%{_docdir}/libp11-2
rm -f %{buildroot}%{_libdir}/*.la
%make_install
mkdir -p %{buildroot}%{_docdir}/%{name} %{buildroot}%{_docdir}/libp11-2
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}%{_docdir}
%post -n libp11-2 -p /sbin/ldconfig
%postun -n libp11-2 -p /sbin/ldconfig
%files -n libp11-2
@@ -103,9 +117,16 @@ rm -f %{buildroot}%{_libdir}/*.la
%doc %{_docdir}/libp11-2
%{_libdir}/*.so.*
%files -n openssl-engine-%{name}
%defattr (-, root, root)
%if 0%{?suse_version} > 1325
%{_libdir}/openssl-?_?_?/engines
%else
%{_libdir}/engines
%endif
%files devel
%defattr (-, root, root)
%doc %{_docdir}/%{name}-devel
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc