postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

Document COPR repository for Fedora users #351

Closed nwallace closed 7 years ago

nwallace commented 8 years ago

I've created a COPR repository for chruby (and ruby-install). This adds installation instructions for Fedora users to use this repository

postmodern commented 8 years ago

Wow I didn't know about COPR! Is this Fedora's RPM equivalent of PPAs?

nwallace commented 8 years ago

Yeah, very similar to PPAs or the AUR. I think it was initially built as a build service for like continuous integration and stuff, but somebody made a yum plugin to download packages from there and now Fedora includes that plugin by default with DNF.

If you'd prefer the repo to be under your name for these two packages, that's totally fine with me. I didn't have to modify the RPM spec at all. Might make the repo look a little more legit. You'd probably want to set that up yourself, though

postmodern commented 8 years ago

I wonder if there's a way to setup GitHub integration with it? Would be nice when we tag a new version or update the spec file, it kicks off a new build.

nwallace commented 8 years ago

Yeah, that should be possible. COPR has an API that supports initiating builds. You have to provide a URL to the SRPM (not the spec file), but we could probably tweak make release to generate one inside the rpm directory, then use the link to that file here on GitHub for the API call.

I'm brand new to Fedora, RPMs and packaging in general, so I don't really know what it's like outside of Fedora. Fedora uses rpmbuild (among others) to build the RPMs. Can we assume the machine that runs the release has that package? How do you build your RPMs?

postmodern commented 7 years ago

I finally got around to setting up my own Copr repository. Although, I'm getting mysterious build failures from my ruby-install repo.

nwallace commented 7 years ago

When I was trying this stuff last year, there was a known issue in COPR where pretty much every time you create a new project, it's first build would fail. I don't remember the specifics (maybe it was something about key generation?), but once enough time has passed, just re-running the same build would work