Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errornously warns about macro in Version line, when multiple lines match #142

Open
s-t-e-v-e-n-k opened this issue Oct 9, 2024 · 1 comment

Comments

@s-t-e-v-e-n-k
Copy link

Given the following spec file which has a version set correctly, and then writes out a file with a macro so we don't duplicate information

% grep "^Version: " python-tpm2-pytss.spec
Version:        2.3.0
Version:        %{version}
Running source_service 'source_validator' ...
WARNING: macro used in version line
packager is responsible that the resulting string
is non-empty and contains no "-".
----------
cat <<EOF > PKG-INFO
Metadata-Version: 1.1
Version:        %{version}
EOF
export CFLAGS="%{optflags}"
----------
@dirkmueller
Copy link
Member

hmm, so this is beyond the current capabilities of the shell/grep based spec file "parsing". I was planning on a larger rewrite anyhow, maybe for hack week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants