3 %bcond_without doc # HTML documentation
5 %ifnarch %{ix86} %{x8664}
9 Summary: SELinux Common Intermediate Language (CIL) Compiler
10 Summary(pl.UTF-8): Kompilator języka pośredniego (CIL) SELinuksa
16 #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
17 Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/%{name}-%{version}.tar.gz
18 # Source0-md5: 301a4e477bc7214be16558f7c2dcbcff
19 URL: https://github.com/SELinuxProject/cil/wiki
20 BuildRequires: gcc >= 6:4.5.1
21 BuildRequires: libsepol-devel >= 2.7
22 %{?with_doc:BuildRequires: pandoc}
24 Requires: libsepol >= 2.7
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The SELinux CIL Compiler is a compiler that converts the CIL language
29 as described on the CIL design wiki into a kernel binary policy file.
31 %description -l pl.UTF-8
32 SELinux CIL Compiler to kompilator przekształcający język CIL (Common
33 Intermediate Language - wspólny język pośredni), zgodny z opisem na
34 stronie wiki, do postaci binarnego pliku polityki jądra.
40 CFLAGS="%{rpmcflags}" \
41 CPPFLAGS="%{rpmcppflags}" \
47 %{__make} -C docs html
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc COPYING README %{?with_doc:docs/html}
62 %attr(755,root,root) %{_bindir}/secil2conf
63 %attr(755,root,root) %{_bindir}/secilc
64 %{_mandir}/man8/secil2conf.8*
65 %{_mandir}/man8/secilc.8*