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

specfile: expose spec parser/editor using CLI #104

Open
yac opened this issue Feb 22, 2017 · 2 comments
Open

specfile: expose spec parser/editor using CLI #104

yac opened this issue Feb 22, 2017 · 2 comments

Comments

@yac
Copy link
Contributor

yac commented Feb 22, 2017

utils.specfile.Spec parser is pretty useful with increasingly more unit tests supporting its fragile regexp core. I'd like to expose the useful functions using new CLI actions:

rdopkg spec-get-tag Version
rdopkg spec-set-tag Release "0.1%{?milestone}%{?dist}"

rdopkg spec-get-macro milestone
rdopkg spec-set-macro milestone .0rc2
rdopkg spec-eval '%{?secretmacro}'

rdopkg spec-get-magic-comment patches_base
rdopkg spec-set-magic-comment patches_ignore DROP-IN-RPM

while also supplying these basic spec operations with unit tests AND allowing better debugging.

What's not to like?

@yac yac self-assigned this Feb 22, 2017
@yac
Copy link
Contributor Author

yac commented Feb 23, 2017

Preferably, I'd left out the spec- prefix since rdopkg is implicitly about .spec manipulation... so

rdopkg get-tag
rdopkg get-macro
...

What do you think?

@yac yac added the next label May 13, 2019
@yac
Copy link
Contributor Author

yac commented May 13, 2019

This is best done just after #172 .

@yac yac removed the next label Jul 22, 2019
@apevec apevec unassigned yac Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant