98 Commits

Author SHA256 Message Date
d11cf418c0 Accepting request 1325981 from devel:languages:ruby
- Some gems (especially rust based ones) start failing if
  /usr/bin/ruby is not available. But they can take the desired
  ruby binary from the RUBY environment variable. Since we can not
  really set that properly via pre_install, set it within the loop
  to the current ruby binary before calling the ruby part of
  gem_install.sh.

OBS-URL: https://build.opensuse.org/request/show/1325981
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=33
2026-01-09 16:02:56 +00:00
a87b82a902 - Some gems (especially rust based ones) start failing if
/usr/bin/ruby is not available. But they can take the desired
  ruby binary from the RUBY environment variable. Since we can not
  really set that properly via pre_install, set it within the loop
  to the current ruby binary before calling the ruby part of
  gem_install.sh.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=147
2026-01-08 15:07:00 +00:00
2ff870bdc9 Accepting request 1324398 from devel:languages:ruby
- instead of always recommending the gem2rpm of the default ruby
  version, lets recommend the version of ruby which we actually
  install

- Fix rubyX.Y-with(out)-yjit/jemalloc Requires. They failed when
  using prerelease ruby packages. We introduce 2 new macros:
  %requires_on_provides_eq
  %requires_on_provides_ge
  Which then are used by the subpackage template.
  The macros are copies of the normal %requires_(eq|ge) with 2
  changes
  - only the first argument is used
  - rpm -q is called with --whatprovides

- Update gem_packages.spec.erb 
  the has_rdoc? function was actually removed. I really thought
  would never happen. Since it was removed without a replacement,
  we disable the rdoc/ri packages all the time now.

OBS-URL: https://build.opensuse.org/request/show/1324398
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=32
2026-01-05 13:51:18 +00:00
00f4b34a66 fix recommends
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=145
2025-12-25 13:28:19 +00:00
c09fd7ce55 - instead of always recommending the gem2rpm of the default ruby
version, lets recommend the version of ruby which we actually
  install

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=144
2025-12-25 12:48:46 +00:00
b2b55cf43c - Fix rubyX.Y-with(out)-yjit/jemalloc Requires. They failed when
using prerelease ruby packages. We introduce 2 new macros:
  %requires_on_provides_eq
  %requires_on_provides_ge
  Which then are used by the subpackage template.
  The macros are copies of the normal %requires_(eq|ge) with 2
  changes
  - only the first argument is used
  - rpm -q is called with --whatprovides

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=143
2025-12-02 17:02:13 +00:00
1d94372590 sync ruby-common and rubygem-gem2rpm
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=142
2025-12-02 14:51:11 +00:00
f1afe410e5 Accepting request 1239483 from devel:languages:ruby
Forwarded request #1239482 from darix

- do not generate unversioned conflicts

OBS-URL: https://build.opensuse.org/request/show/1239483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=31
2025-01-23 16:56:44 +00:00
2562d46f44 Accepting request 1239482 from home:darix:apps
- do not generate unversioned conflicts

OBS-URL: https://build.opensuse.org/request/show/1239482
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=140
2025-01-22 10:29:11 +00:00
dc7fac64fe Accepting request 1219472 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1219472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=30
2024-10-31 15:09:11 +00:00
74d73c4537 - update gem_packages.spec.erb by syncing with gem2rpm
- drop group tag
  - only emit manual comments if we actually put out content
  - mark docs explicitely with the %doc tag
  - stop using deprecated PreReq for update-alternatives

- update suse.patch and sync in ruby-common/gem_packages.spec.erb

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=138
2024-10-08 00:30:02 +00:00
1ad2c78704 Accepting request 1204269 from devel:languages:ruby
- update gem_packages.spec.erb:
  dont strip the newline at the end of main:filelist output

OBS-URL: https://build.opensuse.org/request/show/1204269
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=29
2024-09-29 16:09:27 +00:00
ceed75b745 - update gem_packages.spec.erb:
dont strip the newline at the end of main:filelist output

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=136
2024-09-28 00:01:22 +00:00
65e77958c0 Accepting request 1179322 from devel:languages:ruby
- refactor the jemalloc requires code so that it can accomodate
  more feature flags
- add requires for yjit enabled ruby

OBS-URL: https://build.opensuse.org/request/show/1179322
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=28
2024-06-09 18:19:02 +00:00
d3b2f5d26b handle yjit in provides and requires
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=134
2024-06-07 14:11:41 +00:00
081e5d8a40 Accepting request 1128358 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1128358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=27
2023-11-23 20:38:38 +00:00
34a5cb605f - gem_cleanup macro: yet another place which got hit by ruby 3.3
replace `gem env gemdir` with
  `ruby -r rubygems -e 'puts Gem.default_dir'`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=132
