2018-08-06 10:46:25 +00:00
|
|
|
Version: 0.4.8
|
|
|
|
Release: 1%{?dist}
|
2018-03-01 16:04:48 +00:00
|
|
|
|
|
|
|
# Define the directory where the OpenSSL engines are installed
|
|
|
|
%global enginesdir %{_libdir}/engines-1.1
|
|
|
|
|
|
|
|
Name: openssl-pkcs11
|
|
|
|
Summary: A PKCS#11 engine for use with OpenSSL
|
|
|
|
# The source code is LGPLv2+ except eng_back.c and eng_parse.c which are BSD
|
|
|
|
License: LGPLv2+ and BSD
|
|
|
|
URL: https://github.com/OpenSC/libp11
|
|
|
|
Source0: https://github.com/OpenSC/libp11/releases/download/libp11-%{version}/libp11-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(p11-kit-1)
|
|
|
|
# Needed for testsuite
|
|
|
|
BuildRequires: softhsm opensc procps-ng
|
|
|
|
|
2018-06-06 12:21:50 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
BuildRequires: doxygen
|
|
|
|
%endif
|
|
|
|
|
2018-03-01 16:04:48 +00:00
|
|
|
Requires: p11-kit-trust
|
|
|
|
Requires: openssl > 0.9.6
|
|
|
|
|
|
|
|
# Package renamed from libp11 to openssl-pkcs11 in release 0.4.7-4
|
|
|
|
Provides: libp11%{?_isa} = %{version}-%{release}
|
2018-03-06 09:30:35 +00:00
|
|
|
Obsoletes: libp11 < 0.4.7-4
|
2018-03-01 16:04:48 +00:00
|
|
|
# The engine_pkcs11 subpackage is also provided
|
|
|
|
Provides: engine_pkcs11%{?_isa} = %{version}-%{release}
|
2018-03-06 09:30:35 +00:00
|
|
|
Obsoletes: engine_pkcs11 < 0.4.7-4
|
2018-03-01 16:04:48 +00:00
|
|
|
|
2018-06-06 12:21:50 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
# The libp11-devel subpackage was removed in libp11-0.4.7-1, but not obsoleted
|
|
|
|
# This Obsoletes prevents the conflict in updates by removing old libp11-devel
|
|
|
|
Obsoletes: libp11-devel < 0.4.7-4
|
|
|
|
%endif
|
|
|
|
|
2018-03-01 16:04:48 +00:00
|
|
|
%description -n openssl-pkcs11
|
|
|
|
openssl-pkcs11 is an implementation of an engine for OpenSSL. It can be loaded
|
|
|
|
using code, config file or command line and will pass any function call by
|
|
|
|
OpenSSL to a PKCS#11 module. openssl-pkcs11 is meant to be used with smart
|
|
|
|
cards and software for using smart cards in PKCS#11 format, such as OpenSC.
|
|
|
|
|
2018-06-06 12:21:50 +00:00
|
|
|
# The libp11-devel subpackage was reintroduced in libp11-0.4.7-7 for Fedora
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%package -n libp11-devel
|
|
|
|
Summary: Files for developing with libp11
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libp11-devel
|
|
|
|
The libp11-devel package contains libraries and header files for
|
|
|
|
developing applications that use libp11.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2018-03-01 16:04:48 +00:00
|
|
|
%prep
|
|
|
|
%autosetup -p 1 -n libp11-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fvi
|
|
|
|
export CFLAGS="%{optflags}"
|
2018-06-06 12:21:50 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%configure --disable-static --enable-api-doc --with-enginesdir=%{enginesdir}
|
|
|
|
%else
|
2018-03-01 16:04:48 +00:00
|
|
|
%configure --disable-static --with-enginesdir=%{enginesdir}
|
2018-06-06 12:21:50 +00:00
|
|
|
%endif
|
2018-03-01 16:04:48 +00:00
|
|
|
make V=1 %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{enginesdir}
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
# Remove libtool .la files
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
rm -f %{buildroot}%{enginesdir}/*.la
|
|
|
|
|
2018-06-06 12:21:50 +00:00
|
|
|
%if ! 0%{?fedora}
|
2018-03-01 16:04:48 +00:00
|
|
|
## Remove development files
|
|
|
|
rm -f %{buildroot}%{_libdir}/libp11.so
|
|
|
|
rm -f %{buildroot}%{_libdir}/pkgconfig/libp11.pc
|
|
|
|
rm -f %{buildroot}%{_includedir}/*.h
|
2018-06-06 12:21:50 +00:00
|
|
|
%endif
|
2018-03-01 16:04:48 +00:00
|
|
|
|
|
|
|
# Remove documentation automatically installed by make install
|
|
|
|
rm -rf %{buildroot}%{_docdir}/libp11/
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc NEWS
|
|
|
|
%{_libdir}/libp11.so.*
|
|
|
|
%{enginesdir}/*.so
|
|
|
|
|
2018-06-06 12:21:50 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%files -n libp11-devel
|
|
|
|
%doc examples/ doc/api.out/html/
|
|
|
|
%{_libdir}/libp11.so
|
|
|
|
%{_libdir}/pkgconfig/libp11.pc
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%endif
|
|
|
|
|
2018-03-01 16:04:48 +00:00
|
|
|
%changelog
|
2018-08-06 10:46:25 +00:00
|
|
|
* Mon Aug 06 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.4.8-1
|
|
|
|
- Update to 0.4.8-1
|
|
|
|
- RSA key generation on the token
|
|
|
|
- RSA-OAEP and RSA-PKCS encryption support
|
|
|
|
- RSA-PSS signature support
|
|
|
|
- Support for OpenSSL 1.1.1 beta
|
|
|
|
- Removed support for OpenSSL 0.9.8
|
|
|
|
- Various bug fixes and enhancements
|
|
|
|
|
2018-07-13 15:12:22 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-06 12:21:50 +00:00
|
|
|
* Wed Jun 06 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.4.7-7
|
|
|
|
- Reintroduce libp11-devel subpackage to Fedora (#1583719)
|
|
|
|
|
2018-03-13 14:44:41 +00:00
|
|
|
* Tue Mar 13 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.4.7-6
|
|
|
|
- Obsolete libp11-devel to fix update
|
|
|
|
|
2018-03-06 10:12:27 +00:00
|
|
|
* Tue Mar 06 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.4.7-5
|
|
|
|
- Fixed broken Obsoletes
|
|
|
|
|
2018-03-01 16:04:48 +00:00
|
|
|
* Thu Mar 01 2018 Anderson Sasaki <ansasaki@redhat.com> - 0.4.7-4
|
|
|
|
- Package renamed from libp11 to openssl-pkcs11
|