Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package swtpm for openSUSE:Factory checked 
in at 2023-07-06 18:27:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/swtpm (Old)
 and      /work/SRC/openSUSE:Factory/.swtpm.new.23466 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "swtpm"

Thu Jul  6 18:27:54 2023 rev:16 rq:1096892 version:0.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/swtpm/swtpm.changes      2023-05-03 
12:56:33.939581622 +0200
+++ /work/SRC/openSUSE:Factory/.swtpm.new.23466/swtpm.changes   2023-07-06 
18:27:59.910897339 +0200
@@ -1,0 +2,5 @@
+Fri Jun 16 11:32:11 UTC 2023 - Manfred Hollstein <manfre...@gmx.net>
+
+- Make selinux optional to allow building this package for Leap, too.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ swtpm.spec ++++++
--- /var/tmp/diff_new_pack.mUzy1F/_old  2023-07-06 18:28:00.870903233 +0200
+++ /var/tmp/diff_new_pack.mUzy1F/_new  2023-07-06 18:28:00.882903306 +0200
@@ -16,6 +16,12 @@
 #
 
 
+%if 0%{?suse_version} > 01500
+%bcond_without use_selinux
+%else
+%bcond_with use_selinux
+%endif
+
 # Scripts in this package are python3
 %define skip_python2 1
 # SELinux
@@ -47,13 +53,17 @@
 BuildRequires:  libtool
 BuildRequires:  libtpms-devel
 BuildRequires:  pkgconfig
+%if %{with use_selinux}
 BuildRequires:  selinux-policy-devel
 BuildRequires:  selinux-policy-targeted
+%endif
 BuildRequires:  socat
 BuildRequires:  pkgconfig(json-glib-1.0)
 BuildRequires:  pkgconfig(systemd)
 Requires:       iproute2
+%if %{with use_selinux}
 Requires:       (%{name}-selinux if selinux-policy-base)
+%endif
 Requires(pre):  user(tss)
 
 %description
@@ -74,6 +84,7 @@
 %description    devel
 The development files for SWTPM
 
+%if %{with use_selinux}
 %package        selinux
 Summary:        SELinux module for the Software TPM emulator
 Group:          System/Management
@@ -83,6 +94,7 @@
 
 %description    selinux
 This package provides the SELinux module for the Software TPM emulator.
+%endif
 
 %prep
 %autosetup
@@ -94,14 +106,20 @@
 export PATH="$PATH:%{_sbindir}"
 %configure --with-openssl --disable-static \
      --with-tss-user=root --with-tss-group=tss \
+%if %{with use_selinux}
      --with-selinux
+%else
+
+%endif
 %make_build
 
 %install
 %make_install
 find %{buildroot} -type f -name "*.la" -delete -print
+%if %{with use_selinux}
 mkdir %{buildroot}%{_datadir}/selinux/packages/targeted
 mv %{buildroot}%{_datadir}/selinux/packages/*.pp 
%{buildroot}%{_datadir}/selinux/packages/targeted
+%endif
 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
@@ -109,6 +127,7 @@
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+%if %{with use_selinux}
 %pre selinux
 %selinux_relabel_pre -s %{selinuxtype}
 
@@ -126,6 +145,7 @@
 
 %posttrans selinux
 %selinux_relabel_post -s %{selinuxtype}
+%endif
 
 %files
 %doc CHANGES README TODO
@@ -144,10 +164,12 @@
 %{_includedir}/swtpm
 %{_mandir}/man3/swtpm*%{?ext_man}
 
+%if %{with use_selinux}
 %files selinux
 %{_datadir}/selinux/packages/targeted/*.pp
 %ghost %verify(not md5 size mtime) 
%{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename1}
 %ghost %verify(not md5 size mtime) 
%{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename2}
 %ghost %verify(not md5 size mtime) 
%{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename3}
+%endif
 
 %changelog

Reply via email to