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

Provide .spec file for RPM building from tarball #368

Open
nkadel opened this issue Dec 16, 2021 · 2 comments
Open

Provide .spec file for RPM building from tarball #368

nkadel opened this issue Dec 16, 2021 · 2 comments

Comments

@nkadel
Copy link

nkadel commented Dec 16, 2021

I've some functional files for RPM building over at https://github.com/nkadel/ansiblerepo/blob/master/ansible-5.x-srpm/ansible.spec

It would be reasonable straightforward to turn that into a .j2 file which would allow "rpmbuilt -ta" from the ansible tarball, if desired, and potentially support a "--redhat" option to go along with the "--debian" packaging option.

@webknjaz
Copy link
Member

May I suggest using https://packit.dev instead of (or additionally to) templating? That project exists specifically to allow having upstream spec files and they may even provide continuous testing on their platform via a GitHub App at https://github.com/marketplace/packit-as-a-service.

@nkadel
Copy link
Author

nkadel commented Dec 17, 2021

I strongly dislike this idea. The point is to get the tarball, itself, to contain the matching .spec file, and to be able to run the command "rpmbuild -ta ansible-5.0.1.tar.gz" to generate a locally assembled RPM.

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