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
Add Fedora (rpm) packaging #140
Comments
Upgraded for kubectx v0.7.0 just now |
Now that you have a spec file, how hard would it be to build for EPEL? |
By EPEL, you mean CentOS/RHEL ? I can add them as target on COPR and see what happens. I will try later today with the update to 0.7.1 It should work I think due to the minimal dependencies. |
It worked seamlessly with EPEL8 and failed with EPEL7. So I only kept EPEL8. As I don't use CentOS/RHEL, I'll not investigate further EPEL7. If you have some patch to make it work also on EPEL7, I'd be happy to integrate it. Files for shell completions are in |
@nsteinmetz still not working? What's the error message? |
Just tested here, my suggestion patch to fix the issue in EL7: $ git diff License: ASL 2.0 BuildArch: noarch +%prep %install %changelog
|
$ cat /etc/redhat-release [douglas@nuc01 kubectx-rpm]$ rpmbuild -ba ./kubectx.spec
|
@dougsland I was typing my answer when I saw your patch - thanks I'll add it in my package and let you know if copr package works :) |
On fedora, I needed to add the whole line
|
If it works, it works ;-) Glad to help. @nsteinmetz |
@dougsland sucess ! 🎉 Thanks a lot for your contribution ! @TJM if you're interested by EPEL7, it works from now thanks to @dougsland patch. EPEL8 was already working. |
@nsteinmetz Thanks! Do we need to do anything to get these packages into the EPEL repos, or am I just too early, maybe they need to propagate? |
hey @nsteinmetz let's bring the spec into the main repo, so more people is aware of the spec file. :) (Just my 2 cents) |
@TJM it won"t be in the official EPEL repo for now - you have to add the repo from here https://copr.fedorainfracloud.org/coprs/cerenit/kubectx/ - pick the one you expect to use to have the related repo file. @dougsland you mean the main repo here or the main EPEL repo ? For the kubectx repo, @ahmetb said that he's not very interested in package management or expect a general solution to be implemeted (fpm based ?). At least, my repo could be mentionned as for other repo in the README section. For the official EPEL repo, I don't know the process and I don't have a lot of freetime to invest in it nor a lot of interest to be honest. I use fedora only as laptop, for servers I'm more debian based. I use kubectx only on my laptop so... But if you want to make the process, feel free to do so and take ownership on this. |
@dougsland I mirrored repo on github => https://github.com/nsteinmetz/kubectx-rpm - I can add you as collaborator on it or you can fork it if you prefer. |
Okay, if @ahmetb is not interested in spec files, yeah we should have it in other github fork like you did. However, I would expect @ahmetb re-think about this topic, not only to get better support to RPM based distro in a single git tree but also more visibility to the project.
I am not looking for ownership but I can contribute. |
|
For the record : I no longer maintain the rpm version - I switched to the krew plugin - if someone is interesed, repo is in archived mode and existing rpm will remain as long as possible but new builds will not be proposed. |
Following #17, I create a dedicated issue for fedora/rpm packaging.
/usr/share/kubectx
To enable repo:
(sudo) dnf copr enable cerenit/kubectx (sudo) dnf install kubectx
Work in progress is available here and soon on Github too.
The text was updated successfully, but these errors were encountered: