3 %bcond_without doc # HTML documentation
5 Summary: SELinux Common Intermediate Language (CIL) Compiler
6 Summary(pl.UTF-8): Kompilator języka pośredniego (CIL) SELinuksa
12 #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
13 Source0: https://github.com/SELinuxProject/selinux/releases/download/20200710/%{name}-%{version}.tar.gz
14 # Source0-md5: f9743e405a8de331c249b723c09c6c3f
15 URL: https://github.com/SELinuxProject/cil/wiki
16 BuildRequires: gcc >= 6:4.5.1
17 BuildRequires: libsepol-devel >= 3.1
18 %{?with_doc:BuildRequires: pandoc}
20 Requires: libsepol >= 3.1
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The SELinux CIL Compiler is a compiler that converts the CIL language
25 as described on the CIL design wiki into a kernel binary policy file.
27 %description -l pl.UTF-8
28 SELinux CIL Compiler to kompilator przekształcający język CIL (Common
29 Intermediate Language - wspólny język pośredni), zgodny z opisem na
30 stronie wiki, do postaci binarnego pliku polityki jądra.
36 CFLAGS="%{rpmcflags}" \
37 CPPFLAGS="%{rpmcppflags}" \
43 %{__make} -C docs html
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc COPYING README %{?with_doc:docs/html}
58 %attr(755,root,root) %{_bindir}/secil2conf
59 %attr(755,root,root) %{_bindir}/secilc
60 %{_mandir}/man8/secil2conf.8*
61 %{_mandir}/man8/secilc.8*