From 03283a079acb7b5fc9b8586e57eb54dde090b1a6 Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Tue, 28 Jul 2020 13:45:22 +0200 Subject: [PATCH] Disabled documentation generator. Fixed upgrade path. --- fmt.spec | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/fmt.spec b/fmt.spec index 258a319..804dc9c 100644 --- a/fmt.spec +++ b/fmt.spec @@ -1,6 +1,6 @@ %undefine __cmake_in_source_build -%bcond_without doc +%bcond_with doc Name: fmt Version: 7.0.1 Release: 2%{?dist} @@ -36,11 +36,14 @@ BuildRequires: python%{python3_version_nodots}-breathe BuildRequires: python3-sphinx BuildRequires: python3-breathe %endif +%else +Provides: %{name}-doc%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: %{name}-doc%{?_isa} < %{?epoch:%{epoch}:}%{version}-%{release} %endif # This package replaces the old name of cppformat -Provides: cppformat = %{version}-%{release} -Obsoletes: cppformat < %{version}-%{release} +Provides: cppformat%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: cppformat%{?_isa} < %{?epoch:%{epoch}:}%{version}-%{release} %description C++ Format is an open-source formatting library for C++. It can be used as a @@ -48,11 +51,11 @@ safe alternative to printf or as a fast alternative to IOStreams. %package devel Summary: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} # This package replaces the old name of cppformat -Provides: cppformat-devel = %{version}-%{release} -Obsoletes: cppformat-devel < %{version}-%{release} +Provides: cppformat-devel%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: cppformat-devel%{?_isa} < %{?epoch:%{epoch}:}%{version}-%{release} %description devel This package contains the header file for using %{name}. @@ -64,8 +67,8 @@ License: Python BuildArch: noarch # This package replaces the old name of cppformat -Provides: cppformat-doc = %{version}-%{release} -Obsoletes: cppformat-doc < %{version}-%{release} +Provides: cppformat-doc%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: cppformat-doc%{?_isa} < %{?epoch:%{epoch}:}%{version}-%{release} %description doc This package contains documentation for developer documentation for %{name}.