]> git.pld-linux.org Git - packages/secilc.git/blame - secilc.spec
- updated pandoc version (for --syntax-definition option)
[packages/secilc.git] / secilc.spec
CommitLineData
b1236642
JB
1#
2# Conditional build:
3%bcond_without doc # HTML documentation
4#
5Summary: SELinux Common Intermediate Language (CIL) Compiler
6Summary(pl.UTF-8): Kompilator języka pośredniego (CIL) SELinuksa
7Name: secilc
9f619031 8Version: 3.6
ea7daed3 9Release: 1
b1236642
JB
10License: BSD
11Group: Applications
12#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
9f619031
JP
13Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
14# Source0-md5: 6df9570b8ee8d0bda251fdefd53be55e
b1236642
JB
15URL: https://github.com/SELinuxProject/cil/wiki
16BuildRequires: gcc >= 6:4.5.1
9f619031 17BuildRequires: libsepol-devel >= 3.6
249147f1 18%{?with_doc:BuildRequires: pandoc >= 2.0}
b1236642 19BuildRequires: xmlto
9f619031 20Requires: libsepol >= 3.6
b1236642
JB
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24The SELinux CIL Compiler is a compiler that converts the CIL language
25as described on the CIL design wiki into a kernel binary policy file.
26
27%description -l pl.UTF-8
28SELinux CIL Compiler to kompilator przekształcający język CIL (Common
29Intermediate Language - wspólny język pośredni), zgodny z opisem na
30stronie wiki, do postaci binarnego pliku polityki jądra.
31
32%prep
33%setup -q
34
35%build
36CFLAGS="%{rpmcflags}" \
37CPPFLAGS="%{rpmcppflags}" \
38%{__make} \
39 CC="%{__cc}" \
40 LIBDIR=%{_libdir}
41
42%if %{with doc}
43%{__make} -C docs html
44%endif
45
46%install
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%clean
53rm -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*
This page took 0.191733 seconds and 4 git commands to generate.