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: ec0ba9630dd6800dc4313fe0e5357253
10 URL: https://github.com/SELinuxProject/setools/wiki
13 BuildRequires: libsepol-devel >= 2.7
14 BuildRequires: libsepol-static >= 2.7
15 BuildRequires: python3-Cython >= 0.27
16 BuildRequires: python3-devel >= 1:3.4
17 BuildRequires: python3-setuptools
18 BuildRequires: rpmbuild(macros) >= 1.714
19 BuildRequires: swig-python >= 2.0.12
20 Suggests: policy-sources
21 Requires: python3-setools = %{version}-%{release}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 SETools is a collection of graphical tools, command-line tools, and
26 libraries designed to facilitate SELinux policy analysis.
28 The base package includes the following console tools:
29 - seaudit-report: audit log analysis tool
30 - sechecker: SELinux policy checking tool
31 - secmds command line tools: seinfo, sesearch, findcon, replcon, and
33 - sediff: semantic policy difference tool
35 %description -l pl.UTF-8
36 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
37 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
39 Pakiet podstawowy zawiera narzędzia terminalowe:
40 - seaudit-report - narzędzie do analizy logu audytowego
41 - sechecker - narzędzie do sprawdzania polityk SELinuksa
42 - narzędzia linii poleceń secmds: seinfo, sesearch, findcon, replcon
44 - sediff - narzędzie do znajdywania różnic semantycznych polityk
47 Summary: Policy analysis graphical tools for SELinux
48 Summary(pl.UTF-8): Graficzne narzędzia do analizy polityk SELinuksa
50 Group: Applications/System
51 Requires: %{name} = %{version}-%{release}
52 Requires: python3-setoolsgui = %{version}-%{release}
55 SETools is a collection of graphical tools, command-line tools, and
56 libraries designed to facilitate SELinux policy analysis.
58 This package includes the following graphical tools:
59 - apol: policy analysis tool
61 %description gui -l pl.UTF-8
62 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
63 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
65 Ten pakiet zawiera narzędzia graficzne:
66 - apol - narzędzie do analizy polityk
68 %package -n python3-setools
69 Summary: Python 3 bindings for SELinux policy analysis libraries
70 Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek analizy polityk SELinuksa
71 Group: Libraries/Python
72 Requires: python3-modules >= 1:3.3
73 Requires: python3-networkx >= 1.8
74 Suggests: python3-selinux
76 %description -n python3-setools
77 SETools is a collection of graphical tools, command-line tools, and
78 libraries designed to facilitate SELinux policy analysis.
80 This package includes Python bindings for SELinux policy analysis
83 %description -n python3-setools -l pl.UTF-8
84 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
85 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
87 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
90 %package -n python3-setoolsgui
91 Summary: SETools GUI modules for Python 3
92 Summary(pl.UTF-8): Moduły graficznego interfejsu użytkownika SETools dla Pythona 3
93 Group: Libraries/Python
94 Requires: python3-setools = %{version}-%{release}
95 Requires: python3-PyQt5 >= 5
97 %description -n python3-setoolsgui
98 SETools GUI modules for Python 3.
100 %description -n python3-setoolsgui -l pl.UTF-8
101 Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
107 export SEPOL=%{_libdir}/libsepol.a
112 rm -rf $RPM_BUILD_ROOT
114 export SEPOL=%{_libdir}/libsepol.a
119 rm -rf $RPM_BUILD_ROOT
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_bindir}/sediff
124 %attr(755,root,root) %{_bindir}/sedta
125 %attr(755,root,root) %{_bindir}/seinfo
126 %attr(755,root,root) %{_bindir}/seinfoflow
127 %attr(755,root,root) %{_bindir}/sesearch
128 %{_mandir}/man1/sediff.1*
129 %{_mandir}/man1/sedta.1*
130 %{_mandir}/man1/seinfo.1*
131 %{_mandir}/man1/seinfoflow.1*
132 %{_mandir}/man1/sesearch.1*
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/apol
137 %attr(755,root,root) %{_bindir}/sechecker
138 %{_mandir}/man1/apol.1*
139 %{_mandir}/man1/sechecker.1*
141 %files -n python3-setools
142 %defattr(644,root,root,755)
143 %doc COPYING ChangeLog KNOWN-BUGS README.md
144 %dir %{py3_sitedir}/setools
145 %{py3_sitedir}/setools/diff
146 %attr(755,root,root) %{py3_sitedir}/setools/policyrep.cpython-*.so
147 %{py3_sitedir}/setools/*.py
148 %{py3_sitedir}/setools/checker
149 %{py3_sitedir}/setools/perm_map
150 %{py3_sitedir}/setools/policyrep.pyi
151 %{py3_sitedir}/setools/py.typed
152 %{py3_sitedir}/setools/__pycache__
153 %{py3_sitedir}/setools-%{version}-py*.egg-info
155 %files -n python3-setoolsgui
156 %defattr(644,root,root,755)
157 %{py3_sitedir}/setoolsgui