openssl-pkcs11/openssl-pkcs11.spec

111 lines
2.9 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:10:59 -04:00
Name: openssl-pkcs11
Version: 0.4.12
Release: 3
2019-09-30 11:10:59 -04:00
Summary: A PKCS#11 engine for use with OpenSSL
License: LGPLv2+ and BSD
URL: https://github.com/OpenSC/libp11
Source0: https://github.com/OpenSC/libp11/releases/download/libp11-%{version}/libp11-%{version}.tar.gz
PATCH6000: backport-fix-memory-handling-in-slot-refresh.patch
2019-09-30 11:10:59 -04:00
BuildRequires: openssl-devel autoconf automake libtool
BuildRequires: softhsm opensc procps-ng p11-kit openssl chrpath
2019-09-30 11:10:59 -04:00
Provides: libp11 = %{version}-%{release}
Obsoletes: libp11 < 0.4.7-4
Provides: engine_pkcs11 = %{version}-%{release}
Obsoletes: engine_pkcs11 < 0.4.7-4
Requires: p11-kit-trust openssl >= 3.0.0
2019-09-30 11:10:59 -04:00
%description
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.
%package devel
Summary: Development headers and libraries for %{name}
Requires:%{name} = %{version}-%{release}
Provides:libp11-devel = %{version}-%{release}
%description devel
Development headers and libraries for %{name}
%prep
%autosetup -n libp11-%{version} -p1
%build
autoreconf -fvi
export CFLAGS="%{optflags}"
%configure --with-enginesdir=%{_libdir}/engines-3
2019-09-30 11:10:59 -04:00
make %{?_smp_mflags} V=1
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_libdir}/engines-3
2019-09-30 11:10:59 -04:00
%make_install
%delete_la
2021-03-30 15:22:29 +08:00
#strip binary files
pushd %{_builddir}/libp11-%{version}
find src/.libs -type f -name '*.so*' -exec strip '{}' ';'
strip examples/.libs/*
popd
2021-03-31 18:05:23 +08:00
%check
make check ||:
# strip %{_builddir}/libp11-%{version}/examples/.libs/lt-*
#remove rpath files
# chrpath -d %{_builddir}/libp11-%{version}/examples/.libs/lt-*
2021-03-30 15:22:29 +08:00
2019-09-30 11:10:59 -04:00
%pre
%preun
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc NEWS
%license COPYING
%{_libdir}/*.so.*
%{_libdir}/engines-3/*.so
2019-09-30 11:10:59 -04:00
%files devel
%defattr(-,root,root)
%doc examples/
%{_libdir}/libp11.so
%{_libdir}/libp11.a
%{_libdir}/pkgconfig/libp11.pc
%{_includedir}/*.h
%exclude %{_defaultdocdir}/libp11/*
%changelog
* Fri Nov 1 Wang Jinchao <wangjinchao@xfusion.com> - 0.4.12-3
- Fix memory handling in slot refresh
* Mon Feb 13 2023 zhouchenchen123 <zhouchenchen@huawei.com> - 0.4.12-2
- fix obs build issue
* Thu Feb 2 2023 zhouchenchen123 <zhouchenchen@huawei.com> - 0.4.12-1
- update version to 1.20.1
* Mon Jun 13 2022 fuanan <fuanan3@h-partners.com> - 0.4.11-4
- remove rpath files of lt-auth and lt-listkeys
- add openssl to BuildRequires for make check
2021-03-31 18:05:23 +08:00
* Tue Mar 30 2021 lirui <lirui130@huawei.com> - 0.4.11-3
- strip binary files
2021-03-30 15:22:29 +08:00
* Tue Mar 30 2021 panxiaohe <panxiaohe@huawei.com> - 0.4.11-2
- strip binary files
2021-01-23 14:58:45 +08:00
* Sat Jan 23 2021 zoulin <zoulin13@huawei.com> - 0.4.11-1
- update version to 0.4.11
2019-09-30 11:10:59 -04:00
* Mon Sep 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.4.10-1
- Package init