]> git.pld-linux.org Git - packages/setools.git/blob - setools.spec
- switched to setools 4 (withdrawn elements left in setools3.spec), updated to 4.1.1
[packages/setools.git] / setools.spec
1 #
2 # Conditional build:
3 %bcond_without  python2 # Python 2.x modules
4 %bcond_without  python3 # Python 3.x modules
5 #
6 Summary:        Policy analysis tools for SELinux
7 Summary(pl.UTF-8):      Narzędzia do analizy polityk SELinuksa
8 Name:           setools
9 Version:        4.1.1
10 Release:        1
11 License:        GPL v2+ (tools), LGPL v2.1+ (libraries)
12 Group:          Applications/System
13 #Source0Download: https://github.com/TresysTechnology/setools/releases
14 Source0:        https://github.com/TresysTechnology/setools/archive/%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5:  54cf5c0ca2aa4ef7c6ac153981af34cd
16 URL:            https://github.com/TresysTechnology/setools4/wiki
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  libsepol-devel >= 2.7
20 BuildRequires:  libsepol-static >= 2.7
21 %if %{with python2}
22 BuildRequires:  python-devel >= 1:2.7
23 BuildRequires:  python-setuptools
24 %endif
25 %if %{with python3}
26 BuildRequires:  python3-devel >= 1:3.3
27 BuildRequires:  python3-setuptools
28 %endif
29 BuildRequires:  rpmbuild(macros) >= 1.714
30 BuildRequires:  swig-python >= 2.0.12
31 Suggests:       policy-sources
32 %if %{with python2}
33 Requires:       python-setools = %{version}-%{release}
34 %else
35 Requires:       python3-setools = %{version}-%{release}
36 %endif
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 SETools is a collection of graphical tools, command-line tools, and
41 libraries designed to facilitate SELinux policy analysis.
42
43 The base package includes the following console tools:
44 - seaudit-report: audit log analysis tool
45 - sechecker: SELinux policy checking tool
46 - secmds command line tools: seinfo, sesearch, findcon, replcon, and
47   indexcon
48 - sediff: semantic policy difference tool
49
50 %description -l pl.UTF-8
51 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
52 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
53
54 Pakiet podstawowy zawiera narzędzia terminalowe:
55 - seaudit-report - narzędzie do analizy logu audytowego
56 - sechecker - narzędzie do sprawdzania polityk SELinuksa
57 - narzędzia linii poleceń secmds: seinfo, sesearch, findcon, replcon
58   oraz indexcon
59 - sediff - narzędzie do znajdywania różnic semantycznych polityk
60
61 %package gui
62 Summary: Policy analysis graphical tools for SELinux
63 Summary(pl.UTF-8):      Graficzne narzędzia do analizy polityk SELinuksa
64 License:        GPL v2+
65 Group:          Applications/System
66 Requires:       %{name} = %{version}-%{release}
67 %if %{with python2}
68 Requires:       python-setoolsgui = %{version}-%{release}
69 %else
70 Requires:       python3-setoolsgui = %{version}-%{release}
71 %endif
72
73 %description gui
74 SETools is a collection of graphical tools, command-line tools, and
75 libraries designed to facilitate SELinux policy analysis.
76
77 This package includes the following graphical tools:
78 - apol: policy analysis tool
79
80 %description gui -l pl.UTF-8
81 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
82 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
83
84 Ten pakiet zawiera narzędzia graficzne:
85 - apol - narzędzie do analizy polityk
86
87 %package -n python-setools
88 Summary:        Python 2 bindings for SELinux policy analysis libraries
89 Summary(pl.UTF-8):      Wiązania Pythona 2 do bibliotek analizy polityk SELinuksa
90 License:        LGPL v2.1+ (core modules), GPL v2+ (seinfo and sesearch)
91 Group:          Libraries/Python
92 Requires:       python-enum34
93 Requires:       python-modules >= 1:2.7
94 Requires:       python-networkx >= 1.8
95 Suggests:       python-selinux
96
97 %description -n python-setools
98 SETools is a collection of graphical tools, command-line tools, and
99 libraries designed to facilitate SELinux policy analysis.
100
101 This package includes Python bindings for SELinux policy analysis
102 libraries.
103
104 %description -n python-setools -l pl.UTF-8
105 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
106 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
107
108 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
109 SELinuksa.
110
111 %package -n python-setoolsgui
112 Summary:        SETools GUI modules for Python 2
113 Summary(pl.UTF-8):      Moduły graficznego interfejsu użytkownika SETools dla Pythona 2
114 Group:          Libraries/Python
115 Requires:       python-setools = %{version}-%{release}
116 Requires:       python-PyQt5 >= 5
117
118 %description -n python-setoolsgui
119 SETools GUI modules for Python 2.
120
121 %description -n python-setoolsgui -l pl.UTF-8
122 Moduły graficznego interfejsu użytkownika SETools dla Pythona 2.
123
124 %package -n python3-setools
125 Summary:        Python 3 bindings for SELinux policy analysis libraries
126 Summary(pl.UTF-8):      Wiązania Pythona 3 do bibliotek analizy polityk SELinuksa
127 Group:          Libraries/Python
128 %if "%{py3_ver}" < "3.4"
129 Requires:       python3-enum34
130 %endif
131 Requires:       python3-modules >= 1:3.3
132 Requires:       python3-networkx >= 1.8
133 Suggests:       python3-selinux
134
135 %description -n python3-setools
136 SETools is a collection of graphical tools, command-line tools, and
137 libraries designed to facilitate SELinux policy analysis.
138
139 This package includes Python bindings for SELinux policy analysis
140 libraries.
141
142 %description -n python3-setools -l pl.UTF-8
143 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
144 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
145
146 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
147 SELinuksa.
148
149 %package -n python3-setoolsgui
150 Summary:        SETools GUI modules for Python 3
151 Summary(pl.UTF-8):      Moduły graficznego interfejsu użytkownika SETools dla Pythona 3
152 Group:          Libraries/Python
153 Requires:       python3-setools = %{version}-%{release}
154 Requires:       python3-PyQt5 >= 5
155
156 %description -n python3-setoolsgui
157 SETools GUI modules for Python 3.
158
159 %description -n python3-setoolsgui -l pl.UTF-8
160 Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
161
162 %prep
163 %setup -q
164
165 %build
166 %if %{with python2}
167 %py_build
168 %endif
169
170 %if %{with python3}
171 %py3_build
172 %endif
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176
177 %if %{with python3}
178 %py3_install
179 %endif
180
181 %if %{with python2}
182 %py_install
183
184 %py_postclean
185 %endif
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %files
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_bindir}/sediff
193 %attr(755,root,root) %{_bindir}/sedta
194 %attr(755,root,root) %{_bindir}/seinfo
195 %attr(755,root,root) %{_bindir}/seinfoflow
196 %attr(755,root,root) %{_bindir}/sesearch
197 %{_mandir}/man1/sediff.1*
198 %{_mandir}/man1/sedta.1*
199 %{_mandir}/man1/seinfo.1*
200 %{_mandir}/man1/seinfoflow.1*
201 %{_mandir}/man1/sesearch.1*
202
203 %files gui
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_bindir}/apol
206 %{_mandir}/man1/apol.1*
207
208 %if %{with python2}
209 %files -n python-setools
210 %defattr(644,root,root,755)
211 %doc COPYING ChangeLog KNOWN-BUGS README.md
212 %dir %{py_sitedir}/setools
213 %{py_sitedir}/setools/diff
214 %dir %{py_sitedir}/setools/policyrep
215 %attr(755,root,root) %{py_sitedir}/setools/policyrep/_qpol.so
216 %{py_sitedir}/setools/policyrep/*.py[co]
217 %{py_sitedir}/setools/*.py[co]
218 %{py_sitedir}/setools/perm_map
219 %{py_sitedir}/setools-%{version}-py*.egg-info
220
221 %files -n python-setoolsgui
222 %defattr(644,root,root,755)
223 %{py_sitedir}/setoolsgui
224 %endif
225
226 %if %{with python3}
227 %files -n python3-setools
228 %defattr(644,root,root,755)
229 %doc COPYING ChangeLog KNOWN-BUGS README.md
230 %dir %{py3_sitedir}/setools
231 %{py3_sitedir}/setools/diff
232 %dir %{py3_sitedir}/setools/policyrep
233 %attr(755,root,root) %{py3_sitedir}/setools/policyrep/_qpol.cpython-*.so
234 %{py3_sitedir}/setools/policyrep/*.py
235 %{py3_sitedir}/setools/policyrep/__pycache__
236 %{py3_sitedir}/setools/*.py
237 %{py3_sitedir}/setools/perm_map
238 %{py3_sitedir}/setools/__pycache__
239 %{py3_sitedir}/setools-%{version}-py*.egg-info
240
241 %files -n python3-setoolsgui
242 %defattr(644,root,root,755)
243 %{py3_sitedir}/setoolsgui
244 %endif
This page took 0.081723 seconds and 4 git commands to generate.