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

A sample spec file to build dumb-init as an RPM #110

Open
deatrich opened this issue Aug 9, 2016 · 4 comments · May be fixed by #111
Open

A sample spec file to build dumb-init as an RPM #110

deatrich opened this issue Aug 9, 2016 · 4 comments · May be fixed by #111

Comments

@deatrich
Copy link

deatrich commented Aug 9, 2016

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

@chriskuehl
Copy link
Contributor

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.

@samrocketman
Copy link

samrocketman commented Aug 9, 2016

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.

@deatrich
Copy link
Author

deatrich commented Aug 9, 2016

On 9 August 2016 at 12:27, Chris Kuehl notifications@github.com 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
#110 (comment), 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

@muayyad-alsadi muayyad-alsadi linked a pull request Aug 15, 2016 that will close this issue
@muayyad-alsadi
Copy link

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

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

Successfully merging a pull request may close this issue.

4 participants