]> git.pld-linux.org Git - packages/secilc.git/blob - secilc.spec
- updated to 2.8
[packages/secilc.git] / secilc.spec
1 #
2 # Conditional build:
3 %bcond_without  doc     # HTML documentation
4 #
5 %ifnarch %{ix86} %{x8664}
6 # pandoc requires ghc
7 %undefine       with_doc
8 %endif
9 Summary:        SELinux Common Intermediate Language (CIL) Compiler
10 Summary(pl.UTF-8):      Kompilator języka pośredniego (CIL) SELinuksa
11 Name:           secilc
12 Version:        2.8
13 Release:        1
14 License:        BSD
15 Group:          Applications
16 #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
17 Source0:        https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/%{name}-%{version}.tar.gz
18 # Source0-md5:  a3c363545842aadc6645a94112b476e7
19 URL:            https://github.com/SELinuxProject/cil/wiki
20 BuildRequires:  gcc >= 6:4.5.1
21 BuildRequires:  libsepol-devel >= 2.8
22 %{?with_doc:BuildRequires:      pandoc}
23 BuildRequires:  xmlto
24 Requires:       libsepol >= 2.8
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
30
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.
35
36 %prep
37 %setup -q
38
39 %build
40 CFLAGS="%{rpmcflags}" \
41 CPPFLAGS="%{rpmcppflags}" \
42 %{__make} \
43         CC="%{__cc}" \
44         LIBDIR=%{_libdir}
45
46 %if %{with doc}
47 %{__make} -C docs html
48 %endif
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
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*
This page took 0.065869 seconds and 3 git commands to generate.