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

rpmautospec convert ignores %baserelease #78

Open
hroncok opened this issue Feb 20, 2024 · 0 comments
Open

rpmautospec convert ignores %baserelease #78

hroncok opened this issue Feb 20, 2024 · 0 comments

Comments

@hroncok
Copy link
Contributor

hroncok commented Feb 20, 2024

Have a spec like this:

%global baserelease 1

Name:           reproducer
Version:        1
Release:        0.%{baserelease}%{?dist}
Summary:        ...
License:        MIT
BuildArch:      noarch

%description
...

%prep
%build
%install
%files
%changelog
...

Run rpmautospec convert on it. The result is:

-Release:        0.%{baserelease}%{?dist}
+Release:        %autorelease

This produces unexpected results. IMHO the command should either fail explicitly, or produce:

-%global baserelease 1
+%global baserelease %{autorelease -n}
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

1 participant