From 9deb0680eb7f4b757f12f5798afb3c1c49a4d7e1 Mon Sep 17 00:00:00 2001 From: Nicolas Mailhot Date: Jul 07 2019 23:14:41 +0000 Subject: listfiles: fix expansion of listfiles_exclude/listfiles_include --- diff --git a/macros.fedora-misc b/macros.fedora-misc index a73b7c5..9ce85cf 100644 --- a/macros.fedora-misc +++ b/macros.fedora-misc @@ -12,9 +12,9 @@ # Arguments passed to the macro without flags will be interpreted as inclusion # globs. %listfiles(i:x:) %{expand: -%if "%{?-i*}%{expand:?listfiles_include}%*" != "" +%if "%{?-i*}%{expand:%{?listfiles_include}}%*" != "" listfiles_include=$(realpath -e --relative-base=. %{?-i*} %{?listfiles_include} %* | sort -u) - %if "%{?-x*}%{expand:?listfiles_exclude}" != "" + %if "%{?-x*}%{expand:%{?listfiles_exclude}}" != "" while IFS= read -r finc ; do realpath -qe --relative-base=. %{?-x*} %{?listfiles_exclude} \\ | sort -u | grep -q "${finc}" || echo "${finc}" diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index ed2d550..30399fc 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 134 +Version: 135 Release: 1%{?dist} # No version specified. License: GPL+ @@ -202,6 +202,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Mon Jul 08 2019 Nicolas Mailhot - 135-1 +- Fix expansion in listfiles_exclude/listfiles_include + * Mon Jul 01 2019 Florian Festi - 134-1 - Switch binary payload compression to Zstandard level 19 @@ -209,7 +212,7 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua - Enable RPM to set SOURCE_DATE_EPOCH environment variable. * Tue Jun 25 08:13:50 CEST 2019 Igor Gnatenko - 133-1 -- Expand listfiles_exclude/listfiles/include +- Expand listfiles_exclude/listfiles_include * Tue Jun 11 2019 Jitka Plesnikova - 132-1 - Remove perl macro refugees