Disable documentation for riscv64

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2019-12-23 14:40:09 +02:00
parent 4d47f52f58
commit 6b96820f13
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# Disable documentation for RISCV (no nodejs support
%ifnarch riscv64
%bcond_without docs
%else
%bcond_with docs
%endif
Name: fmt
Version: 6.1.2
Release: 1.0.riscv64%{?dist}
@ -23,10 +30,9 @@ BuildRequires: cmake3
BuildRequires: cmake
%endif
# For building documentation
%if %{with docs}
BuildRequires: doxygen
%ifnarch riscv64
BuildRequires: nodejs-less
%endif
%if 0%{?fedora}
BuildRequires: python3-sphinx
BuildRequires: python3-breathe
@ -34,6 +40,7 @@ BuildRequires: python3-breathe
BuildRequires: python2-sphinx
BuildRequires: python2-breathe
%endif
%endif
# This package replaces the old name of cppformat
Provides: cppformat = %{version}-%{release}
@ -54,6 +61,7 @@ Obsoletes: cppformat-devel < %{version}-%{release}
%description devel
This package contains the header file for using %{name}.
%if %{with docs}
%package doc
Summary: Documentation files for %{name}
License: Python
@ -65,6 +73,7 @@ Obsoletes: cppformat-doc < %{version}-%{release}
%description doc
This package contains documentation for developer documentation for %{name}.
%endif
%prep
%autosetup -p1
@ -84,9 +93,13 @@ pushd build
# Remove --clean-css since that plugin isn't available
sed -i "s/'--clean-css',//" ../doc/build.py
%make_build all doc
%make_build all
%if {with docs}
%make_build doc
# Remove temporary build products
rm -rf ../build/doc/html/{.buildinfo,.doctrees,objects.inv}
%endif
%install
%make_install -C build
@ -107,13 +120,15 @@ popd
%{_datadir}/cmake/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%if %{with docs}
%files doc
%doc %{_datadir}/doc/%{name}
%license doc/python-license.txt
%endif
%changelog
* Mon Dec 23 2019 David Abdurachmanov <david.abdurachmanov@sifive.com> - 6.1.2-1.0.riscv64
- Disable nodejs-less BR for riscv64
- Disable documentation for riscv64
* Wed Dec 18 2019 Vitaly Zaitsev <vitaly@easycoding.org> - 6.1.2-1
- Updated to version 6.1.2.