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: ba6e5ec442108eef481e3a3fbb25141d
10 Patch0: no-Werror.patch
11 URL: https://github.com/SELinuxProject/setools/wiki
14 BuildRequires: libsepol-devel >= 2.7
15 BuildRequires: libsepol-static >= 2.7
16 BuildRequires: python3-Cython >= 0.27
17 BuildRequires: python3-devel >= 1:3.4
18 BuildRequires: python3-setuptools
19 BuildRequires: rpmbuild(macros) >= 1.714
20 BuildRequires: swig-python >= 2.0.12
21 Suggests: policy-sources
22 Requires: python3-setools = %{version}-%{release}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 SETools is a collection of graphical tools, command-line tools, and
27 libraries designed to facilitate SELinux policy analysis.
29 The base package includes the following console tools:
30 - seaudit-report: audit log analysis tool
31 - sechecker: SELinux policy checking tool
32 - secmds command line tools: seinfo, sesearch, findcon, replcon, and
34 - sediff: semantic policy difference tool
36 %description -l pl.UTF-8
37 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
38 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
40 Pakiet podstawowy zawiera narzędzia terminalowe:
41 - seaudit-report - narzędzie do analizy logu audytowego
42 - sechecker - narzędzie do sprawdzania polityk SELinuksa
43 - narzędzia linii poleceń secmds: seinfo, sesearch, findcon, replcon
45 - sediff - narzędzie do znajdywania różnic semantycznych polityk
48 Summary: Policy analysis graphical tools for SELinux
49 Summary(pl.UTF-8): Graficzne narzędzia do analizy polityk SELinuksa
51 Group: Applications/System
52 Requires: %{name} = %{version}-%{release}
53 Requires: python3-setoolsgui = %{version}-%{release}
56 SETools is a collection of graphical tools, command-line tools, and
57 libraries designed to facilitate SELinux policy analysis.
59 This package includes the following graphical tools:
60 - apol: policy analysis tool
62 %description gui -l pl.UTF-8
63 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
64 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
66 Ten pakiet zawiera narzędzia graficzne:
67 - apol - narzędzie do analizy polityk
69 %package -n python3-setools
70 Summary: Python 3 bindings for SELinux policy analysis libraries
71 Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek analizy polityk SELinuksa
72 Group: Libraries/Python
73 Requires: python3-modules >= 1:3.3
74 Requires: python3-networkx >= 1.8
75 Suggests: python3-selinux
77 %description -n python3-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 python3-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 python3-setoolsgui
92 Summary: SETools GUI modules for Python 3
93 Summary(pl.UTF-8): Moduły graficznego interfejsu użytkownika SETools dla Pythona 3
94 Group: Libraries/Python
95 Requires: python3-setools = %{version}-%{release}
96 Requires: python3-PyQt5 >= 5
98 %description -n python3-setoolsgui
99 SETools GUI modules for Python 3.
101 %description -n python3-setoolsgui -l pl.UTF-8
102 Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
109 export SEPOL=%{_libdir}/libsepol.a
114 rm -rf $RPM_BUILD_ROOT
116 export SEPOL=%{_libdir}/libsepol.a
121 rm -rf $RPM_BUILD_ROOT
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/sediff
126 %attr(755,root,root) %{_bindir}/sedta
127 %attr(755,root,root) %{_bindir}/seinfo
128 %attr(755,root,root) %{_bindir}/seinfoflow
129 %attr(755,root,root) %{_bindir}/sesearch
130 %{_mandir}/man1/sediff.1*
131 %{_mandir}/man1/sedta.1*
132 %{_mandir}/man1/seinfo.1*
133 %{_mandir}/man1/seinfoflow.1*
134 %{_mandir}/man1/sesearch.1*
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/apol
139 %{_mandir}/man1/apol.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/perm_map
149 %{py3_sitedir}/setools/__pycache__
150 %{py3_sitedir}/setools-%{version}-py*.egg-info
152 %files -n python3-setoolsgui
153 %defattr(644,root,root,755)
154 %{py3_sitedir}/setoolsgui