I am currently trying to package a Rubygem that has no upstream release yet (and that will probably stay like that for a while). Thus, I need to build the gem myself.
I am facing now the following issues:
- The gem's version needs to be patched, so that it gets the git commit as a suffix, thus making it apparent that it's a git snapshot.
- I need this gem to land in openSUSE:Factory, so it needs to adhere to stricter rules.
My first try is currently in d:l:r:e: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ruby...
This has unfortunately the following problems preventing a submission to Factory: 1. The patches in the repository are for adding them on top of the git repository to build the gem, which is then fed into gem2rpm. Thus they are not needed in the spec file, which makes the check script decline this.
2. As there is no upstream gem yet on rubygems.org, the factory check script cannot download the source from the URL that gem2rpm generates.
I have tried to include just a snapshot of the upstream repository as the source and build the gem during %build. Unfortunately this makes %gem_install fail, because it expects to have a gem tracked in the repository.
Does anyone have a suggestion how to proceed?
Thanks in advance,