1 Summary: Policy analysis tools for SELinux
2 Summary(pl.UTF-8): Narzędzia do analizy polityk SELinuksa
6 License: GPL v2+ (tools), LGPL v2.1+ (libraries)
7 Group: Applications/System
8 Source0: https://github.com/SELinuxProject/setools/releases/download/%{version}/%{name}-%{version}.tar.bz2
9 # Source0-md5: f78fb10ec1fe189dfd27204549854cfa
10 URL: https://github.com/TresysTechnology/setools4/wiki
13 BuildRequires: libsepol-devel >= 2.7
14 BuildRequires: libsepol-static >= 2.7
15 BuildRequires: python3-devel >= 1:3.3
16 BuildRequires: python3-setuptools
17 BuildRequires: rpmbuild(macros) >= 1.714
18 BuildRequires: swig-python >= 2.0.12
19 Suggests: policy-sources
20 Requires: python3-setools = %{version}-%{release}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 SETools is a collection of graphical tools, command-line tools, and
25 libraries designed to facilitate SELinux policy analysis.
27 The base package includes the following console tools:
28 - seaudit-report: audit log analysis tool
29 - sechecker: SELinux policy checking tool
30 - secmds command line tools: seinfo, sesearch, findcon, replcon, and
32 - sediff: semantic policy difference tool
34 %description -l pl.UTF-8
35 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
36 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
38 Pakiet podstawowy zawiera narzędzia terminalowe:
39 - seaudit-report - narzędzie do analizy logu audytowego
40 - sechecker - narzędzie do sprawdzania polityk SELinuksa
41 - narzędzia linii poleceń secmds: seinfo, sesearch, findcon, replcon
43 - sediff - narzędzie do znajdywania różnic semantycznych polityk
46 Summary: Policy analysis graphical tools for SELinux
47 Summary(pl.UTF-8): Graficzne narzędzia do analizy polityk SELinuksa
49 Group: Applications/System
50 Requires: %{name} = %{version}-%{release}
51 Requires: python3-setoolsgui = %{version}-%{release}
54 SETools is a collection of graphical tools, command-line tools, and
55 libraries designed to facilitate SELinux policy analysis.
57 This package includes the following graphical tools:
58 - apol: policy analysis tool
60 %description gui -l pl.UTF-8
61 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
62 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
64 Ten pakiet zawiera narzędzia graficzne:
65 - apol - narzędzie do analizy polityk
67 %package -n python-setools
68 Summary: Python 2 bindings for SELinux policy analysis libraries
69 Summary(pl.UTF-8): Wiązania Pythona 2 do bibliotek analizy polityk SELinuksa
70 License: LGPL v2.1+ (core modules), GPL v2+ (seinfo and sesearch)
71 Group: Libraries/Python
72 Requires: python-enum34
73 Requires: python-modules >= 1:2.7
74 Requires: python-networkx >= 1.8
75 Suggests: python-selinux
77 %description -n python-setools
78 SETools is a collection of graphical tools, command-line tools, and
79 libraries designed to facilitate SELinux policy analysis.
81 This package includes Python bindings for SELinux policy analysis
84 %description -n python-setools -l pl.UTF-8
85 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
86 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
88 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
91 %package -n python-setoolsgui
92 Summary: SETools GUI modules for Python 2
93 Summary(pl.UTF-8): Moduły graficznego interfejsu użytkownika SETools dla Pythona 2
94 Group: Libraries/Python
95 Requires: python-setools = %{version}-%{release}
96 Requires: python-PyQt5 >= 5
98 %description -n python-setoolsgui
99 SETools GUI modules for Python 2.
101 %description -n python-setoolsgui -l pl.UTF-8
102 Moduły graficznego interfejsu użytkownika SETools dla Pythona 2.
104 %package -n python3-setools
105 Summary: Python 3 bindings for SELinux policy analysis libraries
106 Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek analizy polityk SELinuksa
107 Group: Libraries/Python
108 %if "%{py3_ver}" < "3.4"
109 Requires: python3-enum34
111 Requires: python3-modules >= 1:3.3
112 Requires: python3-networkx >= 1.8
113 Suggests: python3-selinux
115 %description -n python3-setools
116 SETools is a collection of graphical tools, command-line tools, and
117 libraries designed to facilitate SELinux policy analysis.
119 This package includes Python bindings for SELinux policy analysis
122 %description -n python3-setools -l pl.UTF-8
123 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
124 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
126 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
129 %package -n python3-setoolsgui
130 Summary: SETools GUI modules for Python 3
131 Summary(pl.UTF-8): Moduły graficznego interfejsu użytkownika SETools dla Pythona 3
132 Group: Libraries/Python
133 Requires: python3-setools = %{version}-%{release}
134 Requires: python3-PyQt5 >= 5
136 %description -n python3-setoolsgui
137 SETools GUI modules for Python 3.
139 %description -n python3-setoolsgui -l pl.UTF-8
140 Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
146 export SEPOL=%{_libdir}/libsepol.a
151 rm -rf $RPM_BUILD_ROOT
153 export SEPOL=%{_libdir}/libsepol.a
158 rm -rf $RPM_BUILD_ROOT
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_bindir}/sediff
163 %attr(755,root,root) %{_bindir}/sedta
164 %attr(755,root,root) %{_bindir}/seinfo
165 %attr(755,root,root) %{_bindir}/seinfoflow
166 %attr(755,root,root) %{_bindir}/sesearch
167 %{_mandir}/man1/sediff.1*
168 %{_mandir}/man1/sedta.1*
169 %{_mandir}/man1/seinfo.1*
170 %{_mandir}/man1/seinfoflow.1*
171 %{_mandir}/man1/sesearch.1*
174 %defattr(644,root,root,755)
175 %attr(755,root,root) %{_bindir}/apol
176 %{_mandir}/man1/apol.1*
178 %files -n python3-setools
179 %defattr(644,root,root,755)
180 %doc COPYING ChangeLog KNOWN-BUGS README.md
181 %dir %{py3_sitedir}/setools
182 %{py3_sitedir}/setools/diff
183 %attr(755,root,root) %{py3_sitedir}/setools/policyrep.cpython-*.so
184 %{py3_sitedir}/setools/*.py
185 %{py3_sitedir}/setools/perm_map
186 %{py3_sitedir}/setools/__pycache__
187 %{py3_sitedir}/setools-%{version}-py*.egg-info
189 %files -n python3-setoolsgui
190 %defattr(644,root,root,755)
191 %{py3_sitedir}/setoolsgui