secilc/secilc.spec

64 lines
1.8 KiB
RPMSpec

%global libsepolver 2.5-0
Name: secilc
Version: 2.5
Release: 1%{?dist}
Summary: The SELinux CIL Compiler
License: BSD
URL: https://github.com/SELinuxProject/selinux/wiki
Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/secilc-2.5.tar.gz
Patch1: secilc-rhel.patch
BuildRequires: libsepol-static >= %{libsepolver}, dblatex, flex, xmlto, pandoc
%description
The SELinux CIL Compiler is a compiler that converts the CIL language as
described on the CIL design wiki into a kernel binary policy file.
Please see the CIL Design Wiki at:
http://github.com/SELinuxProject/cil/wiki/
for more information about the goals and features on the CIL language.
%package doc
Summary: Documentation for the SELinux CIL Compiler
BuildArch: noarch
%description doc
The SELinux CIL Compiler is a compiler that converts the CIL language as
described on the CIL design wiki into a kernel binary policy file.
Please see the CIL Design Wiki at:
http://github.com/SELinuxProject/cil/wiki/
for more information about the goals and features on the CIL language.
%prep
%setup -q -n secilc-%{version}
%patch1 -p 1
%build
make %{?_smp_mflags} CFLAGS="%{optflags}" LIBSEPOL_STATIC=%{_libdir}/libsepol.a
pushd docs
make %{?_smp_mflags}
popd
%install
rm -rf %{buildroot}
make %{?_smp_mflags} DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" install
%files
%{_bindir}/secilc
%{_mandir}/man8/secilc.8.gz
%license COPYING
%files doc
%doc docs/html
%doc docs/pdf
%license COPYING
%changelog
* Thu Jul 13 2017 Petr Lautrbach <plautrba@redhat.com> - 2.5-1
- Add documentation and test rule for portcon dccp protocol
- Initial EPEL-7 release with upstream release 2016-02-23