From 8d16f3d1cd8da40c896edab2354885d73be98222 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Jan 28 2019 19:28:15 +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/barcode.spec b/barcode.spec index d843cab..a5858d4 100644 --- a/barcode.spec +++ b/barcode.spec @@ -14,10 +14,8 @@ BuildRequires: %{_bindir}/texindex, %{_bindir}/dvips BuildRequires: %{_bindir}/makeinfo, ghostscript # 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 %description