From 6b96820f13f9ae17f5cb6a24488a23d148e2b0db Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Mon, 23 Dec 2019 14:40:09 +0200 Subject: [PATCH] Disable documentation for riscv64 Signed-off-by: David Abdurachmanov --- fmt.spec | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/fmt.spec b/fmt.spec index f9a18fd..40600f4 100644 --- a/fmt.spec +++ b/fmt.spec @@ -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 - 6.1.2-1.0.riscv64 -- Disable nodejs-less BR for riscv64 +- Disable documentation for riscv64 * Wed Dec 18 2019 Vitaly Zaitsev - 6.1.2-1 - Updated to version 6.1.2.