2007-01-16 00:22:54 +01:00
|
|
|
#
|
2011-02-15 17:01:42 +01:00
|
|
|
# spec file for package libp11
|
2007-01-16 00:22:54 +01:00
|
|
|
#
|
2023-02-06 17:10:09 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-16 00:22:54 +01:00
|
|
|
#
|
2008-09-01 15:38:19 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-01-30 23:18:06 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:22:54 +01:00
|
|
|
#
|
|
|
|
|
2008-04-10 14:31:46 +02:00
|
|
|
|
2018-01-31 12:40:57 +01:00
|
|
|
# the libname depends on what version openssl it is linked against
|
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
# libp11.so.2 for openssl 1.0 - suse_version < 1500
|
2017-07-18 15:29:27 +02:00
|
|
|
%define libname libp11-2
|
2018-01-31 12:40:57 +01:00
|
|
|
%else
|
|
|
|
# libp11.so.3 for openssl 1.1 - suse_version >= 1500
|
|
|
|
%define libname libp11-3
|
|
|
|
%endif
|
2007-01-16 00:22:54 +01:00
|
|
|
Name: libp11
|
2022-10-26 02:58:47 +02:00
|
|
|
Version: 0.4.12
|
2012-07-10 16:57:37 +02:00
|
|
|
Release: 0
|
2007-01-16 00:22:54 +01:00
|
|
|
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
2019-01-30 23:18:06 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2012-07-10 16:57:37 +02:00
|
|
|
Group: Productivity/Security
|
2019-03-15 23:01:33 +01:00
|
|
|
URL: https://github.com/OpenSC/libp11
|
2017-06-30 14:22:17 +02:00
|
|
|
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
|
2023-06-08 13:36:20 +02:00
|
|
|
Patch0: libp11-openssl-3.1.patch
|
2012-07-10 16:57:37 +02:00
|
|
|
BuildRequires: fdupes
|
2023-06-08 13:36:20 +02:00
|
|
|
BuildRequires: libtool
|
2019-03-15 23:01:33 +01:00
|
|
|
BuildRequires: p11-kit-devel
|
2017-06-30 14:22:17 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2019-03-15 23:01:33 +01:00
|
|
|
# The engine_pkcs11 library has been merged into version 0.4.0 and later.
|
|
|
|
# (It existed only in security:chipcard OBS repository.
|
|
|
|
Obsoletes: engine_pkcs11 <= 0.2.2
|
2007-01-16 00:22:54 +01:00
|
|
|
|
|
|
|
%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)".
|
|
|
|
|
2017-07-18 15:29:27 +02:00
|
|
|
%package -n %{libname}
|
2007-01-16 00:22:54 +01:00
|
|
|
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
2012-07-10 16:57:37 +02:00
|
|
|
Group: Productivity/Security
|
2007-07-27 01:57:10 +02:00
|
|
|
|
2017-07-18 15:29:27 +02:00
|
|
|
%description -n %{libname}
|
2007-07-27 01:57:10 +02:00
|
|
|
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)".
|
|
|
|
|
2017-06-30 14:22:17 +02:00
|
|
|
%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)".
|
|
|
|
|
2007-07-27 01:57:10 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
2012-07-10 16:57:37 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-18 15:29:27 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2012-07-10 16:57:37 +02:00
|
|
|
Requires: openssl-devel
|
2007-01-16 00:22:54 +01:00
|
|
|
|
|
|
|
%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
|
2023-06-08 13:36:20 +02:00
|
|
|
%autosetup -p1
|
2018-01-31 12:40:57 +01:00
|
|
|
# Since the library name changes based on used openssl, we have to create baselibs.conf dynamically
|
2019-01-30 23:18:06 +01:00
|
|
|
echo %{libname} > %{_sourcedir}/baselibs.conf
|
2007-01-16 00:22:54 +01:00
|
|
|
|
|
|
|
%build
|
2023-06-08 13:36:20 +02:00
|
|
|
autoreconf -fiv
|
2017-06-30 14:22:17 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules \
|
2008-09-01 15:38:19 +02:00
|
|
|
--enable-doc\
|
2017-07-18 15:29:27 +02:00
|
|
|
--docdir=%{_docdir}/%{libname}
|
2022-10-26 02:58:47 +02:00
|
|
|
%make_build
|
2007-01-16 00:22:54 +01:00
|
|
|
|
|
|
|
%install
|
2017-06-30 14:22:17 +02:00
|
|
|
%make_install
|
2017-07-18 15:29:27 +02:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name} %{buildroot}%{_docdir}/%{libname}
|
2017-06-30 14:22:17 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-07-10 16:57:37 +02:00
|
|
|
%fdupes %{buildroot}%{_docdir}
|
2007-01-16 00:22:54 +01:00
|
|
|
|
2017-07-18 15:29:27 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2007-01-16 00:22:54 +01:00
|
|
|
|
2017-07-18 15:29:27 +02:00
|
|
|
%files -n %{libname}
|
|
|
|
%doc %{_docdir}/%{libname}
|
2007-07-27 01:57:10 +02:00
|
|
|
%{_libdir}/*.so.*
|
2007-01-16 00:22:54 +01:00
|
|
|
|
2017-06-30 14:22:17 +02:00
|
|
|
%files -n openssl-engine-%{name}
|
|
|
|
%if 0%{?suse_version} > 1325
|
2023-02-06 17:10:09 +01:00
|
|
|
%{_libdir}/engines-*
|
2017-06-30 14:22:17 +02:00
|
|
|
%else
|
|
|
|
%{_libdir}/engines
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:22:54 +01:00
|
|
|
%files devel
|
2007-07-27 01:57:10 +02:00
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2007-01-16 00:22:54 +01:00
|
|
|
|
2007-03-30 01:51:03 +02:00
|
|
|
%changelog
|