- Update to 0.0.5

reenable conflicts support but only generate conflicts for
  "non-default" gems. the default gems are not actually installed
  into the gem path but their files reside in the normal ruby
  library search path.

- Update to 0.0.4
  disable conflicts for now

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-bundled-gems-rpmhelper?expand=0&rev=4
This commit is contained in:
Marcus Rückert 2024-09-05 22:41:28 +00:00 committed by Git OBS Bridge
parent e30c2861c3
commit 89aed510c5
3 changed files with 22 additions and 3 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Sep 5 22:40:08 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to 0.0.5
reenable conflicts support but only generate conflicts for
"non-default" gems. the default gems are not actually installed
into the gem path but their files reside in the normal ruby
library search path.
-------------------------------------------------------------------
Thu Sep 5 17:55:29 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Update to 0.0.4
disable conflicts for now
-------------------------------------------------------------------
Thu Sep 5 13:13:36 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>

View File

@ -17,7 +17,7 @@
Name: ruby-bundled-gems-rpmhelper
Version: 0.0.3
Version: 0.0.4
Release: 0
Summary: A little helper to add provides for intree gems during a ruby build
License: MIT

View File

@ -66,7 +66,11 @@ print(STDERR "Running $0 in $mode\n");
my $fh = *STDIN;
while ( ! eof($fh) ) {
defined( my $line = readline $fh ) or die "readline failed: $!";
if ($line =~ /\/usr\/lib\d*\/ruby\/gems\/(?<ruby_abi_version>[^\/]+)\/specifications(\/default)?\/(?<gem_name>.+)-(?<gem_version>\d+\.[^-]+)\.gemspec\n\z/) {
handle_line($line, 'ruby', $+{ruby_abi_version}, $+{gem_name}, $+{gem_version}, $mode);
if ($line =~ /(?<base_path>\/usr\/lib\d*\/ruby\/gems\/(?<ruby_abi_version>[^\/]+))\/specifications(?<has_default>\/default)?\/(?<gem_name>.+)-(?<gem_version>\d+\.[^-]+)\.gemspec\n\z/) {
## we only need need to conflict when we actually have conflicting files
if ( ("provides" eq $mode ) || ( not(defined($+{has_default})) && "conflicts" eq $mode) ) {
handle_line($line, 'ruby', $+{ruby_abi_version}, $+{gem_name}, $+{gem_version}, $mode);
}
};
}