03f4849d0f
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setroubleshoot-plugins?expand=0&rev=2
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package setroubleshot-plugins
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: setroubleshoot-plugins
|
|
Version: 2.1.40
|
|
Release: 1
|
|
Url: https://fedorahosted.org/setroubleshoot
|
|
License: GPL v2 or later
|
|
Group: Applications/System
|
|
Summary: Helps troubleshoot SELinux problems
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
BuildRequires: perl-XML-Parser intltool gettext python fdupes
|
|
%py_requires
|
|
Requires: dbus-1
|
|
Requires: setroubleshoot-server >= 2.0.4
|
|
Requires: policycoreutils >= 2.0.35
|
|
|
|
%description
|
|
This package provides a set of analysis plugins for use with
|
|
setroubleshoot. Each plugin has the capacity to analyze SELinux AVC
|
|
data and system data to provide user friendly reports describing how
|
|
to interpret SELinux AVC denials.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
|
|
%find_lang %{name}
|
|
%fdupes $RPM_BUILD_ROOT%{_datadir}/locale
|
|
%fdupes $RPM_BUILD_ROOT%{_datadir}/setroubleshoot/plugins
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.restart string:'rpm install' >/dev/null 2>&1 || :
|
|
|
|
%postun
|
|
if [ "$1" -eq 0 ]; then
|
|
dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.restart string:'rpm install' >/dev/null 2>&1 || :
|
|
fi
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
%dir %{_datadir}/setroubleshoot
|
|
%{_datadir}/setroubleshoot/plugins
|
|
|
|
%changelog
|