setroubleshoot-3.3.1-0.1

- port setroubleshoot to Python 3
- based on python3 branch fedora-selinux/setroubleshoot
- HEAD e52a05819c4dfe5bdc6998c75780c890ca9ed288
This commit is contained in:
Petr Lautrbach 2015-08-18 18:14:09 +02:00
parent 162fd460fb
commit f37e9eb044
3 changed files with 28 additions and 20 deletions

1
.gitignore vendored
View File

@ -185,3 +185,4 @@ setroubleshoot-2.2.93.tar.gz
/setroubleshoot-3.2.22.tar.gz /setroubleshoot-3.2.22.tar.gz
/setroubleshoot-3.2.23.tar.gz /setroubleshoot-3.2.23.tar.gz
/setroubleshoot-3.2.24.tar.gz /setroubleshoot-3.2.24.tar.gz
/setroubleshoot-3.3.1.tar.gz

View File

@ -1,25 +1,28 @@
Summary: Helps troubleshoot SELinux problems Summary: Helps troubleshoot SELinux problems
Name: setroubleshoot Name: setroubleshoot
Version: 3.2.24 Version: 3.3.1
Release: 3%{?dist} Release: 0.1%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
URL: https://fedorahosted.org/setroubleshoot URL: https://fedorahosted.org/setroubleshoot
# git clone https://github.com/fedora-selinux/setroubleshoot.git # git clone https://github.com/fedora-selinux/setroubleshoot.git
# cd setroubleshoot/framework/ # cd setroubleshoot/framework/
# git checkout setroubleshoot-%{version} # # for the devel version use
# git checkout python3
# # for a relase use
# # git checkout setroubleshoot-%{version}
# ./autogen.sh # ./autogen.sh
# make dist # make dist
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Source1: %{name}.tmpfiles Source1: %{name}.tmpfiles
BuildRequires: perl-XML-Parser BuildRequires: perl-XML-Parser
BuildRequires: libcap-ng-devel BuildRequires: libcap-ng-devel
BuildRequires: intltool gettext python BuildRequires: intltool gettext python3 python3-devel
BuildRequires: desktop-file-utils dbus-glib-devel gtk2-devel libnotify-devel audit-libs-devel libselinux-devel polkit-devel BuildRequires: desktop-file-utils dbus-glib-devel gtk2-devel libnotify-devel audit-libs-devel libselinux-devel polkit-devel
Requires: %{name}-server = %{version}-%{release} Requires: %{name}-server = %{version}-%{release}
Requires: pygtk2-libglade >= 2.9.2 Requires: pygtk2-libglade >= 2.9.2
Requires: gtk2 Requires: gtk2
Requires: libreport-gtk >= 2.2.1-2, libreport-python Requires: libreport-gtk >= 2.2.1-2, libreport-python3
Requires(post): desktop-file-utils Requires(post): desktop-file-utils
Requires(post): dbus Requires(post): dbus
Requires(postun): desktop-file-utils Requires(postun): desktop-file-utils
@ -28,7 +31,7 @@ Requires(postun): dbus
BuildRequires: xdg-utils BuildRequires: xdg-utils
Requires: xdg-utils Requires: xdg-utils
%global pkgpythondir %{python_sitearch}/%{name} %global pkgpythondir %{python3_sitelib}/%{name}
%define pkgguidir %{_datadir}/%{name}/gui %define pkgguidir %{_datadir}/%{name}/gui
%define pkgdatadir %{_datadir}/%{name} %define pkgdatadir %{_datadir}/%{name}
%define pkglibexecdir %{_prefix}/libexec/%{name} %define pkglibexecdir %{_prefix}/libexec/%{name}
@ -38,7 +41,7 @@ Requires: xdg-utils
%define username setroubleshoot %define username setroubleshoot
%description %description
setroubleshoot GUI. Application that allows you to view setroubleshoot-server setroubleshoot GUI. Application that allows you to view setroubleshoot-server
messages. messages.
Provides tools to help diagnose SELinux problems. When AVC messages Provides tools to help diagnose SELinux problems. When AVC messages
are generated an alert can be generated that will give information are generated an alert can be generated that will give information
@ -58,6 +61,8 @@ to user preference. The same tools can be run on existing log files.
%{_bindir}/seapplet %{_bindir}/seapplet
%attr(0644,root,root) %{_tmpfilesdir}/%{name}.conf %attr(0644,root,root) %{_tmpfilesdir}/%{name}.conf
%attr(0711,setroubleshoot,setroubleshoot) %dir %{_rundir}/setroubleshoot %attr(0711,setroubleshoot,setroubleshoot) %dir %{_rundir}/setroubleshoot
%{pkgpythondir}/__pycache__/*
%post %post
touch --no-create %{_datadir}/icons/hicolor || : touch --no-create %{_datadir}/icons/hicolor || :
@ -79,10 +84,10 @@ fi
%setup -q %setup -q
%build %build
%configure %configure PYTHON=%{__python3}
make make
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
desktop-file-install --vendor="" --dir=%{buildroot}%{_datadir}/applications %{buildroot}/%{_datadir}/applications/%{name}.desktop desktop-file-install --vendor="" --dir=%{buildroot}%{_datadir}/applications %{buildroot}/%{_datadir}/applications/%{name}.desktop
@ -103,15 +108,15 @@ Group: Applications/System
Requires: %{name}-plugins >= 3.0.14 Requires: %{name}-plugins >= 3.0.14
Requires: audit >= 1.2.6-3 Requires: audit >= 1.2.6-3
Requires: audit-libs-python >= 1.2.6-3 Requires: audit-libs-python3 >= 1.2.6-3
Requires: libxml2-python Requires: libxml2-python3
Requires: rpm-python Requires: rpm-python3
Requires: libselinux-python >= 2.1.5-1 Requires: libselinux-python3 >= 2.1.5-1
Requires: policycoreutils-python-utils Requires: policycoreutils-python-utils
BuildRequires: intltool gettext python BuildRequires: intltool gettext python3
BuildRequires: python-devel BuildRequires: python3-devel
Requires: python-slip-dbus systemd-python >= 206-1 Requires: python-slip-dbus systemd-python >= 206-1
Requires: pygobject2 Requires: pygobject3 >= 3.11
Requires: dbus Requires: dbus
Requires: dbus-python Requires: dbus-python
Requires: polkit Requires: polkit
@ -138,13 +143,13 @@ chown -R setroubleshoot:setroubleshoot %{pkgvardatadir}
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files server -f %{name}.lang %files server -f %{name}.lang
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_datadir}/appdata/*.appdata.xml %{_datadir}/appdata/*.appdata.xml
%{_bindir}/sealert %{_bindir}/sealert
%{_sbindir}/sedispatch %{_sbindir}/sedispatch
%{_sbindir}/setroubleshootd %{_sbindir}/setroubleshootd
%{python_sitearch}/setroubleshoot*.egg-info %{python3_sitelib}/setroubleshoot*.egg-info
%dir %attr(0755,root,root) %{pkgconfigdir} %dir %attr(0755,root,root) %{pkgconfigdir}
%dir %attr(0755,root,root) %{pkgpythondir} %dir %attr(0755,root,root) %{pkgpythondir}
%{pkgpythondir}/Plugin.py* %{pkgpythondir}/Plugin.py*
@ -165,7 +170,6 @@ rm -rf %{buildroot}
%{pkgpythondir}/util.py* %{pkgpythondir}/util.py*
%{pkgpythondir}/uuid.py* %{pkgpythondir}/uuid.py*
%{pkgpythondir}/xml_serialize.py* %{pkgpythondir}/xml_serialize.py*
%attr(0755,root,root) %{pkgpythondir}/default_encoding_utf8.so
%dir %{pkgdatadir} %dir %{pkgdatadir}
%{pkgdatadir}/SetroubleshootFixit.py* %{pkgdatadir}/SetroubleshootFixit.py*
%{pkgdatadir}/updater.py* %{pkgdatadir}/updater.py*
@ -184,6 +188,9 @@ rm -rf %{buildroot}
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service %{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
%changelog %changelog
* Tue Aug 18 2015 Petr Lautrbach <plautrba@redhat.com> 3.3.1-0.1
- port setroubleshoot to Python 3
* Mon Jul 27 2015 Petr Lautrbach <plautrba@redhat.com> 3.2.24-3 * Mon Jul 27 2015 Petr Lautrbach <plautrba@redhat.com> 3.2.24-3
- setroubleshoot-server depends on policycoreutils-python-utils (#1246625) - setroubleshoot-server depends on policycoreutils-python-utils (#1246625)

View File

@ -1 +1 @@
bff0231ea61ffa69689bf93d71cbd8f9 setroubleshoot-3.2.24.tar.gz 597f296f7b3e1ad0fe5701f1dfaf8b45 setroubleshoot-3.3.1.tar.gz