]> git.pld-linux.org Git - packages/rpmlint.git/blobdiff - rpmlint.spec
workaround rpm5 rpm -qf /nonsense
[packages/rpmlint.git] / rpmlint.spec
index 2585c60ea24929769b842b7a456c7b9faafe28cc..ddf72605824ef555b16f3ede41751bd9ef364830 100644 (file)
@@ -84,7 +84,9 @@ touch __init__.py
 
 %build
 # Create GROUPS for -groups.patch
-rpm --qf '%{_docdir}/%{N}-%{V}/groups.gz' -q rpm | xargs gzip -dc | awk '/^[A-Z].*/ { print }' > GROUPS
+rpmnv=$(rpm -q rpm --qf '%{N}-%{V}')
+gzip -dc "%{_docdir}/$rpmnv/groups.gz" | awk '/^[A-Z].*/ { print }' > GROUPS
+test -s GROUPS
 
 %{__make} \
        bash_compdir=%{bash_compdir} \
This page took 0.20492 seconds and 4 git commands to generate.