]> git.pld-linux.org Git - packages/secilc.git/blob - secilc.spec
- updated to 3.1
[packages/secilc.git] / secilc.spec
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
8 Version:        3.1
9 Release:        1
10 License:        BSD
11 Group:          Applications
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}
19 BuildRequires:  xmlto
20 Requires:       libsepol >= 3.1
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)
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*
This page took 0.100884 seconds and 4 git commands to generate.