dumb-init
dumb-init copied to clipboard
A sample spec file to build dumb-init as an RPM
I attach an example RPM SPEC file (dumb-init.spec) that can be used to build an RPM of this application. The user should change the version number for the 'this_ver' macro to match the downloaded version number before building the RPM. This one has coded in it version 1.1.2 dumb-init.spec.txt
Awesome, thanks for sending this in! Is this something we should include in the repo or at least mention in the README?
We don't use or know too much about RPM packaging, but we'd be happy to add instructions or take patches that make it easier.
We actually use RPM in my shop. Currently, we just have ansible playbooks which download the binary but a package would be nice, too. CentOS 6/7.
On 9 August 2016 at 12:27, Chris Kuehl [email protected] wrote:
Awesome, thanks for sending this in! Is this something we should include in the repo or at least mention in the README?
We don't use or know too much about RPM packaging, but we'd be happy to add instructions or take patches that make it easier.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Yelp/dumb-init/issues/110#issuecomment-238663668, or mute the thread https://github.com/notifications/unsubscribe-auth/AEVTO1Vw322Y3FqfcGgVTBNpWD08QXkIks5qeNSqgaJpZM4JgSaa .
It would be enough to include it in the repo I think. People who build RPMs often look for a .spec file in the a source tarball as a starting point for building an RPM.
It worked fine for me building it from this spec file for both SL6 and SL7 (clones of RHEL 6 and 7)
So from a working rpmbuild tree, you simply do: rpm --sign -ba dumb-init.spec in order to build the architecture-specific RPM, as well as the source RPM (--sign only if you digitally sign your RPMs)
cheers, etc.
deatrich @ gmail.com <*> This moment's fortune cookie: "The avalanche has already started, it is too late for the pebbles to vote." -Kosh
you can use this copr for fedora and centos
https://copr.fedorainfracloud.org/coprs/alsadi/dumb-init/
there is a pending PR to integrate it with future releases