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