commit 7ce6d945a7a2c64a14f0b1a6a0f66da71b1bb187 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:10:59 2019 -0400 Package init diff --git a/libp11-0.4.10.tar.gz b/libp11-0.4.10.tar.gz new file mode 100644 index 0000000..90e4847 Binary files /dev/null and b/libp11-0.4.10.tar.gz differ diff --git a/openssl-pkcs11.spec b/openssl-pkcs11.spec new file mode 100644 index 0000000..c1f3d3a --- /dev/null +++ b/openssl-pkcs11.spec @@ -0,0 +1,77 @@ +Name: openssl-pkcs11 +Version: 0.4.10 +Release: 1 +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 + +BuildRequires: openssl-devel autoconf automake libtool +BuildRequires: softhsm opensc procps-ng p11-kit + +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 >= 1.0.2 + +%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-1.1 +make %{?_smp_mflags} V=1 + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{_libdir}/engines-1.1 +%make_install +%delete_la + +%check +make check + +%pre + +%preun + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc NEWS +%license COPYING +%{_libdir}/*.so.* +%{_libdir}/engines-1.1/*.so + +%files devel +%defattr(-,root,root) +%doc examples/ +%{_libdir}/libp11.so +%{_libdir}/libp11.a +%{_libdir}/pkgconfig/libp11.pc +%{_includedir}/*.h +%exclude %{_defaultdocdir}/libp11/* + +%changelog +* Mon Sep 9 2019 openEuler Buildteam - 0.4.10-1 +- Package init