Skip to content

rpmautospec convert ignores %baserelease #78

@hroncok

Description

@hroncok

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions