]> git.pld-linux.org Git - packages/setools.git/blob - setools.spec
3badb2bfe2290cec9c2b54cbf31a4d6b82540870
[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.3.0
5 Release:        7
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:  ba6e5ec442108eef481e3a3fbb25141d
10 Patch0:         no-Werror.patch
11 URL:            https://github.com/TresysTechnology/setools4/wiki
12 BuildRequires:  bison
13 BuildRequires:  flex
14 BuildRequires:  libsepol-devel >= 2.7
15 BuildRequires:  libsepol-static >= 2.7
16 BuildRequires:  python3-devel >= 1:3.3
17 BuildRequires:  python3-setuptools
18 BuildRequires:  rpmbuild(macros) >= 1.714
19 BuildRequires:  swig-python >= 2.0.12
20 Suggests:       policy-sources
21 Requires:       python3-setools = %{version}-%{release}
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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
34
35 %description -l pl.UTF-8
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}
52 Requires:       python3-setoolsgui = %{version}-%{release}
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
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
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
79 SETools is a collection of graphical tools, command-line tools, and
80 libraries designed to facilitate SELinux policy analysis.
81
82 This package includes Python bindings for SELinux policy analysis
83 libraries.
84
85 %description -n python-setools -l pl.UTF-8
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
89 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
90 SELinuksa.
91
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
98
99 %description -n python-setoolsgui
100 SETools GUI modules for Python 2.
101
102 %description -n python-setoolsgui -l pl.UTF-8
103 Moduły graficznego interfejsu użytkownika SETools dla Pythona 2.
104
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
108 Group:          Libraries/Python
109 Requires:       python3-modules >= 1:3.3
110 Requires:       python3-networkx >= 1.8
111 Suggests:       python3-selinux
112
113 %description -n python3-setools
114 SETools is a collection of graphical tools, command-line tools, and
115 libraries designed to facilitate SELinux policy analysis.
116
117 This package includes Python bindings for SELinux policy analysis
118 libraries.
119
120 %description -n python3-setools -l pl.UTF-8
121 SETools to zbiór narzędzi graficznych, narzędzi linii poleceń oraz
122 bibliotek mających na celu ułatwienie analizy polityk SELinuksa.
123
124 Ten pakiet zawiera wiązania Pythona do bibliotek analizy polityk
125 SELinuksa.
126
127 %package -n python3-setoolsgui
128 Summary:        SETools GUI modules for Python 3
129 Summary(pl.UTF-8):      Moduły graficznego interfejsu użytkownika SETools dla Pythona 3
130 Group:          Libraries/Python
131 Requires:       python3-setools = %{version}-%{release}
132 Requires:       python3-PyQt5 >= 5
133
134 %description -n python3-setoolsgui
135 SETools GUI modules for Python 3.
136
137 %description -n python3-setoolsgui -l pl.UTF-8
138 Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
139
140 %prep
141 %setup -q -n %{name}
142 %patch0 -p1
143
144 %build
145 export SEPOL=%{_libdir}/libsepol.a
146
147 %py3_build
148
149 %install
150 rm -rf $RPM_BUILD_ROOT
151
152 export SEPOL=%{_libdir}/libsepol.a
153
154 %py3_install
155
156 %clean
157 rm -rf $RPM_BUILD_ROOT
158
159 %files
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/sediff
162 %attr(755,root,root) %{_bindir}/sedta
163 %attr(755,root,root) %{_bindir}/seinfo
164 %attr(755,root,root) %{_bindir}/seinfoflow
165 %attr(755,root,root) %{_bindir}/sesearch
166 %{_mandir}/man1/sediff.1*
167 %{_mandir}/man1/sedta.1*
168 %{_mandir}/man1/seinfo.1*
169 %{_mandir}/man1/seinfoflow.1*
170 %{_mandir}/man1/sesearch.1*
171
172 %files gui
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_bindir}/apol
175 %{_mandir}/man1/apol.1*
176
177 %files -n python3-setools
178 %defattr(644,root,root,755)
179 %doc COPYING ChangeLog KNOWN-BUGS README.md
180 %dir %{py3_sitedir}/setools
181 %{py3_sitedir}/setools/diff
182 %attr(755,root,root) %{py3_sitedir}/setools/policyrep.cpython-*.so
183 %{py3_sitedir}/setools/*.py
184 %{py3_sitedir}/setools/perm_map
185 %{py3_sitedir}/setools/__pycache__
186 %{py3_sitedir}/setools-%{version}-py*.egg-info
187
188 %files -n python3-setoolsgui
189 %defattr(644,root,root,755)
190 %{py3_sitedir}/setoolsgui
This page took 0.155248 seconds and 2 git commands to generate.