initial branch checkout for vanilla upstream builds

This commit is contained in:
Petr Lautrbach 2016-01-11 11:19:36 +01:00
parent 959dbc983b
commit 483963f110
1 changed files with 13 additions and 17 deletions

View File

@ -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 <mjuszkiewicz@redhat.com> - 2.4-6