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

Fedora/EPEL packages #189

Open
fabi1cazenave opened this issue Sep 23, 2024 · 2 comments
Open

Fedora/EPEL packages #189

fabi1cazenave opened this issue Sep 23, 2024 · 2 comments
Labels
enhancement New feature or request linux

Comments

@fabi1cazenave
Copy link
Collaborator

Kalamine has official DEB packages (Debian and Ubuntu); RPM packages would be nice to see as well.

The first step would be to make a Fedora package:
https://docs.fedoraproject.org/en-US/package-maintainers/Package_Review_Process/

Then an EPEL package, to make it available to RHEL-like plstforms:
https://docs.fedoraproject.org/en-US/epel/epel-package-request/

@carlwgeorge, your help will be appreciated here! :-)

@carlwgeorge
Copy link

I've got an initial RPM spec file for this, but I've got a few questions based on the results of the rpmlint tool.

kalamine.noarch: E: zero-length /usr/lib/python3.13/site-packages/kalamine/generators/__init.py__

That error message is a bit obtuse, but it goes away if I rename the file to __init__.py. My guess is that rpmlint knows that a __init__.py file can be empty, but doesn't expect other files to be so it throws the error because of the non-standard name.

kalamine.noarch: E: non-executable-script /usr/lib/python3.13/site-packages/kalamine/__init__.py 644 /usr/bin/env python3
kalamine.noarch: E: non-executable-script /usr/lib/python3.13/site-packages/kalamine/cli.py 644 /usr/bin/env python3
kalamine.noarch: E: non-executable-script /usr/lib/python3.13/site-packages/kalamine/cli_msklc.py 644 /usr/bin/env python3
kalamine.noarch: E: non-executable-script /usr/lib/python3.13/site-packages/kalamine/cli_xkb.py 644 /usr/bin/env python3

From what I can tell the entrypoints to the program are the scripts created in /usr/bin, so it's unnecessary to use shebang lines in these files. Like the other error, I can resolve the error by adjusting the files during the RPM build.

Would these adjustments make sense to make here in this git repo? It's not strictly required because I can just keep the adjustments in the RPM spec file, but to me they seem practical enough for everyone.

@carlwgeorge
Copy link

For anyone interested in trying out the RPM package early on Fedora 40/41/Rawhide, you can get it from my copr for package reviews.

dnf copr enable carlwgeorge/reviews 
dnf install kalamine

The review is taking place in rhbz#2314587 for inclusion in the official Fedora repos.

@trilowy trilowy added enhancement New feature or request linux labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request linux
Projects
None yet
Development

No branches or pull requests

3 participants