Commit Graph

83 Commits

Author SHA256 Message Date
Stephan Kulow
74c83c31c9 Accepting request 297509 from home:darix:ruby
- The script sometimes returned from gem install already although
  the install wasn't finished yet. This broke e.g. the binary
  rename part.

OBS-URL: https://build.opensuse.org/request/show/297509
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=86
2015-04-17 11:51:10 +00:00
Stephan Kulow
5a8ec3496b Accepting request 290792 from home:darix:ruby
- Fail early if gem install fails
  This avoids confusing error messages at the end of the build.

- More fixes for ruby 1.8

- Ruby 1.8 insists on the () for the parameter

- Cleaner solution for the extensions doc dir
  The other solution was also failing on 1.8

- Forgot another option for forwarding

- Do not overwrite options.otheropts

- Fixed forwarding of options to gem install

- Only use the extensions doc dir on MRI 2.1.x

- Fix the ruby suffix for distributions before 13.2
- Do not fail with --gem-binary

- switch to ruby version of gem_install.sh
- added ruby-find-versioned to make it easier to find versioned
  binaries.
  - all for loops in the shell scripts and macros are now using
    this script

OBS-URL: https://build.opensuse.org/request/show/290792
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=85
2015-03-14 16:46:00 +00:00
0740808b1d - call ruby with -x from shell wrappers otherwise we run into an
endless loop

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=84
2015-03-12 16:17:39 +00:00
abcd646b5a - rubygemsdeps.rb: add shell-launcher to avoid dependency on
a fixed ruby version

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=83
2015-03-11 17:11:16 +00:00
Dominique Leuenberger
0c8c995fea Accepting request 282339 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/282339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=6
2015-01-23 14:46:04 +00:00
e9e080dd40 Accepting request 281049 from home:dirkmueller:branches:devel:languages:ruby
- gem_install.sh: fix ruby shebang patching

OBS-URL: https://build.opensuse.org/request/show/281049
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=81
2015-01-14 10:41:22 +00:00
Dominique Leuenberger
555369414c Accepting request 266116 from devel:languages:ruby
1

OBS-URL: https://build.opensuse.org/request/show/266116
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=5
2014-12-23 10:52:18 +00:00
Stephan Kulow
783503d08e Accepting request 261861 from home:Ledest:bashisms
fix bashisms in generate_buildrequires.sh script

