From 483963f11033da039a1f0e052158bb9226f8422a Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Mon, 11 Jan 2016 11:19:36 +0100 Subject: [PATCH] initial branch checkout for vanilla upstream builds --- secilc.spec | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/secilc.spec b/secilc.spec index 8c56bf6..2652168 100644 --- a/secilc.spec +++ b/secilc.spec @@ -1,13 +1,16 @@ +%global gitrev abcdef + Name: secilc -Version: 2.4 -Release: 6%{?dist} +Version: 2.5 +Release: 0.1%{?dist}.%{gitrev} 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 +# Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160107/secilc-2.5-rc1.tar.gz +Source0: secilc-%{version}-%{gitrev}.tar.gz -BuildRequires: libsepol-static >= 2.4, dblatex, flex, xmlto +BuildRequires: libsepol-static >= 2.5, dblatex, flex, xmlto, pandoc %description The SELinux CIL Compiler is a compiler that converts the CIL language as @@ -28,37 +31,30 @@ 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 +%setup -q -n secilc %build -pushd cil make %{?_smp_mflags} CFLAGS="%{optflags}" LIBSEPOL_STATIC=%{_libdir}/libsepol.a 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 +make %{?_smp_mflags} DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" install %files %{_bindir}/secilc %{_mandir}/man8/secilc.8.gz -%license cil/COPYING +%license COPYING %files doc -%doc cil/docs/html -%doc cil/docs/pdf -%license cil/COPYING +%doc docs/html +%doc docs/pdf +%license COPYING %changelog * Tue Sep 01 2015 Marcin Juszkiewicz - 2.4-6