]> git.pld-linux.org Git - packages/setools.git/blob - setools.spec
- up to 4.2.2
[packages/setools.git] / setools.spec
1 Summary:        Policy analysis tools for SELinux
2 Summary(pl.UTF-8):      Narzędzia do analizy polityk SELinuksa
3 Name:           setools
4 Version:        4.2.2
5 Release:        1
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:  f78fb10ec1fe189dfd27204549854cfa
10 URL:            https://github.com/TresysTechnology/setools4/wiki
11 BuildRequires:  bison
12 BuildRequires:  flex
13 BuildRequires:  libsepol-devel >= 2.7
14 BuildRequires:  libsepol-static >= 2.7
15 BuildRequires:  python3-devel >= 1:3.3
16 BuildRequires:  python3-setuptools
17 BuildRequires:  rpmbuild(macros) >= 1.714
18 BuildRequires:  swig-python >= 2.0.12
19 Suggests:       policy-sources
20 Requires:       python3-setools = %{version}-%{release}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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
33
34 %description -l pl.UTF-8
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}
51 Requires:       python3-setoolsgui = %{version}-%{release}
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
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
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
78 SETools is a collection of graphical tools, command-line tools, and
79 libraries designed to facilitate SELinux policy analysis.
80
81 This package includes Python bindings for SELinux policy analysis
82 libraries.
83
84 %description -n python-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.
87
88 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
89 SELinuksa.
90
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
97
98 %description -n python-setoolsgui
99 SETools GUI modules for Python 2.
100
101 %description -n python-setoolsgui -l pl.UTF-8
102 Moduły graficznego interfejsu użytkownika SETools dla Pythona 2.
103
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
107 Group:          Libraries/Python
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
114
115 %description -n python3-setools
116 SETools is a collection of graphical tools, command-line tools, and
117 libraries designed to facilitate SELinux policy analysis.
118
119 This package includes Python bindings for SELinux policy analysis
120 libraries.
121
122 %description -n python3-setools -l pl.UTF-8
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
126 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
127 SELinuksa.
128
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
135
136 %description -n python3-setoolsgui
137 SETools GUI modules for Python 3.
138
139 %description -n python3-setoolsgui -l pl.UTF-8
140 Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
141
142 %prep
143 %setup -q -n %{name}
144
145 %build
146 export SEPOL=%{_libdir}/libsepol.a
147
148 %py3_build
149
150 %install
151 rm -rf $RPM_BUILD_ROOT
152
153 export SEPOL=%{_libdir}/libsepol.a
154
155 %py3_install
156
157 %clean
158 rm -rf $RPM_BUILD_ROOT
159
160 %files
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_bindir}/sediff
163 %attr(755,root,root) %{_bindir}/sedta
164 %attr(755,root,root) %{_bindir}/seinfo
165 %attr(755,root,root) %{_bindir}/seinfoflow
166 %attr(755,root,root) %{_bindir}/sesearch
167 %{_mandir}/man1/sediff.1*
168 %{_mandir}/man1/sedta.1*
169 %{_mandir}/man1/seinfo.1*
170 %{_mandir}/man1/seinfoflow.1*
171 %{_mandir}/man1/sesearch.1*
172
173 %files gui
174 %defattr(644,root,root,755)
175 %attr(755,root,root) %{_bindir}/apol
176 %{_mandir}/man1/apol.1*
177
178 %files -n python3-setools
179 %defattr(644,root,root,755)
180 %doc COPYING ChangeLog KNOWN-BUGS README.md
181 %dir %{py3_sitedir}/setools
182 %{py3_sitedir}/setools/diff
183 %attr(755,root,root) %{py3_sitedir}/setools/policyrep.cpython-*.so
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
This page took 0.066395 seconds and 3 git commands to generate.