* Fri May 31 2019 Paul Wouters <pwouters@redhat.com> - 2.5.0-4
- Pull in git master fixes to address assertion failure in make check - Re-enable testing
This commit is contained in:
parent
74f70eaf86
commit
dc30315a3e
1936
softhsm-2.5.0-updates.patch
Normal file
1936
softhsm-2.5.0-updates.patch
Normal file
File diff suppressed because it is too large
Load Diff
30
softhsm.spec
30
softhsm.spec
@ -1,9 +1,10 @@
|
|||||||
#global prever rc1
|
#global prever rc1
|
||||||
|
%global prerelease yes
|
||||||
|
|
||||||
Summary: Software version of a PKCS#11 Hardware Security Module
|
Summary: Software version of a PKCS#11 Hardware Security Module
|
||||||
Name: softhsm
|
Name: softhsm
|
||||||
Version: 2.5.0
|
Version: 2.5.0
|
||||||
Release: %{?prever:0.}3%{?prever:.%{prever}}%{?dist}.1
|
Release: %{?prever:0.}4%{?prever:.%{prever}}%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: http://www.opendnssec.org/
|
Url: http://www.opendnssec.org/
|
||||||
Source: http://dist.opendnssec.org/source/%{?prever:testing/}%{name}-%{version}.tar.gz
|
Source: http://dist.opendnssec.org/source/%{?prever:testing/}%{name}-%{version}.tar.gz
|
||||||
@ -16,6 +17,8 @@ Requires(pre): shadow-utils
|
|||||||
Requires: p11-kit
|
Requires: p11-kit
|
||||||
Requires: openssl-libs >= 1.0.1k-6
|
Requires: openssl-libs >= 1.0.1k-6
|
||||||
|
|
||||||
|
Patch1: softhsm-2.5.0-updates.patch
|
||||||
|
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
|
|
||||||
%global softhsm_module "SoftHSM PKCS #11 Module"
|
%global softhsm_module "SoftHSM PKCS #11 Module"
|
||||||
@ -29,7 +32,7 @@ with other cryptographic products because of the PKCS#11 interface.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development package of softhsm that includes the header files
|
Summary: Development package of softhsm that includes the header files
|
||||||
Requires: %{name} = %{version}-%{release}, openssl-devel, sqlite-devel
|
Requires: %{name} = %{version}-%{release}, openssl-devel, sqlite-devel
|
||||||
%if 0%{?prever:1}
|
%if 0%{?prever:1} || 0%{?prerelease:1}
|
||||||
BuildRequires: autoconf, libtool, automake
|
BuildRequires: autoconf, libtool, automake
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -38,18 +41,18 @@ The devel package contains the libsofthsm include files
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{?prever}
|
%setup -q -n %{name}-%{version}%{?prever}
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%if 0%{?prever:1}
|
%if 0%{?prever:1} || 0%{?prerelease:1}
|
||||||
|
# pre-release or post-release snapshots fixup
|
||||||
|
sed -i 's:^full_libdir=":#full_libdir=":g' configure.ac
|
||||||
|
sed -i "s:libdir)/@PACKAGE@:libdir):" Makefile.in
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
%else
|
||||||
|
# remove softhsm/ subdir auto-added to --libdir
|
||||||
|
sed -i 's:full_libdir/softhsm:full_libdir:g' configure
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# remove softhsm/ subdir auto-added to --libdir
|
|
||||||
sed -i "s:full_libdir/softhsm:full_libdir:g" configure
|
|
||||||
%if 0%{?prever:1}
|
|
||||||
sed -i 's:^full_libdir=":#full_libdir=":g' configure.ac
|
|
||||||
%endif
|
|
||||||
sed -i "s:libdir)/@PACKAGE@:libdir):" Makefile.in
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --libdir=%{_libdir}/pkcs11 --with-openssl=%{_prefix} --enable-ecc --enable-eddsa --disable-gost \
|
%configure --libdir=%{_libdir}/pkcs11 --with-openssl=%{_prefix} --enable-ecc --enable-eddsa --disable-gost \
|
||||||
--with-migrate --enable-visibility --with-p11-kit=%{_datadir}/p11-kit/modules/
|
--with-migrate --enable-visibility --with-p11-kit=%{_datadir}/p11-kit/modules/
|
||||||
@ -57,8 +60,7 @@ sed -i "s:libdir)/@PACKAGE@:libdir):" Makefile.in
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# skip while cppunit is broken
|
make check
|
||||||
#make check
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -109,6 +111,10 @@ if [ -f /var/softhsm/slot0.db ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 31 2019 Paul Wouters <pwouters@redhat.com> - 2.5.0-4
|
||||||
|
- Pull in git master fixes to address assertion failure in make check
|
||||||
|
- Re-enable testing
|
||||||
|
|
||||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3.1
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3.1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user