From 9c0e7bade433e982357f01d3b8f8f7b94b5f21ed Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Jan 28 2019 19:28:05 +0000 Subject: Adapt check for obsolete scriptlets being obsolete Fedora >= f28 and EPEL >= el8 both support the scriptlet-less packages, so we adapt the logic and the message to reflect that. --- diff --git a/avrdude.spec b/avrdude.spec index 96f5b93..1978812 100644 --- a/avrdude.spec +++ b/avrdude.spec @@ -29,10 +29,8 @@ BuildRequires: texinfo-tex BuildRequires: tetex-dvips # https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets -%if 0%{?fedora} >= 30 -%{nil} -%else -%{error:No install-info scriptlets for Fedora prior to F30 or EL7/EL6.} +%if !((0%{?fedora} >= 28) || (0%{?rhel} >= 8)) +%{error:No install-info scriptlets for Fedora prior to F28 or EL prior to EL8.} %endif