2023-11-16 14:26:47 +00:00
9bcbcebde7 - Fix for the previous change. we need to set the GEM_HOME before
even wrapping into the re-exec with ruby.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=131
2023-11-14 10:29:57 +00:00
b86883c1ef Accepting request 1125725 from home:darix:apps
jemalloc locking + fix for ruby3.3~preview3 GEM_HOME breakage

OBS-URL: https://build.opensuse.org/request/show/1125725
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=130
2023-11-13 20:56:58 +00:00
0e2ca2dc50 Accepting request 1104976 from devel:languages:ruby
OBS-URL: https://build.opensuse.org/request/show/1104976
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=26
2023-08-22 06:55:12 +00:00
Stephan Kulow
004b56a345 Accepting request 1085295 from home:jengelh:branches:devel:languages:ruby
- Remove old specfile constructs

OBS-URL: https://build.opensuse.org/request/show/1085295
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=128
2023-08-21 05:31:46 +00:00
d794453936 Accepting request 1086831 from devel:languages:ruby
- bump the version so we can require the new version to make it
  easier to depend on the new functionality

- Support runtime dependencies for the generated subpackages:
  syntax:
  Requires: rubygem(gemname)
  Recommends: rubygem(gemname:x) >= x.y
  This will be transformed into
  Requires: rubygem(ruby:<rubyabi>:gemname)
  Recommends: rubygem(ruby:<rubyabi>:gemname:x) >= x.y
  That way we ensure that every package only requires rubygems for
  the current ruby version.

OBS-URL: https://build.opensuse.org/request/show/1086831
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=25
2023-05-14 14:31:32 +00:00
8b3b52ffd4 - bump the version so we can require the new version to make it
easier to depend on the new functionality

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=126
2023-05-12 21:29:34 +00:00
9ac0f8e89f - Support runtime dependencies for the generated subpackages:
syntax:
  Requires: rubygem(gemname)
  Recommends: rubygem(gemname:x) >= x.y
  This will be transformed into
  Requires: rubygem(ruby:<rubyabi>:gemname)
  Recommends: rubygem(ruby:<rubyabi>:gemname:x) >= x.y
  That way we ensure that every package only requires rubygems for
  the current ruby version.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=125
2023-05-12 21:25:06 +00:00
abf426b246 Accepting request 1085263 from devel:languages:ruby
- cleanup irp code
  - unify error handling using the exit_with_error function
  - ensure we add generated files
  - checkin the newly created package

- move new tools into a subpackage ruby-packaging-helpers to avoid
  dependency to /usr/bin/ruby

- Add 2 new utilities
  - irp aka initialize ruby package
    does exactly what the name says. does all the work to
    initialize a new ruby package
  - bundler-dumpdeps: script to generate BR/Requires based on a
    Gemfile.

OBS-URL: https://build.opensuse.org/request/show/1085263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=24
2023-05-08 15:23:46 +00:00
996570b24a Accepting request 1085262 from home:darix:apps
- cleanup irp code
  - unify error handling using the exit_with_error function
  - ensure we add generated files
  - checkin the newly created package

- move new tools into a subpackage ruby-packaging-helpers to avoid
  dependency to /usr/bin/ruby

- Add 2 new utilities
  - irp aka initialize ruby package
    does exactly what the name says. does all the work to
    initialize a new ruby package
  - bundler-dumpdeps: script to generate BR/Requires based on a
    Gemfile.

OBS-URL: https://build.opensuse.org/request/show/1085262
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=123
2023-05-07 00:37:55 +00:00
383496ee6e Accepting request 1064060 from devel:languages:ruby
- do not rely on file dependencies for getopt

- in the dependency generator for Gemfile.lock we now skip vendored
  deps

OBS-URL: https://build.opensuse.org/request/show/1064060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=23
2023-02-18 16:10:12 +00:00
9975e4f980 - do not rely on file dependencies for getopt
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=121
2023-02-09 16:51:04 +00:00
04377fa946 Accepting request 1045283 from home:darix:apps
- in the dependency generator for Gemfile.lock we now skip vendored
  deps

OBS-URL: https://build.opensuse.org/request/show/1045283
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=120
2022-12-25 12:07:00 +00:00
71baa2551a Accepting request 1037867 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1037867
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=22
2022-11-25 12:11:20 +00:00
3b41fcbebb - actually bump the version so we can require the newer version for
ruby3.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=118
2022-11-17 12:01:52 +00:00
890d4a3c96 - replace File.exists? with File.exist? as the File.exists?
is no longer supported in 3.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=117
2022-11-17 12:00:45 +00:00
c9e6fe1d81 Accepting request 983973 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/983973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=21
2022-06-21 15:15:23 +00:00
2c27d98c49 Accepting request 982449 from home:darix:apps
- make %gem_unpack and %gem_build work when the default system ruby
  is not installed:
  both macros now use the %{gem_binary} define and we have a common
  macro %{set_gem_binary} to set this variable. the set macro will
  use the ruby-find-versioned to find a versioned version of gem.

