]> git.pld-linux.org Git - packages/setools.git/blob - setools.spec
8ef2e3b208591e566ad7e72d20032531496f58f8
[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/SELinuxProject/setools/wiki
12 BuildRequires:  bison
13 BuildRequires:  flex
14 BuildRequires:  libsepol-devel >= 2.7
15 BuildRequires:  libsepol-static >= 2.7
16 BuildRequires:  python3-Cython >= 0.27
17 BuildRequires:  python3-devel >= 1:3.4
18 BuildRequires:  python3-setuptools
19 BuildRequires:  rpmbuild(macros) >= 1.714
20 BuildRequires:  swig-python >= 2.0.12
21 Suggests:       policy-sources
22 Requires:       python3-setools = %{version}-%{release}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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
35
36 %description -l pl.UTF-8
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}
53 Requires:       python3-setoolsgui = %{version}-%{release}
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
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
68
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
72 Group:          Libraries/Python
73 Requires:       python3-modules >= 1:3.3
74 Requires:       python3-networkx >= 1.8
75 Suggests:       python3-selinux
76
77 %description -n python3-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 python3-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 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
97
98 %description -n python3-setoolsgui
99 SETools GUI modules for Python 3.
100
101 %description -n python3-setoolsgui -l pl.UTF-8
102 Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
103
104 %prep
105 %setup -q -n %{name}
106 %patch0 -p1
107
108 %build
109 export SEPOL=%{_libdir}/libsepol.a
110
111 %py3_build
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115
116 export SEPOL=%{_libdir}/libsepol.a
117
118 %py3_install
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/sediff
126 %attr(755,root,root) %{_bindir}/sedta
127 %attr(755,root,root) %{_bindir}/seinfo
128 %attr(755,root,root) %{_bindir}/seinfoflow
129 %attr(755,root,root) %{_bindir}/sesearch
130 %{_mandir}/man1/sediff.1*
131 %{_mandir}/man1/sedta.1*
132 %{_mandir}/man1/seinfo.1*
133 %{_mandir}/man1/seinfoflow.1*
134 %{_mandir}/man1/sesearch.1*
135
136 %files gui
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/apol
139 %{_mandir}/man1/apol.1*
140
141 %files -n python3-setools
142 %defattr(644,root,root,755)
143 %doc COPYING ChangeLog KNOWN-BUGS README.md
144 %dir %{py3_sitedir}/setools
145 %{py3_sitedir}/setools/diff
146 %attr(755,root,root) %{py3_sitedir}/setools/policyrep.cpython-*.so
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
This page took 0.02823 seconds and 3 git commands to generate.