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

RFE: map ~ part of the VERSION to %{PREVERSION} #1321

Closed
kloczek opened this issue Jul 25, 2020 · 3 comments
Closed

RFE: map ~ part of the VERSION to %{PREVERSION} #1321

kloczek opened this issue Jul 25, 2020 · 3 comments

Comments

@kloczek
Copy link
Contributor

kloczek commented Jul 25, 2020

I thik that it would be good to add mapping ~ part of the version to %{PREVERSION} macro if version string contains ~.
It will allow standarise using that mechanisms across all spec files to have syntax like

Name: package
Version: 1.0.0~beta1
Sourrce: https:.some.host/source/package-%{version}%{preversion}.tar.gz

%setup -n package-%{version}%{preversion}

With that it will be possible to only update Version: line.
Probably it would be good to ad the same logick between %{preversion} and %{PREVERSION} as it is now between %{version} and %{VERSION}.

@kloczek
Copy link
Contributor Author

kloczek commented Jul 25, 2020

I'm not sure exactly name like %{PREVERSION}.
Maybe %{NONREL} or %{NONVER}?

@kloczek
Copy link
Contributor Author

kloczek commented Jul 25, 2020

Just in case: I can try to implemt that but if you will like that idea first it would be good to agree on some exact name/mechanics.

@kloczek
Copy link
Contributor Author

kloczek commented Jul 28, 2020

Closing.
After few experiments I founfd that using ~ in version for non-release builds makes spec files more complicated so curretly it does not simplifies anything.

@kloczek kloczek closed this as completed Jul 28, 2020
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