OBS-URL: https://build.opensuse.org/request/show/982449
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=115
2022-06-13 12:53:59 +00:00
b756b69e13 Accepting request 957504 from devel:languages:ruby
OBS-URL: https://build.opensuse.org/request/show/957504
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=20
2022-02-26 16:01:41 +00:00
Stephan Kulow
20bf0b78b6 Accepting request 957161 from home:dirkmueller:Factory
- avoid bashism in gem_build_cleanup

OBS-URL: https://build.opensuse.org/request/show/957161
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=114
2022-02-25 06:39:18 +00:00
3933d284ca Accepting request 913949 from devel:languages:ruby
- Do not create links in /etc/alternatives at all - they are ghosts
  and rpm database will only be confused if we have some wrong
  information about them (the link target is defined at runtime)
 
  This aligns with ruby2.7 package to avoid file conflicts about
  bundler and other built in gems

OBS-URL: https://build.opensuse.org/request/show/913949
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=19
2021-08-26 21:14:16 +00:00
0445454912 Accepting request 913938 from home:coolo:branches:devel:languages:ruby
- Do not create links in /etc/alternatives at all - they are ghosts
  and rpm database will only be confused if we have some wrong
  information about them (the link target is defined at runtime)
 
  This aligns with ruby2.7 package to avoid file conflicts about
  bundler and other built in gems

OBS-URL: https://build.opensuse.org/request/show/913938
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=113
2021-08-24 07:21:08 +00:00
aa94f4adc0 Accepting request 904758 from devel:languages:ruby
- Fix the links in /etc/alternatives not to point to themselves

For staging:n

OBS-URL: https://build.opensuse.org/request/show/904758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=18
2021-07-20 13:38:43 +00:00
Stephan Kulow
220aa26aba - Fix the links in /etc/alternatives not to point to themselves
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=112
2021-07-08 12:10:56 +00:00
c8a5b133e4 Accepting request 866992 from devel:languages:ruby
- cleanup the .gem.* dirs that rubygems creates on 3.0
  (boo#1180528)

- add support to package rubygems plugin dirs 
  as the file is conflicting you can only have one version of the
  same gem installed if it provides a rubygems plugin. at least for
  now

- disable docs and testsuite packaging by default
- support --no-document option

OBS-URL: https://build.opensuse.org/request/show/866992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=17
2021-01-30 12:55:59 +00:00
db693fc8b7 Accepting request 866991 from home:darix:apps
- cleanup the .gem.* dirs that rubygems creates on 3.0
  (boo#1180528)

OBS-URL: https://build.opensuse.org/request/show/866991
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=110
2021-01-26 19:18:16 +00:00
Stephan Kulow
6d3ada995d Accepting request 866671 from home:darix:apps
- add support to package rubygems plugin dirs 
  as the file is conflicting you can only have one version of the
  same gem installed if it provides a rubygems plugin. at least for
  now

- disable docs and testsuite packaging by default
- support --no-document option

OBS-URL: https://build.opensuse.org/request/show/866671
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=109
2021-01-26 14:22:17 +00:00
17981b691c Accepting request 736057 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/736057
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=16
2019-10-10 09:51:59 +00:00
78d172c255 Accepting request 729438 from home:computersalat:devel:ruby
fix build for SLE 12 / Leap 42

OBS-URL: https://build.opensuse.org/request/show/729438
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=107
2019-10-08 09:29:17 +00:00
b6710e98cf Accepting request 711680 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/711680
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=15
2019-06-30 08:14:21 +00:00
3fcde39a69 Accepting request 701957 from home:dimstar:Factory
Move RPM macros to %_rpmmacrodir.

OBS-URL: https://build.opensuse.org/request/show/701957
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=105
2019-06-24 10:52:16 +00:00
Stephan Kulow
5ec336450d Accepting request 679513 from devel:languages:ruby
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/679513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=14
2019-03-01 19:29:34 +00:00
d867adcd64 Accepting request 679061 from home:darix:apps
- rails.macros: add macro to fix ruby shebang line

- rails.macros: always use ./bin/* stubs for calling binaries

- do not try to delete git files in the rails macros

OBS-URL: https://build.opensuse.org/request/show/679061
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=103
2019-02-25 20:42:46 +00:00
887f36f5d7 Accepting request 660610 from home:darix:apps
- --no-rdoc/--no-ri are obsolete in, if we get it passed in convert
  them to --no-document

OBS-URL: https://build.opensuse.org/request/show/660610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=102
2018-12-21 23:36:25 +00:00