| |
@@ -1,6 +1,6 @@
|
| |
Name: epel-rpm-macros
|
| |
Version: 8
|
| |
- Release: 37
|
| |
+ Release: 38
|
| |
Summary: Extra Packages for Enterprise Linux RPM macros
|
| |
|
| |
License: GPLv2
|
| |
@@ -23,6 +23,9 @@
|
| |
# misc macros
|
| |
Source150: macros.build-constraints
|
| |
Source151: https://src.fedoraproject.org/rpms/redhat-rpm-config/raw/rawhide/f/macros.shell-completions
|
| |
+ # autochangelog and autorelease fallback macros
|
| |
+ %global rpmautospec_commit 52f3c2017e10c5ab5a183fed772e9fe8a86a20fb
|
| |
+ Source152: https://pagure.io/fedora-infra/rpmautospec/raw/%{rpmautospec_commit}/f/rpm/macros.d/macros.rpmautospec
|
| |
|
| |
BuildArch: noarch
|
| |
Requires: redhat-release >= %{version}
|
| |
@@ -99,10 +102,13 @@
|
| |
%{buildroot}%{_rpmmacrodir}/macros.build-constraints
|
| |
install -Dpm 644 %{SOURCE151} \
|
| |
%{buildroot}%{_rpmmacrodir}/macros.shell-completions
|
| |
+ install -Dpm 644 %{SOURCE152} \
|
| |
+ %{buildroot}%{_rpmmacrodir}/macros.rpmautospec
|
| |
|
| |
%files
|
| |
%license GPL
|
| |
%{_rpmmacrodir}/macros.epel-rpm-macros
|
| |
+ %{_rpmmacrodir}/macros.rpmautospec
|
| |
%{_sysconfdir}/rpm/macros.zzz-epel-override
|
| |
%{_fileattrsdir}/pythondist.attr
|
| |
|
| |
@@ -119,6 +125,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Fri Mar 10 2023 Maxwell G <maxwell@gtmx.me> - 8-38
|
| |
+ - Backport rpmautospec fallback macros
|
| |
+
|
| |
* Wed Feb 08 2023 Maxwell G <gotmax@e.email> - 8-37
|
| |
- Stop overriding macros that are now in RHEL 8.7
|
| |
|
| |
rpmautospec koji plugin bakes in the result of %autorelease and
%autochangelog into the SRPM. When used on a Fedora or EL 9 machine with
rpmautospec installed, fedpkg does the same. However, it's currently
impossible to rebuild specfiles that use rpmautospec on EL 8 itself due
to the unexpanded %autorelease and %autochangelog macros failing the
SRPM build.
This adds the same fallback %autorelease and %autochangelog macro
definitions that are available in the Fedora and EPEL 9 buildroots. This
allows locally rebuilding packages that use rpmautospec with plain
rpmbuild or fedpkg on an EL 8 system or with
mock --spec
.