3 %bcond_without python2 # Python 2.x modules
4 %bcond_without python3 # Python 3.x modules
6 Summary: Policy analysis tools for SELinux
7 Summary(pl.UTF-8): Narzędzia do analizy polityk SELinuksa
11 License: GPL v2+ (tools), LGPL v2.1+ (libraries)
12 Group: Applications/System
13 #Source0Download: https://github.com/TresysTechnology/setools/releases
14 Source0: https://github.com/TresysTechnology/setools/archive/%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: 54cf5c0ca2aa4ef7c6ac153981af34cd
16 URL: https://github.com/TresysTechnology/setools4/wiki
19 BuildRequires: libsepol-devel >= 2.7
20 BuildRequires: libsepol-static >= 2.7
22 BuildRequires: python-devel >= 1:2.7
23 BuildRequires: python-setuptools
26 BuildRequires: python3-devel >= 1:3.3
27 BuildRequires: python3-setuptools
29 BuildRequires: rpmbuild(macros) >= 1.714
30 BuildRequires: swig-python >= 2.0.12
31 Suggests: policy-sources
33 Requires: python-setools = %{version}-%{release}
35 Requires: python3-setools = %{version}-%{release}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 SETools is a collection of graphical tools, command-line tools, and
41 libraries designed to facilitate SELinux policy analysis.
43 The base package includes the following console tools:
44 - seaudit-report: audit log analysis tool
45 - sechecker: SELinux policy checking tool
46 - secmds command line tools: seinfo, sesearch, findcon, replcon, and
48 - sediff: semantic policy difference tool
50 %description -l pl.UTF-8
51 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
52 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
54 Pakiet podstawowy zawiera narzędzia terminalowe:
55 - seaudit-report - narzędzie do analizy logu audytowego
56 - sechecker - narzędzie do sprawdzania polityk SELinuksa
57 - narzędzia linii poleceń secmds: seinfo, sesearch, findcon, replcon
59 - sediff - narzędzie do znajdywania różnic semantycznych polityk
62 Summary: Policy analysis graphical tools for SELinux
63 Summary(pl.UTF-8): Graficzne narzędzia do analizy polityk SELinuksa
65 Group: Applications/System
66 Requires: %{name} = %{version}-%{release}
68 Requires: python-setoolsgui = %{version}-%{release}
70 Requires: python3-setoolsgui = %{version}-%{release}
74 SETools is a collection of graphical tools, command-line tools, and
75 libraries designed to facilitate SELinux policy analysis.
77 This package includes the following graphical tools:
78 - apol: policy analysis tool
80 %description gui -l pl.UTF-8
81 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
82 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
84 Ten pakiet zawiera narzędzia graficzne:
85 - apol - narzędzie do analizy polityk
87 %package -n python-setools
88 Summary: Python 2 bindings for SELinux policy analysis libraries
89 Summary(pl.UTF-8): Wiązania Pythona 2 do bibliotek analizy polityk SELinuksa
90 License: LGPL v2.1+ (core modules), GPL v2+ (seinfo and sesearch)
91 Group: Libraries/Python
92 Requires: python-enum34
93 Requires: python-modules >= 1:2.7
94 Requires: python-networkx >= 1.8
95 Suggests: python-selinux
97 %description -n python-setools
98 SETools is a collection of graphical tools, command-line tools, and
99 libraries designed to facilitate SELinux policy analysis.
101 This package includes Python bindings for SELinux policy analysis
104 %description -n python-setools -l pl.UTF-8
105 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
106 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
108 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
111 %package -n python-setoolsgui
112 Summary: SETools GUI modules for Python 2
113 Summary(pl.UTF-8): Moduły graficznego interfejsu użytkownika SETools dla Pythona 2
114 Group: Libraries/Python
115 Requires: python-setools = %{version}-%{release}
116 Requires: python-PyQt5 >= 5
118 %description -n python-setoolsgui
119 SETools GUI modules for Python 2.
121 %description -n python-setoolsgui -l pl.UTF-8
122 Moduły graficznego interfejsu użytkownika SETools dla Pythona 2.
124 %package -n python3-setools
125 Summary: Python 3 bindings for SELinux policy analysis libraries
126 Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek analizy polityk SELinuksa
127 Group: Libraries/Python
128 %if "%{py3_ver}" < "3.4"
129 Requires: python3-enum34
131 Requires: python3-modules >= 1:3.3
132 Requires: python3-networkx >= 1.8
133 Suggests: python3-selinux
135 %description -n python3-setools
136 SETools is a collection of graphical tools, command-line tools, and
137 libraries designed to facilitate SELinux policy analysis.
139 This package includes Python bindings for SELinux policy analysis
142 %description -n python3-setools -l pl.UTF-8
143 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
144 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
146 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
149 %package -n python3-setoolsgui
150 Summary: SETools GUI modules for Python 3
151 Summary(pl.UTF-8): Moduły graficznego interfejsu użytkownika SETools dla Pythona 3
152 Group: Libraries/Python
153 Requires: python3-setools = %{version}-%{release}
154 Requires: python3-PyQt5 >= 5
156 %description -n python3-setoolsgui
157 SETools GUI modules for Python 3.
159 %description -n python3-setoolsgui -l pl.UTF-8
160 Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
175 rm -rf $RPM_BUILD_ROOT
188 rm -rf $RPM_BUILD_ROOT
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_bindir}/sediff
193 %attr(755,root,root) %{_bindir}/sedta
194 %attr(755,root,root) %{_bindir}/seinfo
195 %attr(755,root,root) %{_bindir}/seinfoflow
196 %attr(755,root,root) %{_bindir}/sesearch
197 %{_mandir}/man1/sediff.1*
198 %{_mandir}/man1/sedta.1*
199 %{_mandir}/man1/seinfo.1*
200 %{_mandir}/man1/seinfoflow.1*
201 %{_mandir}/man1/sesearch.1*
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_bindir}/apol
206 %{_mandir}/man1/apol.1*
209 %files -n python-setools
210 %defattr(644,root,root,755)
211 %doc COPYING ChangeLog KNOWN-BUGS README.md
212 %dir %{py_sitedir}/setools
213 %{py_sitedir}/setools/diff
214 %dir %{py_sitedir}/setools/policyrep
215 %attr(755,root,root) %{py_sitedir}/setools/policyrep/_qpol.so
216 %{py_sitedir}/setools/policyrep/*.py[co]
217 %{py_sitedir}/setools/*.py[co]
218 %{py_sitedir}/setools/perm_map
219 %{py_sitedir}/setools-%{version}-py*.egg-info
221 %files -n python-setoolsgui
222 %defattr(644,root,root,755)
223 %{py_sitedir}/setoolsgui
227 %files -n python3-setools
228 %defattr(644,root,root,755)
229 %doc COPYING ChangeLog KNOWN-BUGS README.md
230 %dir %{py3_sitedir}/setools
231 %{py3_sitedir}/setools/diff
232 %dir %{py3_sitedir}/setools/policyrep
233 %attr(755,root,root) %{py3_sitedir}/setools/policyrep/_qpol.cpython-*.so
234 %{py3_sitedir}/setools/policyrep/*.py
235 %{py3_sitedir}/setools/policyrep/__pycache__
236 %{py3_sitedir}/setools/*.py
237 %{py3_sitedir}/setools/perm_map
238 %{py3_sitedir}/setools/__pycache__
239 %{py3_sitedir}/setools-%{version}-py*.egg-info
241 %files -n python3-setoolsgui
242 %defattr(644,root,root,755)
243 %{py3_sitedir}/setoolsgui