From baa172aa3c6b5cf60202af5d42a5016b6d8af9fc Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Sun, 24 Jan 2021 23:46:32 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/lua-rpm-macros.git#89a57c128aaae84832c06c3615971666c062b9b0 --- lua-rpm-macros.spec | 22 ++++++++++++++++++---- macros.lua-srpm | 2 +- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/lua-rpm-macros.spec b/lua-rpm-macros.spec index 24fce33..331cfdd 100644 --- a/lua-rpm-macros.spec +++ b/lua-rpm-macros.spec @@ -1,12 +1,18 @@ %if 0%{?el8} -# RHEL's lua-devel ships macros.lua and lua.attr +# RHEL8's lua-devel ships macros.lua and lua.attr # skip shipping lua-rpm-macros so we don't conflict %bcond_with rpm_macros %else %bcond_without rpm_macros %endif -%if 0%{?fedora} >= 33 +# Versions of lua-devel where the macros were removed +%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 +%global lua_conflict 5.4.0-7 +%endif +# TODO add new versions if this gets backported + +%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 # requires RPM >= 4.16 %bcond_without requires_generator %else @@ -15,7 +21,7 @@ Name: lua-rpm-macros Version: 1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The common Lua RPM macros License: MIT @@ -35,6 +41,9 @@ BuildArch: noarch # for lua_libdir and lua_pkgdir Requires: lua-srpm-macros = %{version}-%{release} +# files were moved from here +%{?lua_conflict:Conflicts: lua-devel < %{lua_conflict}} + %description This package contains Lua RPM macros. @@ -45,7 +54,7 @@ You should not need to install this package manually as lua-devel requires it. Summary: RPM macros for building Lua source packages # For directory structure -Requires: redhat-rpm-config +Requires: rpm %description -n lua-srpm-macros RPM macros for building Lua source packages. @@ -85,6 +94,11 @@ install -Dpm 0644 lua.attr %{buildroot}/%{_fileattrsdir}/lua.attr %changelog +* Tue Sep 01 2020 Miro HronĨok - 1-3 +- Modify several conditionals to support RHEL 9+ and drop ancient Fedora 17 +- Add explicit conflict with older lua-devel +- Require rpm, not redhat-rpm-config + * Mon Aug 31 2020 Michel Alexandre Salim - 1-2 - Also move lua.attr requires generator diff --git a/macros.lua-srpm b/macros.lua-srpm index da3c185..8c6592b 100644 --- a/macros.lua-srpm +++ b/macros.lua-srpm @@ -1,7 +1,7 @@ %lua_version %{lua: print(string.sub(_VERSION, 5))} %lua_requires \ -%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7 \ +%if 0%{?fedora} || 0%{?rhel} >= 7 \ Requires: lua(abi) = %{lua_version} \ %else \ Requires: lua >= %{lua_version} \