]>
Commit | Line | Data |
---|---|---|
4df63b55 JB |
1 | Summary: Policy analysis tools for SELinux |
2 | Summary(pl.UTF-8): Narzędzia do analizy polityk SELinuksa | |
db420033 | 3 | Name: setools |
ffc3e545 | 4 | Version: 4.2.2 |
deffcb0e | 5 | Release: 1 |
4df63b55 JB |
6 | License: GPL v2+ (tools), LGPL v2.1+ (libraries) |
7 | Group: Applications/System | |
ffc3e545 JR |
8 | Source0: https://github.com/SELinuxProject/setools/releases/download/%{version}/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: f78fb10ec1fe189dfd27204549854cfa | |
deffcb0e | 10 | URL: https://github.com/TresysTechnology/setools4/wiki |
fde4ef77 | 11 | BuildRequires: bison |
2f15a047 | 12 | BuildRequires: flex |
deffcb0e JB |
13 | BuildRequires: libsepol-devel >= 2.7 |
14 | BuildRequires: libsepol-static >= 2.7 | |
deffcb0e JB |
15 | BuildRequires: python3-devel >= 1:3.3 |
16 | BuildRequires: python3-setuptools | |
deffcb0e JB |
17 | BuildRequires: rpmbuild(macros) >= 1.714 |
18 | BuildRequires: swig-python >= 2.0.12 | |
4df63b55 | 19 | Suggests: policy-sources |
deffcb0e | 20 | Requires: python3-setools = %{version}-%{release} |
db420033 JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
4df63b55 JB |
24 | SETools is a collection of graphical tools, command-line tools, and |
25 | libraries designed to facilitate SELinux policy analysis. | |
26 | ||
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 | |
31 | indexcon | |
32 | - sediff: semantic policy difference tool | |
db420033 | 33 | |
63b63c72 | 34 | %description -l pl.UTF-8 |
4df63b55 JB |
35 | SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz |
36 | bibliotek mających na celu ułatwienie analizy polityk SELinuksa. | |
37 | ||
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 | |
42 | oraz indexcon | |
43 | - sediff - narzędzie do znajdywania różnic semantycznych polityk | |
44 | ||
45 | %package gui | |
46 | Summary: Policy analysis graphical tools for SELinux | |
47 | Summary(pl.UTF-8): Graficzne narzędzia do analizy polityk SELinuksa | |
48 | License: GPL v2+ | |
49 | Group: Applications/System | |
50 | Requires: %{name} = %{version}-%{release} | |
deffcb0e | 51 | Requires: python3-setoolsgui = %{version}-%{release} |
4df63b55 JB |
52 | |
53 | %description gui | |
54 | SETools is a collection of graphical tools, command-line tools, and | |
55 | libraries designed to facilitate SELinux policy analysis. | |
56 | ||
57 | This package includes the following graphical tools: | |
58 | - apol: policy analysis tool | |
4df63b55 JB |
59 | |
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. | |
63 | ||
64 | Ten pakiet zawiera narzędzia graficzne: | |
65 | - apol - narzędzie do analizy polityk | |
deffcb0e JB |
66 | |
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 | |
76 | ||
77 | %description -n python-setools | |
4df63b55 JB |
78 | SETools is a collection of graphical tools, command-line tools, and |
79 | libraries designed to facilitate SELinux policy analysis. | |
80 | ||
deffcb0e JB |
81 | This package includes Python bindings for SELinux policy analysis |
82 | libraries. | |
4df63b55 | 83 | |
deffcb0e | 84 | %description -n python-setools -l pl.UTF-8 |
4df63b55 JB |
85 | SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz |
86 | bibliotek mających na celu ułatwienie analizy polityk SELinuksa. | |
87 | ||
deffcb0e JB |
88 | Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk |
89 | SELinuksa. | |
4df63b55 | 90 | |
deffcb0e JB |
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 | |
4df63b55 | 97 | |
deffcb0e JB |
98 | %description -n python-setoolsgui |
99 | SETools GUI modules for Python 2. | |
4df63b55 | 100 | |
deffcb0e JB |
101 | %description -n python-setoolsgui -l pl.UTF-8 |
102 | Moduły graficznego interfejsu użytkownika SETools dla Pythona 2. | |
4df63b55 | 103 | |
deffcb0e JB |
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 | |
4df63b55 | 107 | Group: Libraries/Python |
deffcb0e JB |
108 | %if "%{py3_ver}" < "3.4" |
109 | Requires: python3-enum34 | |
110 | %endif | |
111 | Requires: python3-modules >= 1:3.3 | |
112 | Requires: python3-networkx >= 1.8 | |
113 | Suggests: python3-selinux | |
4df63b55 | 114 | |
deffcb0e | 115 | %description -n python3-setools |
4df63b55 JB |
116 | SETools is a collection of graphical tools, command-line tools, and |
117 | libraries designed to facilitate SELinux policy analysis. | |
118 | ||
deffcb0e JB |
119 | This package includes Python bindings for SELinux policy analysis |
120 | libraries. | |
4df63b55 | 121 | |
deffcb0e | 122 | %description -n python3-setools -l pl.UTF-8 |
4df63b55 JB |
123 | SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz |
124 | bibliotek mających na celu ułatwienie analizy polityk SELinuksa. | |
125 | ||
deffcb0e JB |
126 | Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk |
127 | SELinuksa. | |
4df63b55 | 128 | |
deffcb0e JB |
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 | |
4df63b55 | 135 | |
deffcb0e JB |
136 | %description -n python3-setoolsgui |
137 | SETools GUI modules for Python 3. | |
4df63b55 | 138 | |
deffcb0e JB |
139 | %description -n python3-setoolsgui -l pl.UTF-8 |
140 | Moduły graficznego interfejsu użytkownika SETools dla Pythona 3. | |
4d18f116 | 141 | |
db420033 | 142 | %prep |
ffc3e545 | 143 | %setup -q -n %{name} |
db420033 JB |
144 | |
145 | %build | |
68222393 JB |
146 | export SEPOL=%{_libdir}/libsepol.a |
147 | ||
deffcb0e | 148 | %py3_build |
db420033 JB |
149 | |
150 | %install | |
151 | rm -rf $RPM_BUILD_ROOT | |
deffcb0e | 152 | |
68222393 JB |
153 | export SEPOL=%{_libdir}/libsepol.a |
154 | ||
deffcb0e | 155 | %py3_install |
db420033 JB |
156 | |
157 | %clean | |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
db420033 JB |
160 | %files |
161 | %defattr(644,root,root,755) | |
4df63b55 | 162 | %attr(755,root,root) %{_bindir}/sediff |
deffcb0e | 163 | %attr(755,root,root) %{_bindir}/sedta |
4df63b55 | 164 | %attr(755,root,root) %{_bindir}/seinfo |
deffcb0e | 165 | %attr(755,root,root) %{_bindir}/seinfoflow |
4df63b55 | 166 | %attr(755,root,root) %{_bindir}/sesearch |
4df63b55 | 167 | %{_mandir}/man1/sediff.1* |
deffcb0e | 168 | %{_mandir}/man1/sedta.1* |
4df63b55 | 169 | %{_mandir}/man1/seinfo.1* |
deffcb0e | 170 | %{_mandir}/man1/seinfoflow.1* |
4df63b55 | 171 | %{_mandir}/man1/sesearch.1* |
4df63b55 JB |
172 | |
173 | %files gui | |
174 | %defattr(644,root,root,755) | |
175 | %attr(755,root,root) %{_bindir}/apol | |
4df63b55 | 176 | %{_mandir}/man1/apol.1* |
4df63b55 | 177 | |
deffcb0e | 178 | %files -n python3-setools |
4df63b55 | 179 | %defattr(644,root,root,755) |
deffcb0e JB |
180 | %doc COPYING ChangeLog KNOWN-BUGS README.md |
181 | %dir %{py3_sitedir}/setools | |
182 | %{py3_sitedir}/setools/diff | |
ffc3e545 | 183 | %attr(755,root,root) %{py3_sitedir}/setools/policyrep.cpython-*.so |
deffcb0e JB |
184 | %{py3_sitedir}/setools/*.py |
185 | %{py3_sitedir}/setools/perm_map | |
186 | %{py3_sitedir}/setools/__pycache__ | |
187 | %{py3_sitedir}/setools-%{version}-py*.egg-info | |
188 | ||
189 | %files -n python3-setoolsgui | |
190 | %defattr(644,root,root,755) | |
191 | %{py3_sitedir}/setoolsgui |