[opensuse-ruby] Call to arms: devel:languages:ruby:extensions refresh
Hi, yesterday we migrated devel:languages:ruby:backports [1] and devel:languages:ruby [2] to the new ruby packaging scheme. my personal test projects [3] show, that this gives us a working base. So now it is the time to fix all the old cruft we have in d:l:r:e. Some packages havent been touched since 5+years and still have the packaging schema from back then. Preparation ============= # add devel:languages:ruby:backports as repository to your distro if you # are not on factory: $ zypper ar http://download.opensuse.org/repositories/devel:/languages:/ruby:/backports/... $ zypper in ruby2.0-rubygem-gem2rpm # # script attached. if you are not on 13.1 you have to update the path to # the template. # $ mv g2r ~/bin/g2r ; chmod a+rx ~/bin/g2r Fixing a single package ========================= # # Inside the package working copy # $ g2r # # check if we lost any important fields like license, buildrequires, # custom descriptions. # $ osc diff # # if we lost anything copy gem2rpm.yml and move the lost bits into the # config. Hint: the old spec file is still in the .osc directory. # $ cp /usr/share/doc/packages/ruby2.0-rubygem-gem2rpm/gem2rpm.yml . # port port port $ g2r # # changes entry # $ osc vc -m 'update to new packaging scheme and add gem2rpm.yml' $ osc addremove $ osc build ... $ osc ci Bonus Points ============== If the gem2rpm.yml only holds the license for the package, file a pull request upstream to add the license to the gemspec. rubygems also recommends spdx format, which will make out life a lot easier. [4] Known Issues ============== For now please ignore build failures on SLE 11 SP3, if the symptoms are "unpackaged files found". There is a bug in rpm which cuts off the output generated by scripts in macros. [1] https://build.opensuse.org/project/show/devel:languages:ruby:backports [2] https://build.opensuse.org/project/show/devel:languages:ruby [3] https://build.opensuse.org/project/monitor/home:darix:ruby https://build.opensuse.org/project/monitor/home:darix:apps [4] http://guides.rubygems.org/specification-reference/#license -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
we just made the new template the default in the gem2rpm package in dl:ruby:extensions/d:l:ruby:backports/d:l:ruby. as such we can leave out the template part of the g2r script. On 2014-09-30 14:23:49 +0200, Marcus Rueckert wrote:
#!/bin/sh TEMPLATE='/usr/share/doc/packages/ruby2.0-rubygem-gem2rpm/sles12.spec.erb' if [ -e gem2rpm.yml ] ; then cfg="--config gem2rpm.yml" fi exec gem2rpm $cfg -t $TEMPLATE -o *spec *gem
``` #!/bin/sh if [ -e gem2rpm.yml ] ; then cfg="--config gem2rpm.yml" fi exec gem2rpm $cfg -o *spec *gem ``` darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
On 09/30/2014 02:23 PM, Marcus Rueckert wrote:
Hi,
yesterday we migrated devel:languages:ruby:backports [1] and devel:languages:ruby [2] to the new ruby packaging scheme. my personal test projects [3] show, that this gives us a working base. So now it is the time to fix all the old cruft we have in d:l:r:e. Some packages havent been touched since 5+years and still have the packaging schema from back then.
Hi, finally I've found the time to spend on this... I've fixed about 300 of them that were straightforward. There are a hundred still to fix which are: - one needs a license fix, which I'll fix it with the gem2rpm.yml file and send a PR upstream - several need to have build requirements manually set, which are native gems. There is some metadata on the gem file that could be used for that. I'll check what can be done. - several have a name ending with the version, like actionpack_3_2. This needs the name in the resulting spec to be fixed. I'll see if we can do it with the gem2rpm.yml file. - several have a custom code for setting up update-alternatives on the binaries. I'll see what can be done with the gem2rpm - at least one has a custom patch on the resulting gem. I'll see if I can fix it with the gem2rpm and send a PR upstream. I'll be doing that this week so I'll get back to you before the end of the week hopefully with all that fixed. regards jordi -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
On 10.12.2014 11:50, Jordi Massaguer Pla wrote:
On 09/30/2014 02:23 PM, Marcus Rueckert wrote:
Hi,
yesterday we migrated devel:languages:ruby:backports [1] and devel:languages:ruby [2] to the new ruby packaging scheme. my personal test projects [3] show, that this gives us a working base. So now it is the time to fix all the old cruft we have in d:l:r:e. Some packages havent been touched since 5+years and still have the packaging schema from back then.
Hi,
finally I've found the time to spend on this...
I've fixed about 300 of them that were straightforward.
There are a hundred still to fix which are:
- one needs a license fix, which I'll fix it with the gem2rpm.yml file and send a PR upstream - several need to have build requirements manually set, which are native gems. There is some metadata on the gem file that could be used for that. I'll check what can be done. - several have a name ending with the version, like actionpack_3_2. This needs the name in the resulting spec to be fixed. I'll see if we can do it with the gem2rpm.yml file.
There is version_suffix for that in the yml file Greetings, Stephan -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
On 12/10/2014 12:58 PM, Stephan Kulow wrote:
On 10.12.2014 11:50, Jordi Massaguer Pla wrote:
On 09/30/2014 02:23 PM, Marcus Rueckert wrote:
Hi,
yesterday we migrated devel:languages:ruby:backports [1] and devel:languages:ruby [2] to the new ruby packaging scheme. my personal test projects [3] show, that this gives us a working base. So now it is the time to fix all the old cruft we have in d:l:r:e. Some packages havent been touched since 5+years and still have the packaging schema from back then.
Hi,
finally I've found the time to spend on this...
I've fixed about 300 of them that were straightforward.
There are a hundred still to fix which are:
- one needs a license fix, which I'll fix it with the gem2rpm.yml file and send a PR upstream Looks like we have a gem with no license:
https://github.com/sporkrb/spork-testunit/issues/51 Should we remove it from devel:languages:ruby:extensions ?
- several need to have build requirements manually set, which are native gems. There is some metadata on the gem file that could be used for that. I'll check what can be done. - several have a name ending with the version, like actionpack_3_2. This needs the name in the resulting spec to be fixed. I'll see if we can do it with the gem2rpm.yml file. There is version_suffix for that in the yml file
Thanks! I've fixed/reviewed another set of 40 rubygem RPMs with that. -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
On 10.12.2014 19:25, Jordi Massaguer Pla wrote:
On 12/10/2014 12:58 PM, Stephan Kulow wrote:
On 10.12.2014 11:50, Jordi Massaguer Pla wrote:
On 09/30/2014 02:23 PM, Marcus Rueckert wrote:
Hi,
yesterday we migrated devel:languages:ruby:backports [1] and devel:languages:ruby [2] to the new ruby packaging scheme. my personal test projects [3] show, that this gives us a working base. So now it is the time to fix all the old cruft we have in d:l:r:e. Some packages havent been touched since 5+years and still have the packaging schema from back then.
Hi,
finally I've found the time to spend on this...
I've fixed about 300 of them that were straightforward.
There are a hundred still to fix which are:
- one needs a license fix, which I'll fix it with the gem2rpm.yml file and send a PR upstream Looks like we have a gem with no license:
https://github.com/sporkrb/spork-testunit/issues/51
Should we remove it from devel:languages:ruby:extensions ?
I assume someone added it as he needs it? If so, declare it SUSE-NonFree so it does not up on products. Don't make up licenses - but I don't think we need it to remove it, most people new to OSS blindly assume everything they put on github is public domain. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
On 12/11/2014 10:23 AM, Stephan Kulow wrote:
On 10.12.2014 19:25, Jordi Massaguer Pla wrote:
On 12/10/2014 12:58 PM, Stephan Kulow wrote:
On 10.12.2014 11:50, Jordi Massaguer Pla wrote:
On 09/30/2014 02:23 PM, Marcus Rueckert wrote:
Hi,
yesterday we migrated devel:languages:ruby:backports [1] and devel:languages:ruby [2] to the new ruby packaging scheme. my personal test projects [3] show, that this gives us a working base. So now it is the time to fix all the old cruft we have in d:l:r:e. Some packages havent been touched since 5+years and still have the packaging schema from back then.
Hi,
finally I've found the time to spend on this...
I've fixed about 300 of them that were straightforward.
There are a hundred still to fix which are:
- one needs a license fix, which I'll fix it with the gem2rpm.yml file and send a PR upstream Looks like we have a gem with no license:
https://github.com/sporkrb/spork-testunit/issues/51
Should we remove it from devel:languages:ruby:extensions ?
I assume someone added it as he needs it? If so, declare it SUSE-NonFree so it does not up on products. Don't make up licenses - but I don't think we need it to remove it, most people new to OSS blindly assume everything they put on github is public domain.
I declared as SUSE-NonFree. It is a testing gem thus I assume this will be used in development and testing but shouldn't get into a product. Thanks jordi
Greetings, Stephan
-- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
On 12/11/2014 10:54 AM, Jordi Massaguer Pla wrote:
On 12/11/2014 10:23 AM, Stephan Kulow wrote:
On 10.12.2014 19:25, Jordi Massaguer Pla wrote:
On 12/10/2014 12:58 PM, Stephan Kulow wrote:
On 10.12.2014 11:50, Jordi Massaguer Pla wrote:
On 09/30/2014 02:23 PM, Marcus Rueckert wrote:
Hi,
yesterday we migrated devel:languages:ruby:backports [1] and devel:languages:ruby [2] to the new ruby packaging scheme. my personal test projects [3] show, that this gives us a working base. So now it is the time to fix all the old cruft we have in d:l:r:e. Some packages havent been touched since 5+years and still have the packaging schema from back then.
Hi,
finally I've found the time to spend on this...
I've fixed about 300 of them that were straightforward.
There are a hundred still to fix which are:
There are 5 left to update to the new packaging scheme: rubygem-chef rubygem-chef-solr rubygem-railties-3_2 They have more custom code in the post install steps and I have to look at it and test it. rubygem-rdiscount There is a problem with the ruby-devel version requirement rubygem-restful_authentication The gem is called jeremydurham-restful_authentication which is not the name of the RPM I'll be looking at that during this week. This does not mean that all rubygem build for all architectures. Still a lot of them need to be looked at, but at least they all have the new packaging scheme. -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
On 12/15/2014 11:38 AM, Jordi Massaguer Pla wrote:
On 12/11/2014 10:54 AM, Jordi Massaguer Pla wrote:
On 12/11/2014 10:23 AM, Stephan Kulow wrote:
On 10.12.2014 19:25, Jordi Massaguer Pla wrote:
On 12/10/2014 12:58 PM, Stephan Kulow wrote:
On 10.12.2014 11:50, Jordi Massaguer Pla wrote:
On 09/30/2014 02:23 PM, Marcus Rueckert wrote: > Hi, > > yesterday we migrated devel:languages:ruby:backports [1] and > devel:languages:ruby [2] to the new ruby packaging scheme. my > personal > test > projects [3] show, that this gives us a working base. So now it > is the > time to fix all the old cruft we have in d:l:r:e. Some packages > havent > been touched since 5+years and still have the packaging schema from > back > then. > Hi,
finally I've found the time to spend on this...
Finally I've been able to update them all (452 of 1314 RPMs). I've updated the specs to the new packaging scheme. This does not mean they all build, but I've made sure not to break anything that was already working. There is still work to do. Mostly check the failures and unresolvables which, for openSUSE 13.2, are 19 and 61. I can't tell for Factory cause right now most of them are being rebuilt. -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org
participants (3)
-
Jordi Massaguer Pla
-
Marcus Rueckert
-
Stephan Kulow