diff --git a/.gitignore b/.gitignore index e69de29..1934d33 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libsepol-2.4.tar.gz diff --git a/secilc.spec b/secilc.spec new file mode 100644 index 0000000..b6daa53 --- /dev/null +++ b/secilc.spec @@ -0,0 +1,78 @@ +Name: secilc +Version: 2.4 +Release: 5%{?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/20150202/libsepol-2.4.tar.gz + +BuildRequires: libsepol-static >= 2.4, dblatex, flex, xmlto + +%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 libsepol-2.4 + + +%build +pushd cil +make %{?_smp_mflags} CFLAGS="%{optflags}" +pushd docs +make %{?_smp_mflags} +popd +popd + + +%install +pushd cil +rm -rf %{buildroot} +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_mandir}/man8 +install -p secilc %{buildroot}%{_bindir} +install -m 644 -p docs/man8/secilc.8 %{buildroot}%{_mandir}/man8 +popd + + +%files +%{_bindir}/secilc +%{_mandir}/man8/secilc.8.gz +%license cil/COPYING + +%files doc +%doc cil/docs/html +%doc cil/docs/pdf +%license cil/COPYING + +%changelog +* Wed Jul 29 2015 Petr Lautrbach 2.4-5 +- secilc-doc do not need the base package + +* Thu Jul 23 2015 Petr Lautrbach 2.4-4 +- add license file + +* Wed Jul 22 2015 Petr Lautrbach 2.4-3 +- remove unnecessary dependencies +- don't build libsepol + +* Tue Jul 21 2015 Petr Lautrbach 2.4-2 +- make secilc-doc package noarch + +* Tue Jul 21 2015 Petr Lautrbach 2.4-1 +- initial build based on libsepol-2.4 sources diff --git a/sources b/sources index e69de29..1625a39 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8a75d27acf17af1911797e6b12986b50 libsepol-2.4.tar.gz