forked from pool/libp11
Stanislav Brabec
863bd5049f
- Remove --with-pic which is only for static libs. OBS-URL: https://build.opensuse.org/request/show/511417 OBS-URL: https://build.opensuse.org/package/show/security:chipcard/libp11?expand=0&rev=22
132 lines
4.2 KiB
RPMSpec
132 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package libp11
|
|
#
|
|
# 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
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define libname libp11-2
|
|
Name: libp11
|
|
Version: 0.4.7
|
|
Release: 0
|
|
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
|
License: LGPL-2.1+
|
|
Group: Productivity/Security
|
|
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: pkgconfig
|
|
BuildRequires: pkgconfig(openssl)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%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 %{libname}
|
|
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
|
Group: Productivity/Security
|
|
|
|
%description -n %{libname}
|
|
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 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++
|
|
Requires: %{libname} = %{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
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static \
|
|
--disable-silent-rules \
|
|
--enable-doc\
|
|
--docdir=%{_docdir}/%{libname}
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
mkdir -p %{buildroot}%{_docdir}/%{name} %{buildroot}%{_docdir}/%{libname}
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
%fdupes %{buildroot}%{_docdir}
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%files -n %{libname}
|
|
%doc %{_docdir}/%{libname}
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n openssl-engine-%{name}
|
|
%if 0%{?suse_version} > 1325
|
|
%{_libdir}/engines-?.?
|
|
%else
|
|
%{_libdir}/engines
|
|
%endif
|
|
|
|
%files devel
|
|
%{_includedir}/*.h
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|