]>
Commit | Line | Data |
---|---|---|
b1236642 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # HTML documentation | |
4 | # | |
5 | Summary: SELinux Common Intermediate Language (CIL) Compiler | |
6 | Summary(pl.UTF-8): Kompilator języka pośredniego (CIL) SELinuksa | |
7 | Name: secilc | |
9f619031 | 8 | Version: 3.6 |
ea7daed3 | 9 | Release: 1 |
b1236642 JB |
10 | License: BSD |
11 | Group: Applications | |
12 | #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases | |
9f619031 JP |
13 | Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 6df9570b8ee8d0bda251fdefd53be55e | |
b1236642 JB |
15 | URL: https://github.com/SELinuxProject/cil/wiki |
16 | BuildRequires: gcc >= 6:4.5.1 | |
9f619031 | 17 | BuildRequires: libsepol-devel >= 3.6 |
249147f1 | 18 | %{?with_doc:BuildRequires: pandoc >= 2.0} |
b1236642 | 19 | BuildRequires: xmlto |
9f619031 | 20 | Requires: libsepol >= 3.6 |
b1236642 JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
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. | |
26 | ||
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. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | ||
35 | %build | |
36 | CFLAGS="%{rpmcflags}" \ | |
37 | CPPFLAGS="%{rpmcppflags}" \ | |
38 | %{__make} \ | |
39 | CC="%{__cc}" \ | |
40 | LIBDIR=%{_libdir} | |
41 | ||
42 | %if %{with doc} | |
43 | %{__make} -C docs html | |
44 | %endif | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
9f619031 | 57 | %doc LICENSE README %{?with_doc:docs/html} |
14f0a79e | 58 | %attr(755,root,root) %{_bindir}/secil2conf |
9f619031 | 59 | %attr(755,root,root) %{_bindir}/secil2tree |
b1236642 | 60 | %attr(755,root,root) %{_bindir}/secilc |
14f0a79e | 61 | %{_mandir}/man8/secil2conf.8* |
9f619031 | 62 | %{_mandir}/man8/secil2tree.8* |
b1236642 | 63 | %{_mandir}/man8/secilc.8* |