Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package setroubleshoot for openSUSE:Factory 
checked in at 2022-12-12 17:40:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/setroubleshoot (Old)
 and      /work/SRC/openSUSE:Factory/.setroubleshoot.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "setroubleshoot"

Mon Dec 12 17:40:19 2022 rev:4 rq:1042388 version:3.3.30

Changes:
--------
--- /work/SRC/openSUSE:Factory/setroubleshoot/setroubleshoot.changes    
2022-05-09 18:44:39.388246391 +0200
+++ /work/SRC/openSUSE:Factory/.setroubleshoot.new.1835/setroubleshoot.changes  
2022-12-12 17:42:23.106024275 +0100
@@ -1,0 +2,41 @@
+Wed Dec  8 12:38:49 UTC 2022 - Zdenek Kubala <zkub...@suse.cz>
+
+- Small adjustments in a spec file for dirs and files
+- Add documentation to be build in setroubleshoot-doc
+
+-------------------------------------------------------------------
+Wed Nov 30 15:07:07 UTC 2022 - Zdenek Kubala <zkub...@suse.cz>
+
+- Fix dbus conf file location to /usr/share/dbus-1
+
+-------------------------------------------------------------------
+Thu Oct 20 11:15:39 UTC 2022 - Zdenek Kubala <zkub...@suse.cz>
+
+- Update to version 3.3.30 (bnc#1204344)
+
+  Summary of changes from 3.3.26 to 3.3.30:
+  * sedispatch: check read_size
+  * SafeConfigParser is deprecated and will be dropped
+  * Fix typos in --help, man pages and developer's guide
+  * Improve DSP module reporting
+  * Look for modules in /usr/share/selinux/packages
+  * Always use rpm source package for reporting
+  * Improve after_first email filter behavior
+  * Set right ownership on /var/lib/setroubleshoot
+  * Install systemd-sysusers config
+  * Remove Requires(pre) useradd & groupadd
+  * Introduce email.use_sendmail option
+  * Update translations
+  * Miscellaneous python and build system changes
+  * Fix couple of typos
+  * Drop Python2 support
+  * Use inspect.signature() instead of instead.getargspec()
+
+  Spec file modification to reflect openSUSE dependencies and paths.
+  Removed old patches
+  * setroubleshoot-Stop-SetroubleshootFixit-after-10-seconds-of-inactiv.patch
+  * setroubleshoot-Do-not-use-Python-slip-package.patch
+  * setroubleshoot-Gracefully-handle-unavailable-libreport.patch
+
+  
+-------------------------------------------------------------------

Old:
----
  setroubleshoot-3.3.26.tar.gz
  setroubleshoot-Do-not-use-Python-slip-package.patch
  setroubleshoot-Gracefully-handle-unavailable-libreport.patch
  setroubleshoot-Stop-SetroubleshootFixit-after-10-seconds-of-inactiv.patch
  system-user-setroubleshoot.conf

New:
----
  setroubleshoot-3.3.30.tar.gz
  setroubleshoot.sysusers

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

Other differences:
------------------
++++++ setroubleshoot.spec ++++++
--- /var/tmp/diff_new_pack.20ClKs/_old  2022-12-12 17:42:23.582026953 +0100
+++ /var/tmp/diff_new_pack.20ClKs/_new  2022-12-12 17:42:23.590026997 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package setroubleshoot
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,204 +16,262 @@
 #
 
 
-Name:           setroubleshoot
-Version:        3.3.26
-Release:        0
+# Disable automatic compilation of Python files in extra directories
+%global _python_bytecompile_extra 0
+
 Summary:        Helps troubleshoot SELinux problems
 License:        GPL-2.0-or-later
-Group:          Productivity/Security
-URL:            https://pagure.io/setroubleshoot/
-Source:         
https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
-Source1:        %{name}.logrotate
-Source2:        %{name}.tmpfiles
-Source3:        system-user-setroubleshoot.conf
+Name:           setroubleshoot
+Version:        3.3.30
+Release:        2%{?dist}
+URL:            https://gitlab.com/setroubleshoot/setroubleshoot
+Source0:        
https://gitlab.com/setroubleshoot/setroubleshoot/-/archive/%{version}/setroubleshoot-%{version}.tar.gz
+Source1:        %{name}.tmpfiles
+Source2:        %{name}.sysusers
+Source3:       %{name}.logrotate
 Patch0:         setroubleshoot-desktop.patch
-Patch1:         
setroubleshoot-Stop-SetroubleshootFixit-after-10-seconds-of-inactiv.patch
-Patch2:         setroubleshoot-Do-not-use-Python-slip-package.patch
-Patch3:         setroubleshoot-Gracefully-handle-unavailable-libreport.patch
-BuildRequires:  audit-devel
-BuildRequires:  dbus-1-devel
-BuildRequires:  dbus-1-glib-devel
-BuildRequires:  fdupes
+# git format-patch -N 3.3.30
+# i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  gcc
 BuildRequires:  gettext
-BuildRequires:  gtk3-devel
 BuildRequires:  intltool
 BuildRequires:  libcap-ng-devel
+BuildRequires:  make
+BuildRequires:  python3
+BuildRequires:  python3-devel
+BuildRequires:  audit-devel >= 3.0.1
+BuildRequires:  dbus-1-glib-devel
+BuildRequires:  desktop-file-utils
+BuildRequires:  gtk2-devel
+BuildRequires:  gtk3-devel
 BuildRequires:  libnotify-devel
 BuildRequires:  libselinux-devel
-BuildRequires:  perl-XML-Parser
-BuildRequires:  python-setools
-BuildRequires:  python3
+BuildRequires:  polkit-devel
 BuildRequires:  python3-dasbus
-BuildRequires:  python3-devel
 BuildRequires:  python3-gobject
-BuildRequires:  python3-selinux >= 1.30.15
-BuildRequires:  update-desktop-files
-BuildRequires:  xdg-utils
+BuildRequires:  python3-selinux
+# for the _tmpfilesdir macro
 BuildRequires:  systemd-rpm-macros
+# for the sysusers
 BuildRequires:  sysuser-tools
-Requires:       %{name}-plugins >= 3.3.10
-Requires:       %{name}-server = %{version}
+Requires:       %{name}-server = %{version}-%{release}
+Requires:       gtk3
+Requires:       libnotify
 Requires:       python3-dasbus
-Requires:       python3-dbus-python
-Requires:       python3-selinux >= 1.30.15
-Requires:       selinux-policy
-Requires:       xdg-utils
+Requires:       python3-gobject
+# Redhat library for reporting bugs - do we have SUSE alternative?
+#Requires:       libreport-gtk >= 2.2.1-2
+#Requires:       python3-libreport
+Requires(post): desktop-file-utils
+Requires(post): dbus-1
+Requires(postun): dbus-1
+Requires(postun): desktop-file-utils
 
-%description
-SETroubleShoot GUI. Application that allows you to view setroubleshoot-server
-messages. Provides tools to help diagnose SELinux problems. When AVC messages
-are generated an alert can be generated that will give information
-about the problem and help track its resolution. Alerts can be configured
-to user preference. The same tools can be run on existing log files.
+BuildRequires:  xdg-utils
+Requires:       xdg-utils
 
-%package server
-Summary:        SELinux troubleshoot server
-Group:          Productivity/Security
-Requires:       %{name}-plugins >= 3.3.10
-Requires:       audit >= 1.2.6-3
-Requires:       python3-audit
-Requires:       python3-dasbus
-Requires:       python3-dbus-python
-Requires:       policycoreutils-python
-Requires:       python3-gobject
-Requires:       python3-selinux
-Requires:       python3-rpm
-Requires:       python3-setools
-Requires:       python3-libxml2
-Requires:       python3-systemd
-# Requires: python-slip-dbus
-Recommends:     logrotate
+%global pkgpythondir  %{python3_sitelib}/%{name}
+%global pkgguidir     %{_datadir}/%{name}/gui
+%global pkgdatadir    %{_datadir}/%{name}
+%global pkglibexecdir %{_prefix}/libexec/%{name}
+%global pkgvardatadir %{_localstatedir}/lib/%{name}
+%global pkgconfigdir  %{_sysconfdir}/%{name}
+%global pkgdatabase   %{pkgvardatadir}/setroubleshoot_database.xml
 
-%description server
+%description
+setroubleshoot GUI. Application that allows you to view setroubleshoot-server
+messages.
 Provides tools to help diagnose SELinux problems. When AVC messages
 are generated an alert can be generated that will give information
 about the problem and help track its resolution. Alerts can be configured
 to user preference. The same tools can be run on existing log files.
 
-%package doc
-Summary:        Setroubleshoot documentation
-Group:          Productivity/Security
-Requires(pre):  %{name} = %{version}
-BuildArch:      noarch
-
-%description doc
-Setroubleshoot documentation package
+%files
+%{pkgguidir}
+%config(noreplace) %{_sysconfdir}/xdg/autostart/*
+%{_datadir}/applications/*.desktop
+%if 0%{?suse_version}
+%{_datadir}/metainfo/setroubleshoot.appdata.xml
+%else
+%{_metainfodir}/*.appdata.xml
+%endif
+%{_datadir}/dbus-1/services/sealert.service
+%{_datadir}/icons/hicolor/*/*/*
+%dir %attr(0755,root,root) %{pkgpythondir}
+%{pkgpythondir}/browser.py
+%{pkgpythondir}/__pycache__/browser.cpython*
+%{pkgpythondir}/gui_utils.py
+%{pkgpythondir}/__pycache__/gui_utils.cpython*
+%{_bindir}/seapplet
 
 %prep
-%autosetup -p1
+%autosetup -p 1
 
 %build
-%sysusers_generate_pre %{SOURCE3} %{name}-server setroubleshoot.conf
-%configure \
-    --enable-seappletlegacy=no \
-    --with-auditpluginsdir=/etc/audisp/plugins.d
-    
+./autogen.sh
+%if 0%{?suse_version}
+%configure PYTHON=%{__python3} --enable-seappletlegacy=no 
--with-auditpluginsdir=/etc/audit/plugins.d
+%sysusers_generate_pre %{SOURCE2} %{name}-server setroubleshoot.conf
 %make_build pkgrundir=%{_rundir}/setroubleshoot 
pid_file=%{_rundir}/setroubleshootd.pid
+%else
+%configure PYTHON=%{__python3} --enable-seappletlegacy=no 
--with-auditpluginsdir=/etc/audit/plugins.d
+make
+%endif
 
 %install
-%make_install dbus_systemdir=%{_datadir}/dbus-1/system.d
-install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server
-%suse_update_desktop_file %{name}
+%make_install dbus_systemdir=%{_datadir}/dbus-1/system.d PREFIX=/usr
+desktop-file-install --vendor="" --dir=%{buildroot}%{_datadir}/applications 
%{buildroot}/%{_datadir}/applications/%{name}.desktop
+mkdir -p %{buildroot}%{pkgvardatadir}
+mkdir -p %{buildroot}%{_rundir}/setroubleshoot
+touch %{buildroot}%{pkgdatabase}
+touch %{buildroot}%{pkgvardatadir}/email_alert_recipients
 
 # fix documentation
 mkdir -p %{buildroot}%{_docdir}/%{name}/
-mv %{buildroot}%{_datadir}/doc/%{name}-%{version}/* 
%{buildroot}%{_docdir}/%{name}/
-rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}/
-
-mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
-touch %{buildroot}%{_localstatedir}/lib/%{name}/audit_listener_database.xml
-touch %{buildroot}%{_localstatedir}/lib/%{name}/email_alert_recipients
-touch %{buildroot}%{_localstatedir}/lib/%{name}/setroubleshoot_database.xml
-
+ls %{buildroot}%{_datadir}/doc/
+mv %{buildroot}%{_datadir}/doc/%{name}/* %{buildroot}%{_docdir}/%{name}/
+ls %{buildroot}/%{_datadir}/doc/
+rm -rf %{buildroot}/%{_datadir}/doc/%{name}
 
 # create /run/setroubleshoot on boot
-install -m644 -D %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
-mkdir -p %{_buildroot}%{_rundir}/%{name}
+install -p -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
+install -p -m644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/%{name}.conf
 
-mkdir -p %{buildroot}%{_sysusersdir}
-install -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/setroubleshoot.conf
+# install logrotate file
+install -D -m644 %{SOURCE3} 
%{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server
 
-%fdupes %{buildroot}
 %find_lang %{name}
 
+
+%package doc
+Summary:        Setroubleshoot documentation
+Group:          Productivity/Security
+Requires(pre):  %{name} = %{version}
+BuildArch:      noarch
+
+%description doc
+Setroubleshoot documentation package
+
+%files doc
+%dir %{_docdir}/%{name}/
+%doc %{_docdir}/%{name}/*
+
+%package server
+Summary:        SELinux troubleshoot server
+
+Requires:       %{name}-plugins >= 3.3.10
+Requires:       audit >= 3.0.1
+Requires:       audit-libs-python3
+Requires:       python3-selinux  >= 2.1.5-1
+Requires:       python3-libxml2
+Requires:       python3-dbus-python
+Requires:       python3-rpm
+Requires:       python3-systemd >= 206-1
+Requires:       python3-gobject >= 3.11
+Requires:       policycoreutils-python-utils
+BuildRequires:  gettext
+BuildRequires:  intltool
+BuildRequires:  python3
+BuildRequires:  python3-devel
+Requires:       dbus-1
+Requires:       polkit
+Requires:       python3-dasbus
+Recommends:    logrotate
+
+%description server
+Provides tools to help diagnose SELinux problems. When AVC messages
+are generated an alert can be generated that will give information
+about the problem and help track its resolution. Alerts can be configured
+to user preference. The same tools can be run on existing log files.
+
+
 %pre server -f %{name}-server.pre
 
 %post server
+%if 0%{?suse_version}
 %tmpfiles_create %{_tmpfilesdir}/setroubleshoot.conf
+%else
+/sbin/service auditd reload >/dev/null 2>&1 || :
+%endif
 
-%files
-%{_datadir}/%{name}/gui
-%{_sysconfdir}/xdg/autostart/*
-%{_datadir}/icons/hicolor
-%dir %attr(0755,root,root) %{python3_sitelib}/%{name}
-%dir %{_datadir}/%{name}
-%{python3_sitelib}/%{name}/browser.py
-%{python3_sitelib}/%{name}/gui_utils.py
-%{python3_sitelib}/%{name}/__pycache__/browser*.pyc
-%{python3_sitelib}/%{name}/__pycache__/gui_utils*.pyc
-%{_bindir}/seapplet
+%postun server
+/sbin/service auditd reload >/dev/null 2>&1 || :
 
 %files server -f %{name}.lang
 %{_bindir}/sealert
 %{_sbindir}/sedispatch
 %{_sbindir}/setroubleshootd
-%{_sysusersdir}/setroubleshoot.conf
-%dir %attr(0755,root,root) %{_sysconfdir}/%{name}
-%dir %attr(0755,root,root) %{python3_sitelib}/%{name}
-%{_datadir}/dbus-1/services/sealert.service
-%{_datadir}/applications/%{name}.desktop
-%exclude %{python3_sitelib}/%{name}/__pycache__/browser*.pyc
-%exclude %{python3_sitelib}/%{name}/__pycache__/gui_utils*.pyc
-%{python3_sitelib}/%{name}/__pycache__/
-%{python3_sitelib}/%{name}-*.egg-info
-%{python3_sitelib}/%{name}/Plugin.py
-%{python3_sitelib}/%{name}/__init__.py
-%{python3_sitelib}/%{name}/access_control.py
-%{python3_sitelib}/%{name}/analyze.py
-%{python3_sitelib}/%{name}/audit_data.py
-%{python3_sitelib}/%{name}/avc_audit.py
-%{python3_sitelib}/%{name}/config.py
-%{python3_sitelib}/%{name}/email_alert.py
-%{python3_sitelib}/%{name}/errcode.py
-%{python3_sitelib}/%{name}/html_util.py
-%{python3_sitelib}/%{name}/rpc.py
-%{python3_sitelib}/%{name}/rpc_interfaces.py
-%{python3_sitelib}/%{name}/server.py
-%{python3_sitelib}/%{name}/serverconnection.py
-%{python3_sitelib}/%{name}/signature.py
-%{python3_sitelib}/%{name}/util.py
-%{python3_sitelib}/%{name}/uuid.py
-%{python3_sitelib}/%{name}/xml_serialize.py
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/*.py
+%{python3_sitelib}/setroubleshoot*.egg-info
+%dir %attr(0755,root,root) %{pkgconfigdir}
+%dir %{pkgpythondir}
+%dir %{pkgpythondir}/__pycache__
+%{pkgpythondir}/Plugin.py
+%{pkgpythondir}/__init__.py
+%{pkgpythondir}/access_control.py
+%{pkgpythondir}/analyze.py
+%{pkgpythondir}/audit_data.py
+%{pkgpythondir}/avc_audit.py
+%{pkgpythondir}/config.py
+%{pkgpythondir}/email_alert.py
+%{pkgpythondir}/errcode.py
+%{pkgpythondir}/html_util.py
+%{pkgpythondir}/rpc.py
+%{pkgpythondir}/serverconnection.py
+%{pkgpythondir}/rpc_interfaces.py
+%{pkgpythondir}/server.py
+%{pkgpythondir}/signature.py
+%{pkgpythondir}/util.py
+%{pkgpythondir}/uuid.py
+%{pkgpythondir}/xml_serialize.py
+%{pkgpythondir}/__pycache__/Plugin.cpython*
+%{pkgpythondir}/__pycache__/__init__.cpython*
+%{pkgpythondir}/__pycache__/access_control.cpython*
+%{pkgpythondir}/__pycache__/analyze.cpython*
+%{pkgpythondir}/__pycache__/audit_data.cpython*
+%{pkgpythondir}/__pycache__/avc_audit.cpython*
+%{pkgpythondir}/__pycache__/config.cpython*
+%{pkgpythondir}/__pycache__/email_alert.cpython*
+%{pkgpythondir}/__pycache__/errcode.cpython*
+%{pkgpythondir}/__pycache__/html_util.cpython*
+%{pkgpythondir}/__pycache__/rpc.cpython*
+%{pkgpythondir}/__pycache__/rpc_interfaces.cpython*
+%{pkgpythondir}/__pycache__/server.cpython*
+%{pkgpythondir}/__pycache__/serverconnection.cpython*
+%{pkgpythondir}/__pycache__/signature.cpython*
+%{pkgpythondir}/__pycache__/util.cpython*
+%{pkgpythondir}/__pycache__/uuid.cpython*
+%{pkgpythondir}/__pycache__/xml_serialize.cpython*
+%dir %{pkgdatadir}
+%{pkgdatadir}/SetroubleshootFixit.py
+%{pkgdatadir}/SetroubleshootPrivileged.py
+%config(noreplace) %{pkgconfigdir}/%{name}.conf
+%attr(0700,setroubleshoot,setroubleshoot) %dir %{pkgvardatadir}
+%ghost %attr(0600,setroubleshoot,setroubleshoot) %{pkgdatabase}
+%ghost %attr(0600,setroubleshoot,setroubleshoot) 
%{pkgvardatadir}/email_alert_recipients
+%{_mandir}/man1/seapplet.1.gz
+%{_mandir}/man8/sealert.8.gz
+%{_mandir}/man8/sedispatch.8.gz
+%{_mandir}/man8/setroubleshootd.8.gz
+%attr(750,root,root) %dir %{_sysconfdir}/audit
+%attr(750,root,root) %dir %{_sysconfdir}/audit/plugins.d
+%attr(640,root,root)%config %{_sysconfdir}/audit/plugins.d/sedispatch.conf
 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-server
-%ghost %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
-%dir %{_datadir}/polkit-1
-%dir %{_datadir}/polkit-1/actions
+%{_datadir}/dbus-1/system-services/org.fedoraproject.Setroubleshootd.service
+%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootPrivileged.service
 %{_datadir}/polkit-1/actions/org.fedoraproject.setroubleshootfixit.policy
+%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
 %{_datadir}/dbus-1/system.d/org.fedoraproject.Setroubleshootd.conf
-%{_datadir}/dbus-1/system.d/org.fedoraproject.SetroubleshootFixit.conf
 %{_datadir}/dbus-1/system.d/org.fedoraproject.SetroubleshootPrivileged.conf
-%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
-%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootPrivileged.service
-%dir %attr(0750,setroubleshoot,setroubleshoot) %{_localstatedir}/lib/%{name}
-%ghost %attr(0600,setroubleshoot,setroubleshoot) 
%{_localstatedir}/lib/%{name}/audit_listener_database.xml
-%ghost %attr(0644,setroubleshoot,setroubleshoot) 
%{_localstatedir}/lib/%{name}/email_alert_recipients
-%ghost %attr(0644,setroubleshoot,setroubleshoot) 
%{_localstatedir}/lib/%{name}/setroubleshoot_database.xml
-%ghost %attr(0711,setroubleshoot,setroubleshoot) %{_rundir}/%{name}
-%ghost %dir %{_localstatedir}/log/%{name}
-%{_mandir}/man8/se*.8%{?ext_man}
-%{_mandir}/man1/se*.1%{?ext_man}
-%{_tmpfilesdir}/setroubleshoot.conf
-%dir %{_sysconfdir}/audisp
-%dir %{_sysconfdir}/audisp/plugins.d
-%config %{_sysconfdir}/audisp/plugins.d/sedispatch.conf
-%{_datadir}/dbus-1/system-services/org.fedoraproject.Setroubleshootd.service
-%{_datadir}/appdata/setroubleshoot.appdata.xml
-
-%files doc
-%dir %{_docdir}/%{name}/
-%doc %{_docdir}/%{name}/*
+%{_datadir}/dbus-1/system.d/org.fedoraproject.SetroubleshootFixit.conf
+%attr(0644,root,root) %{_tmpfilesdir}/%{name}.conf
+%attr(0644,root,root) %{_sysusersdir}/%{name}.conf
+%if 0%{?suse_version} 
+%ghost %attr(0711,setroubleshoot,setroubleshoot) %dir %{_rundir}/setroubleshoot
+%else
+%attr(0711,setroubleshoot,setroubleshoot) %dir %{_rundir}/setroubleshoot
+%endif 
+%doc AUTHORS COPYING ChangeLog DBUS.md NEWS README TODO
 
 %changelog

++++++ setroubleshoot-3.3.26.tar.gz -> setroubleshoot-3.3.30.tar.gz ++++++
++++ 28053 lines of diff (skipped)

++++++ setroubleshoot.sysusers ++++++
u setroubleshoot - "SELinux troubleshoot server" /var/lib/setroubleshoot

Reply via email to