-
Notifications
You must be signed in to change notification settings - Fork 14
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 spec file #220
base: main
Are you sure you want to change the base?
add spec file #220
Conversation
Would it be a good idea to use GitHub CI to build a binary RPM package from this (at least for AMD64)? I'm thinking about adding the Arch Linux PGKBUILD, too. Would probably make it even easier to install and run MinMon. I'm busy this week but I'll review it asap. |
yes, thats a great idea |
wanted to figure out how it could be done. |
Sorry for the late reponse, I've been quite busy lately. What bugs me is the fact that the release version and in case of the PKGBUILD also a checksum of the source archive will be part of the repository if we do it the way it is done now. Also, the resulting binary packages will not be very portable as they are built with a specific version of Ubuntu/Arch at the time the CI runs. There's a good chance that they brake as soon as these distros update MinMon's dependencies. I'm not sure yet how to solve these issues. Maybe by just adding the spec/PKGBUILD files and skip the CI part. The spec files could be template/.in files with placeholders that are filled in by the CI. It's just one command to build the respective package for the user. What do you think? |
I think the problem to solve here is similar to what Arch does with the AUR. For rpms there are similar services: And a few more, but these two seem to be the most popular ones. Maybe that's the right direction to go. |
I have limited experience outside of the RH ecosystem myself but a copr repository would do the trick yes. you would still need to build a src.rpm (rpmbuild -bs specfilename.spec) for that but you can do that on a pipeline and possibly submit to copr directly. But im not sure about that last past. |
I would also like a rpm build, is there anything I can do to help get this on rocky? |
I'd also like an RPM, but maybe an APT too ;-) For simple packages (which this likely is), I'd recommend FPM. It needs a fairly long command line, but it's essentially just 'zip' but for packages. It feels likely that for a given architecture you could make an RPM and an APT easily from the same files, it's just two command lines, one asking for an RPM the other for Update:
|
seems not for centos 8 ? |
Centos 8 has been EOL for quite some time now |
Personally I’d use the official tools on an redhat based system to build redhat based rpms tbh |
Looks good so far. |
This is an spec file for creating an rpm package.
i've used it to create a rpm file so i dont need cargo and rust on my production environments.
example file can be found here: https://repository.epicgreen.nl/