Update to v0.9.0 release

Resolves: https://issues.redhat.com/browse/RHEL-42590

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-07-09 19:08:40 +04:00
parent 56a3c08a88
commit f048978c31
3 changed files with 15 additions and 12 deletions

2
.gitignore vendored
View File

@ -29,3 +29,5 @@
/swtpm-2ae7b01.tar.gz /swtpm-2ae7b01.tar.gz
/0001-swtpm_setup-Initialized-argv-to-NULL-Fedore-Rawhide.patch /0001-swtpm_setup-Initialized-argv-to-NULL-Fedore-Rawhide.patch
/swtpm-d2849a9.tar.gz /swtpm-d2849a9.tar.gz
/swtpm-0.8.2.tar.gz
/swtpm-0.9.0.tar.gz

View File

@ -1 +1 @@
SHA512 (swtpm-d2849a9.tar.gz) = a21f8e0db2cf215b1473a5ddb2afa0fde8313509ae9c5272deb63c32642bb7ec4a9baf9a08e46222c77a645b435f52eeec7e449e6b522643ffc3d2c9140daeb1 SHA512 (swtpm-0.9.0.tar.gz) = 4f1723679b85218e80ea6aacdffa687e541ee309ddab9bcb8d8e5aa0b461ee431c880f2e300f1dcae112646f3636593005a342ee0cb762ec115aa599369e111c

View File

@ -1,9 +1,5 @@
%bcond_without gnutls %bcond_without gnutls
%global gitdate 20230815
%global gitcommit d2849a9f5ced70438d67036693438344b47b4161
%global gitshortcommit %(c=%{gitcommit}; echo ${c:0:7})
# Macros needed by SELinux # Macros needed by SELinux
%global selinuxtype targeted %global selinuxtype targeted
%global moduletype contrib %global moduletype contrib
@ -11,11 +7,11 @@
Summary: TPM Emulator Summary: TPM Emulator
Name: swtpm Name: swtpm
Version: 0.8.1 Version: 0.9.0
Release: 6%{?dist} Release: 1%{?dist}
License: BSD-3-Clause License: BSD-3-Clause
Url: http://github.com/stefanberger/swtpm Url: https://github.com/stefanberger/swtpm
Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz Source0: https://github.com/stefanberger/swtpm/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: make BuildRequires: make
BuildRequires: git-core BuildRequires: git-core
@ -97,7 +93,7 @@ BuildArch: noarch
SELinux security policy for swtpm. SELinux security policy for swtpm.
%prep %prep
%autosetup -S git -n %{name}-%{gitcommit} -p1 %autosetup -S git -n %{name}-%{version} -p1
%build %build
@ -120,14 +116,15 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la,so}
%post selinux %post selinux
for pp in /usr/share/selinux/packages/swtpm.pp \ for pp in /usr/share/selinux/packages/swtpm.pp \
/usr/share/selinux/packages/swtpm_svirt.pp; do /usr/share/selinux/packages/swtpm_svirt.pp \
/usr/share/selinux/packages/swtpm_libvirt.pp; do
%selinux_modules_install -s %{selinuxtype} ${pp} %selinux_modules_install -s %{selinuxtype} ${pp}
done done
restorecon %{_bindir}/swtpm restorecon %{_bindir}/swtpm
%postun selinux %postun selinux
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
for p in swtpm swtpm_svirt; do for p in swtpm_libvirt swtpm swtpm_svirt; do
%selinux_modules_uninstall -s %{selinuxtype} $p %selinux_modules_uninstall -s %{selinuxtype} $p
done done
fi fi
@ -146,6 +143,7 @@ fi
%files selinux %files selinux
%{_datadir}/selinux/packages/swtpm.pp %{_datadir}/selinux/packages/swtpm.pp
%{_datadir}/selinux/packages/swtpm_libvirt.pp
%{_datadir}/selinux/packages/swtpm_svirt.pp %{_datadir}/selinux/packages/swtpm_svirt.pp
%files libs %files libs
@ -193,6 +191,9 @@ fi
%{_datadir}/swtpm/swtpm-create-tpmca %{_datadir}/swtpm/swtpm-create-tpmca
%changelog %changelog
* Tue Jul 09 2024 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.0-1
- Update to v0.9.0 release
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.8.1-6 * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.8.1-6
- Bump release for June 2024 mass rebuild - Bump release for June 2024 mass rebuild