OBS-URL: https://build.opensuse.org/request/show/261861
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=79
2014-12-22 07:37:56 +00:00
Stephan Kulow
56bc898953 Accepting request 258690 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/258690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=4
2014-11-05 15:26:25 +00:00
a500be6d99 - ignore any files we find in */.gem/*. in some versions of
rubygems, gems that are installed are also copied to ~/.gem/.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=77
2014-10-21 15:58:26 +00:00
96d3b7f5ee Accepting request 257887 from devel:languages:ruby:backports
- restore changes lost by the previous change
  - load rbconfigpackagingsupport if available and fail gracefully
    if not.
  - dont use not() it breaks the build on 1.8
  - remove requires onto the ruby version

OBS-URL: https://build.opensuse.org/request/show/257887
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=76
2014-10-21 15:56:21 +00:00
Stephan Kulow
123d50d553 Accepting request 257498 from devel:languages:ruby
- update gem_packages template from git

- we dont always have /usr/bin/ruby, use perl for patching the
  version in the bin wrapper. also replaced the sed for patching
  the shebang line.
- fixed a bad bug in the shebang line. we had an additional "."
  there.

- install gemrc on all distros

- dont delete .a files. there are actually gems where we need them
  like rubygem-libv8 for rubygem-therubyracer

- fix the case where we dont symlink the binaries. 

- gem_cleanup macro was missed when updating for old ruby versions.

- switch from "ruby -rrubygems -e 
  'print Gem::Specification.new.base_dir'"
  to "gem env gemdir"
 

- gem_build_cleanup: also delete static library files

- ruby 1.8 support:
  - gem_packages.sh: change to /usr/src/packages when
    /home/abuild/rpmbuild doesn't exist.
  - gem_packages template:
    - require rbconfigpackagingsupport to fix the ruby_install_name
      dependent variables. we do that for all distros but catch the

OBS-URL: https://build.opensuse.org/request/show/257498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=3
2014-10-20 05:27:08 +00:00
Stephan Kulow
dd9e5e4b5d - update gem_packages template from git
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=74
2014-10-18 05:37:34 +00:00
0c812e5108 Accepting request 253103 from home:darix:ruby
- we dont always have /usr/bin/ruby, use perl for patching the
  version in the bin wrapper. also replaced the sed for patching
  the shebang line.
- fixed a bad bug in the shebang line. we had an additional "."
  there.

- install gemrc on all distros

- dont delete .a files. there are actually gems where we need them
  like rubygem-libv8 for rubygem-therubyracer

- fix the case where we dont symlink the binaries. 

- gem_cleanup macro was missed when updating for old ruby versions.

- switch from "ruby -rrubygems -e 
  'print Gem::Specification.new.base_dir'"
  to "gem env gemdir"
 

- gem_build_cleanup: also delete static library files

- ruby 1.8 support:
  - gem_packages.sh: change to /usr/src/packages when
    /home/abuild/rpmbuild doesn't exist.
  - gem_packages template:
    - require rbconfigpackagingsupport to fix the ruby_install_name
      dependent variables. we do that for all distros but catch the
      LoadError and continue.
    - and dont use not(), we need to use "!" instead.

OBS-URL: https://build.opensuse.org/request/show/253103
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=73
2014-09-29 13:29:35 +00:00
Stephan Kulow
3bcddbc7fe Accepting request 249630 from devel:languages:ruby
1

OBS-URL: https://build.opensuse.org/request/show/249630
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=2
2014-09-20 13:51:10 +00:00
Stephan Kulow
d141f8716a Accepting request 249617 from home:darix:ruby
- the ruby(abi) = $interpreter:$abiversion was not a good idea. rpm
  treats the $interpreter part as epoch. instead we use now:
  $interpreter(abi) = $abiversion
  For MRI it means we are basically back to ruby(abi).
  Examples for alternative ruby interpreters are rubinius(abi) and
  jruby(abi) (bnc#896658)

OBS-URL: https://build.opensuse.org/request/show/249617
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=71
2014-09-16 17:50:15 +00:00
Stephan Kulow
1ccffc1cd9 Accepting request 248348 from devel:languages:ruby
new package needed for new ruby pkging

OBS-URL: https://build.opensuse.org/request/show/248348
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=1
2014-09-12 09:28:23 +00:00
Stephan Kulow
947e1e510d Accepting request 248313 from devel:languages:ruby:factory
- disable extensions doc dir on rubinius

- workaround https://github.com/rubinius/rubinius/issues/2732
  for UTF8 locale in gem_packages.sh

- we actually need the splitted version in any case. uncomment it
  again

- pass the ruby abi as hash containing :interpreter, :version,
  :abi as keys. that way we have the full new string but also the
  version for the 1.8 support

- rubygemsdeps.rb:
  - make the provides/requires also include the ruby interpreter
  - no longer emit the old package name style provides
- rubygems.attr:
  - make the path a bit more relaxed so we can match other ruby
    interpreter too

- added ruby-common.macros:
  Holds the common macros for the rpm macro based buildrequires.
- merged ruby.macros into ruby.rpm-macros:
  the later file now carries the rb_* and gem_* macros

- ruby.macros: drop the duplicate gem macros

- fix small typo in opensuse.spec.erb which broke the formatting.

- no longer require ruby(-devel). ruby-common is required by
  rubyX.Y so we should always be installed and this breaks a small

OBS-URL: https://build.opensuse.org/request/show/248313
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=69
2014-09-10 11:32:21 +00:00
Stephan Kulow
26e6542b07 Accepting request 232110 from home:aspiers:branches:devel:languages:ruby
- eliminate "useless-provides rubygem-foo" rpmlint warning for
  every gem: "Provides: rubygem-foo = 1.2.3" is not required
  because rpm implicitly adds "Provides: rubygem-foo = 1.2.3-4"

OBS-URL: https://build.opensuse.org/request/show/232110
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=68
2014-04-30 05:08:37 +00:00
Klaus Kämpf
6e886a6048 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=67 2014-02-13 15:13:27 +00:00
Stephan Kulow
e96f0e3337 - replace all */ruby with /usr/bin/ruby
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=13
2012-07-30 10:39:30 +00:00
Stephan Kulow
0d05c4d098 catch errors
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=12
2012-07-28 20:30:18 +00:00
Stephan Kulow
e12482ed93 - replace /usr/local/bin/ruby with /usr/bin/ruby - a very often mistake
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=11
2012-07-27 14:03:20 +00:00
Stephan Kulow
0c14cc3779 Accepting request 128985 from devel:languages:ruby:backports
- fix ruby provides/requires with ruby 1.8

OBS-URL: https://build.opensuse.org/request/show/128985
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=10
2012-07-26 11:15:10 +00:00
Stephan Kulow
c609c92ffb OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=9 2012-07-26 10:41:00 +00:00
Stephan Kulow
67525b8a91 we need newer rubygems version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=8
2012-07-26 10:40:23 +00:00
Stephan Kulow
c4b3d950d4 - old gems do not have a gem unpack --spec, so use gem specification
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=7
2012-07-26 10:28:50 +00:00
Stephan Kulow
8661186776 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=6 2012-07-26 10:19:59 +00:00
Stephan Kulow
ca4771e4a3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=5 2012-07-26 09:54:10 +00:00
Stephan Kulow
e78369db43 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=4 2012-07-26 09:32:52 +00:00
Stephan Kulow
791bc4b301 Accepting request 128978 from devel:languages:ruby:backports
- catch unspecified gem_binary

OBS-URL: https://build.opensuse.org/request/show/128978
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=3
2012-07-26 09:30:31 +00:00
Stephan Kulow
8520e5a326 add a license
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=2
2012-07-26 07:41:10 +00:00
Stephan Kulow
b52fd6d705 osc copypac from project:devel:languages:ruby:backports package:ruby-common revision:1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=1
2012-07-26 07:22:03 +00:00