diff --git a/swtpm-rpmlintrc b/swtpm-rpmlintrc new file mode 100644 index 0000000..1cd2fdb --- /dev/null +++ b/swtpm-rpmlintrc @@ -0,0 +1,2 @@ +# This is the correct location +addFilter(r'arch-dependent-file-in-usr-share .* /usr/share/swtpm/swtpm-localca') diff --git a/swtpm.changes b/swtpm.changes index 5491089..5d2274a 100644 --- a/swtpm.changes +++ b/swtpm.changes @@ -8,7 +8,8 @@ Sat Aug 7 15:02:40 UTC 2021 - Callum Farmer - Fix --print-capabilities for 'swtpm chardev' - Various cleanups and fixes (coverity) - Enable selinux support -- swtpm-rename_deprecated_libtasn1_types.patch: upstream +- Removed swtpm-rename_deprecated_libtasn1_types.patch: upstream +- Fix rpmlint errors ------------------------------------------------------------------- Thu May 20 06:56:39 UTC 2021 - Pedro Monreal diff --git a/swtpm.spec b/swtpm.spec index 7e92593..07b2ea7 100644 --- a/swtpm.spec +++ b/swtpm.spec @@ -31,6 +31,7 @@ License: BSD-3-Clause Group: System/Base URL: https://github.com/stefanberger/swtpm Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Source100: swtpm-rpmlintrc BuildRequires: autoconf BuildRequires: automake BuildRequires: expect @@ -104,6 +105,8 @@ find %{buildroot} -type f -name "*.la" -delete -print mkdir %{buildroot}%{_datadir}/selinux/packages/targeted mv %{buildroot}%{_datadir}/selinux/packages/*.pp %{buildroot}%{_datadir}/selinux/packages/targeted mkdir -p %{buildroot}%{_localstatedir}/lib/swtpm-localca +sed -e 's|#!/usr/bin/env |#!/usr/bin/|g' -i %{buildroot}%{_datadir}/swtpm/swtpm-create-tpmca +sed -e 's|#!/usr/bin/env |#!/usr/bin/|g' -i %{buildroot}%{_datadir}/swtpm/swtpm-create-user-config-files %post -p /sbin/ldconfig %postun -p /sbin/ldconfig