]>
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 |
8614c0a9 | 4 | Version: 4.3.0 |
89be68b6 | 5 | Release: 7 |
4df63b55 JB |
6 | License: GPL v2+ (tools), LGPL v2.1+ (libraries) |
7 | Group: Applications/System | |
ffc3e545 | 8 | Source0: https://github.com/SELinuxProject/setools/releases/download/%{version}/%{name}-%{version}.tar.bz2 |
8614c0a9 | 9 | # Source0-md5: ba6e5ec442108eef481e3a3fbb25141d |
e904bba1 | 10 | Patch0: no-Werror.patch |
b2838009 | 11 | URL: https://github.com/SELinuxProject/setools/wiki |
fde4ef77 | 12 | BuildRequires: bison |
2f15a047 | 13 | BuildRequires: flex |
deffcb0e JB |
14 | BuildRequires: libsepol-devel >= 2.7 |
15 | BuildRequires: libsepol-static >= 2.7 | |
20c21918 | 16 | BuildRequires: python3-Cython >= 0.27 |
315a487c | 17 | BuildRequires: python3-devel >= 1:3.4 |
deffcb0e | 18 | BuildRequires: python3-setuptools |
deffcb0e JB |
19 | BuildRequires: rpmbuild(macros) >= 1.714 |
20 | BuildRequires: swig-python >= 2.0.12 | |
4df63b55 | 21 | Suggests: policy-sources |
deffcb0e | 22 | Requires: python3-setools = %{version}-%{release} |
db420033 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
4df63b55 JB |
26 | SETools is a collection of graphical tools, command-line tools, and |
27 | libraries designed to facilitate SELinux policy analysis. | |
28 | ||
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 | |
33 | indexcon | |
34 | - sediff: semantic policy difference tool | |
db420033 | 35 | |
63b63c72 | 36 | %description -l pl.UTF-8 |
4df63b55 JB |
37 | SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz |
38 | bibliotek mających na celu ułatwienie analizy polityk SELinuksa. | |
39 | ||
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 | |
44 | oraz indexcon | |
45 | - sediff - narzędzie do znajdywania różnic semantycznych polityk | |
46 | ||
47 | %package gui | |
48 | Summary: Policy analysis graphical tools for SELinux | |
49 | Summary(pl.UTF-8): Graficzne narzędzia do analizy polityk SELinuksa | |
50 | License: GPL v2+ | |
51 | Group: Applications/System | |
52 | Requires: %{name} = %{version}-%{release} | |
deffcb0e | 53 | Requires: python3-setoolsgui = %{version}-%{release} |
4df63b55 JB |
54 | |
55 | %description gui | |
56 | SETools is a collection of graphical tools, command-line tools, and | |
57 | libraries designed to facilitate SELinux policy analysis. | |
58 | ||
59 | This package includes the following graphical tools: | |
60 | - apol: policy analysis tool | |
4df63b55 JB |
61 | |
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. | |
65 | ||
66 | Ten pakiet zawiera narzędzia graficzne: | |
67 | - apol - narzędzie do analizy polityk | |
deffcb0e | 68 | |
deffcb0e JB |
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 | |
4df63b55 | 72 | Group: Libraries/Python |
deffcb0e JB |
73 | Requires: python3-modules >= 1:3.3 |
74 | Requires: python3-networkx >= 1.8 | |
75 | Suggests: python3-selinux | |
4df63b55 | 76 | |
deffcb0e | 77 | %description -n python3-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 python3-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 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 | |
4df63b55 | 97 | |
deffcb0e JB |
98 | %description -n python3-setoolsgui |
99 | SETools GUI modules for Python 3. | |
4df63b55 | 100 | |
deffcb0e JB |
101 | %description -n python3-setoolsgui -l pl.UTF-8 |
102 | Moduły graficznego interfejsu użytkownika SETools dla Pythona 3. | |
4d18f116 | 103 | |
db420033 | 104 | %prep |
ffc3e545 | 105 | %setup -q -n %{name} |
e904bba1 | 106 | %patch0 -p1 |
db420033 JB |
107 | |
108 | %build | |
68222393 JB |
109 | export SEPOL=%{_libdir}/libsepol.a |
110 | ||
deffcb0e | 111 | %py3_build |
db420033 JB |
112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
deffcb0e | 115 | |
68222393 JB |
116 | export SEPOL=%{_libdir}/libsepol.a |
117 | ||
deffcb0e | 118 | %py3_install |
db420033 JB |
119 | |
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
db420033 JB |
123 | %files |
124 | %defattr(644,root,root,755) | |
4df63b55 | 125 | %attr(755,root,root) %{_bindir}/sediff |
deffcb0e | 126 | %attr(755,root,root) %{_bindir}/sedta |
4df63b55 | 127 | %attr(755,root,root) %{_bindir}/seinfo |
deffcb0e | 128 | %attr(755,root,root) %{_bindir}/seinfoflow |
4df63b55 | 129 | %attr(755,root,root) %{_bindir}/sesearch |
4df63b55 | 130 | %{_mandir}/man1/sediff.1* |
deffcb0e | 131 | %{_mandir}/man1/sedta.1* |
4df63b55 | 132 | %{_mandir}/man1/seinfo.1* |
deffcb0e | 133 | %{_mandir}/man1/seinfoflow.1* |
4df63b55 | 134 | %{_mandir}/man1/sesearch.1* |
4df63b55 JB |
135 | |
136 | %files gui | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_bindir}/apol | |
4df63b55 | 139 | %{_mandir}/man1/apol.1* |
4df63b55 | 140 | |
deffcb0e | 141 | %files -n python3-setools |
4df63b55 | 142 | %defattr(644,root,root,755) |
deffcb0e JB |
143 | %doc COPYING ChangeLog KNOWN-BUGS README.md |
144 | %dir %{py3_sitedir}/setools | |
145 | %{py3_sitedir}/setools/diff | |
ffc3e545 | 146 | %attr(755,root,root) %{py3_sitedir}/setools/policyrep.cpython-*.so |
deffcb0e JB |
147 | %{py3_sitedir}/setools/*.py |
148 | %{py3_sitedir}/setools/perm_map | |
149 | %{py3_sitedir}/setools/__pycache__ | |
150 | %{py3_sitedir}/setools-%{version}-py*.egg-info | |
151 | ||
152 | %files -n python3-setoolsgui | |
153 | %defattr(644,root,root,755) | |
154 | %{py3_sitedir}/setoolsgui |