From dfc363eceb6c9be3caef67984d25570075f96c3d Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Thu, 30 Nov 2023 00:03:03 +0100 Subject: [PATCH] [20/20] SPECfile cleanup - Do not try to re-define the RPM %license Virtual File Attribute to a global macro https://rpm-software-management.github.io/rpm/manual/spec.html This code was likely meant to deal %license tag on systems without RPM 4.11, which could happen when the maintainer wanted to keep close the content of Fedora SPECfile and RHEL SPECfile at a time. While in Fedora the RPM 4.11 was present for years before the commit that added this code, it might not be the case in an old, but still active, RHEL at that time. --- mariadb.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/mariadb.spec b/mariadb.spec index 6e21810..7bf24fc 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -18,9 +18,6 @@ %global __requires_exclude ^perl\\((hostnames|lib::mtr|lib::v1|mtr_|My::|wsrep) %global __provides_exclude_from ^(%{_datadir}/(mysql|mysql-test)/.*|%{_libdir}/%{pkg_name}/plugin/.*\\.so)$ -# Define license macro if not present -%{!?_licensedir:%global license %doc} - # Temporary workaround to fix the "internal compiler error" described in https://bugzilla.redhat.com/show_bug.cgi?id=2239498 # TODO: Remove when the issue is resolved %ifarch i686