Disable documentation on RISC-V (riscv64)

We don't have pandoc available.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2019-11-14 07:31:03 +02:00
parent 00c8521bf2
commit bd9ca1e445
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 12 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Name: secilc
Version: 3.0
Release: 0.rc1.1%{?dist}
Release: 0.rc1.1.0.riscv64%{?dist}
Summary: The SELinux CIL Compiler
License: BSD
@ -13,7 +13,10 @@ Source0: https://github.com/SELinuxProject/selinux/releases/download/2019
# Patch list start
# Patch list end
BuildRequires: gcc
BuildRequires: libsepol-static >= %{libsepolver}, dblatex, flex, xmlto, pandoc
BuildRequires: libsepol-static >= %{libsepolver}, dblatex, flex, xmlto
%ifnarch riscv64
BuildRequires: pandoc
%endif
%description
The SELinux CIL Compiler is a compiler that converts the CIL language as
@ -40,9 +43,11 @@ for more information about the goals and features on the CIL language.
%build
%set_build_flags
make %{?_smp_mflags} LIBSEPOL_STATIC=%{_libdir}/libsepol.a
%ifnarch riscv64
pushd docs
make %{?_smp_mflags}
popd
%endif
%install
@ -57,11 +62,16 @@ make %{?_smp_mflags} DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LI
%license COPYING
%files doc
%ifnarch riscv64
%doc docs/html
%doc docs/pdf
%endif
%license COPYING
%changelog
* Thu Nov 14 2019 David Abdurachmanov <david.abdurachmanvo@sifive.com> - 3.0-0.rc1.1.0.riscv64
- Disable documentation on RISC-V (riscv64)
* Tue Nov 12 2019 Petr Lautrbach <plautrba@redhat.com> - 3.0-0.rc1.1
- SELinux userspace 3.0-rc1 release candidate