Description of problem:
There is %{?tag} for expand-only-if-defined.
There is no easy way to do expand-but-error-if-not-defined as "%{undefinedtag}" quietly expands to "%{undefinedtag}".
Version-Release number of selected component (if applicable):
rpm-build-4.7.2-1.fc12.x86_64
Description of problem: only-if- defined. but-error- if-not- defined as "%{undefinedtag}" quietly expands to "%{undefinedtag}".
There is %{?tag} for expand-
There is no easy way to do expand-
Version-Release number of selected component (if applicable): 4.7.2-1. fc12.x86_ 64
rpm-build-
How reproducible:
Always.
Steps to Reproduce:
cat >undefinedtag.spec <<EOH
Summary: undefinedtag
Name: undefinedtag
Version: 1
Release: 1%{undefinedtag}
License: GPLv3+
%description
undefinedtag
EOH
rpmbuild -bb undefinedtag.spec
echo $?
Actual results: rpm/check- files /.../BUILDROOT/ undefinedtag- 1-1%{undefinedt ag}.x86_ 64
Checking for unpackaged file(s): /usr/lib/
0
Expected results: spec:4: "undefinedtag" is not defined
Error at undefinedtag.
1