From eda3df899142b15f5db9365b020e4ffc4dfa81a3 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Apr 26 2022 12:05:31 +0000 Subject: Fix epoch in requirement for doc subpackage As facter has epoch 1 in rhel/centos, we need to specify it in the requires of documentation subpackage. Related-to: https://review.rdoproject.org/r/q/I2f52e1c1f7fe694d1bcd4625532282d01a9b975d --- diff --git a/SPECS/facter.spec b/SPECS/facter.spec index caa9077..ced3f32 100644 --- a/SPECS/facter.spec +++ b/SPECS/facter.spec @@ -1,7 +1,7 @@ ## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: - release_number = 1; + release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} @@ -67,7 +67,7 @@ key off the values returned by facts. %package doc Summary: Documentation for %{name} -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{?has_epoch:1:}%{version}-%{release} BuildArch: noarch %description doc @@ -111,6 +111,9 @@ GEM_HOME="%{buildroot}%{gem_dir}" %{buildroot}%{_bindir}/facter %doc %{gem_docdir} %changelog +* Tue Apr 26 2022 Alfredo Moralejo 4.2.8-2 +- Fix epoch in requirement of doc subpackage + * Wed Apr 20 2022 Ewoud Kohl van Wijngaarden 4.2.8-1 - Update to 4.2.8