Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-gem2rpm for openSUSE:Factory checked in at 2023-02-18 17:10:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-gem2rpm (Old) and /work/SRC/openSUSE:Factory/.rubygem-gem2rpm.new.22824 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-gem2rpm" Sat Feb 18 17:10:07 2023 rev:31 rq:1063066 version:0.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-gem2rpm/rubygem-gem2rpm.changes 2022-11-25 13:11:30.815798616 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-gem2rpm.new.22824/rubygem-gem2rpm.changes 2023-02-18 17:10:12.290667462 +0100 @@ -1,0 +2,23 @@ +Fri Feb 3 16:04:04 UTC 2023 - Marcus Rueckert <mrueck...@suse.de> + +- replace the old options to disable docs with the modern -N + +------------------------------------------------------------------- +Sun Dec 25 12:19:35 UTC 2022 - Marcus Rueckert <mrueck...@suse.de> + +- ruby 3.2.0 final has a normal ABI version again + +------------------------------------------------------------------- +Fri Dec 9 08:43:49 UTC 2022 - Martin Vidner <mvid...@suse.com> + +- Use git format-patch instead, fixing one more exists? occurrence +A 0033-Use-File.exist-instead-of-File.exists-which-was-remo.patch +- Note 0004-added-example-gem2rpm.yml.patch has the Rakefile hunk removed + +------------------------------------------------------------------- +Mon Dec 5 16:25:59 UTC 2022 - Martin Vidner <mvid...@suse.com> + +- Edit patches to use File.exist? instead of File.exists? which was + removed in Ruby 3.2 + +------------------------------------------------------------------- New: ---- 0033-Use-File.exist-instead-of-File.exists-which-was-remo.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-gem2rpm.spec ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.170673018 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.174673044 +0100 @@ -88,6 +88,7 @@ Patch30: 0030-gem_package.spec.erb-sync-with-ruby-common.patch Patch31: 0031-use-template-opensuse-on-openSUSE-Tumbleweed-where-e.patch Patch32: 0032-Replace-no-rdoc-no-ri-with-no-document.patch +Patch33: 0033-Use-File.exist-instead-of-File.exists-which-was-remo.patch Patch128: template_loader.patch Summary: Generate rpm specfiles from gems License: GPL-2.0-or-later @@ -133,6 +134,7 @@ %patch30 -p1 %patch31 -p1 %patch32 -p1 +%patch33 -p1 %patch128 -p1 %build @@ -140,7 +142,7 @@ %gem_build %install -%gem_install -f --no-rdoc --no-ri --symlink-binaries --doc-files="AUTHORS LICENSE README" +%gem_install -f -N --symlink-binaries --doc-files="AUTHORS LICENSE README" for i in %{buildroot}%{_docdir}/*rubygem-gem2rpm*/ ; do install -m 0644 %{S:1} $i/gem2rpm.yml done @@ -889,14 +891,14 @@ %ghost %{_sysconfdir}/alternatives/gem2rpm.ruby3.2 %ghost %{_sysconfdir}/alternatives/gem2rpm-%{version} # cache file -%{_libdir}/ruby/gems/3.2.0+3/cache/gem2rpm-%{version}.gem -%{_libdir}/ruby/gems/3.2.0+3/gems/gem2rpm-%{version} -%{_libdir}/ruby/gems/3.2.0+3/specifications/gem2rpm-%{version}.gemspec +%{_libdir}/ruby/gems/3.2.0/cache/gem2rpm-%{version}.gem +%{_libdir}/ruby/gems/3.2.0/gems/gem2rpm-%{version} +%{_libdir}/ruby/gems/3.2.0/specifications/gem2rpm-%{version}.gemspec %if %{with docs} %files -n ruby3.2-rubygem-gem2rpm-doc %defattr(-,root,root,-) -%doc %{_libdir}/ruby/gems/3.2.0+3/doc/gem2rpm-%{version} +%doc %{_libdir}/ruby/gems/3.2.0/doc/gem2rpm-%{version} %endif %endif ++++++ 0001-use-the-ID-from-os-release-to-use-the-proper-templat.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.202673220 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.210673271 +0100 @@ -1,7 +1,7 @@ From 91bc63e3fbba24a5f90c4fce4f74b371c4694657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueck...@suse.de> Date: Thu, 24 Jul 2014 16:46:19 +0200 -Subject: [PATCH 01/32] - use the ID from os-release to use the proper template +Subject: [PATCH 01/33] - use the ID from os-release to use the proper template --- bin/gem2rpm | 10 ++++++++++ @@ -29,6 +29,6 @@ template = Gem2Rpm::TEMPLATE else -- -2.20.1 +2.26.2 ++++++ 0002-added-basic-config-file-support-to-gem2rpm-in-yaml-f.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.222673346 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.226673372 +0100 @@ -1,7 +1,7 @@ From 1742038eb7ec8fcb25009ce8b270b420183875bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueck...@suse.de> Date: Thu, 24 Jul 2014 16:54:45 +0200 -Subject: [PATCH 02/32] added basic config file support to gem2rpm in yaml +Subject: [PATCH 02/33] added basic config file support to gem2rpm in yaml format. There is no validation as it is basically a hash where certain keys are @@ -89,6 +89,6 @@ unless local begin -- -2.20.1 +2.26.2 ++++++ 0003-new-opensuse-templates.-they-require-the-config-file.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.238673448 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.242673473 +0100 @@ -1,7 +1,7 @@ From 5e1e30e5addc99825b3bf873983ca48732493060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueck...@suse.de> Date: Thu, 24 Jul 2014 16:55:57 +0200 -Subject: [PATCH 03/32] new opensuse templates. they require the config file +Subject: [PATCH 03/33] new opensuse templates. they require the config file support. --- @@ -503,6 +503,6 @@ %changelog -- -2.20.1 +2.26.2 ++++++ 0004-added-example-gem2rpm.yml.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.254673549 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.258673574 +0100 @@ -1,8 +1,10 @@ From f408e57b282cd55d59c1317240ee9e0dc679373c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueck...@suse.de> Date: Thu, 24 Jul 2014 17:02:56 +0200 -Subject: [PATCH 04/32] added example gem2rpm.yml +Subject: [PATCH 04/33] added example gem2rpm.yml +This patch is edited to remove the Rakefile hunk. Rakefile is not part +of the *.gem --- Rakefile | 2 +- gem2rpm.yml.documentation | 70 +++++++++++++++++++++++++++++++++++++++ @@ -86,6 +88,6 @@ +# /bin/echo foo +# -- -2.20.1 +2.26.2 ++++++ 0005-properly-shorten-description-and-summary.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.274673675 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.278673700 +0100 @@ -1,7 +1,7 @@ From da07cd470611c3c6b70fc863e2d82a2862a068e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueck...@suse.de> Date: Thu, 24 Jul 2014 17:09:35 +0200 -Subject: [PATCH 05/32] properly shorten description and summary +Subject: [PATCH 05/33] properly shorten description and summary This also includes the description if we reuse the summary. --- @@ -54,6 +54,6 @@ def development_dependencies super.map {|d| Gem2Rpm::Dependency.new d} -- -2.20.1 +2.26.2 ++++++ 0006-Preserve-the-license-header-found-in-the-output-file.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.290673776 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.294673801 +0100 @@ -1,7 +1,7 @@ From 0f22d81f982e02523c852521a5b94db657fe6673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueck...@suse.de> Date: Thu, 24 Jul 2014 17:17:33 +0200 -Subject: [PATCH 06/32] Preserve the license header found in the output file +Subject: [PATCH 06/33] Preserve the license header found in the output file --- bin/gem2rpm | 13 +++++++++++-- @@ -57,6 +57,6 @@ download_path = "" unless local -- -2.20.1 +2.26.2 ++++++ 0007-fixes-for-the-opensuse-template.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.310673902 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.314673927 +0100 @@ -1,7 +1,7 @@ From eed51b54253c303c593d9466ed8ed17523bda3d1 Mon Sep 17 00:00:00 2001 From: Stephan Kulow <co...@suse.de> Date: Wed, 15 Oct 2014 10:38:29 +0200 -Subject: [PATCH 07/32] fixes for the opensuse template: +Subject: [PATCH 07/33] fixes for the opensuse template: - add one more space for sources - add empty lines in front of the warning preamble - otherwise format_spec_file @@ -52,6 +52,6 @@ end -%> <% if config[:patches] -%> -- -2.20.1 +2.26.2 ++++++ 0008-do-not-use-not-.-not-supported-on-1.8-e.g.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.330674028 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.334674054 +0100 @@ -1,7 +1,7 @@ From ba7932c7d7bc6a70a45ac6ebb841a9e1bf8bb86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Tue, 21 Oct 2014 14:54:55 +0200 -Subject: [PATCH 08/32] do not use not(). not supported on 1.8 e.g. +Subject: [PATCH 08/33] do not use not(). not supported on 1.8 e.g. --- templates/gem_packages.spec.erb | 4 ++-- @@ -30,6 +30,6 @@ %defattr(-,root,root,-) %doc <%= gem_doc_dir %> -- -2.20.1 +2.26.2 ++++++ 0009-No-longer-require-the-ruby-version-inside-the-subpac.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.346674129 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.350674155 +0100 @@ -1,7 +1,7 @@ From 13b02a1596a744ed70687dae0ffb465e1979221e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Tue, 21 Oct 2014 15:13:31 +0200 -Subject: [PATCH 09/32] No longer require the ruby version inside the +Subject: [PATCH 09/33] No longer require the ruby version inside the subpackage With the buildrequires we already make sure that the package is only @@ -28,6 +28,6 @@ <% if config[:main] && config[:main][:preamble] -%> <%= config[:main][:preamble] %> -- -2.20.1 +2.26.2 ++++++ 0010-Try-to-load-rbconfigpackagingsupport-and-fail-gracef.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.366674256 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.370674281 +0100 @@ -1,7 +1,7 @@ From 953ff66677490c78ceff14afc0365f832079333a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Tue, 21 Oct 2014 17:55:23 +0200 -Subject: [PATCH 10/32] Try to load rbconfigpackagingsupport and fail +Subject: [PATCH 10/33] Try to load rbconfigpackagingsupport and fail gracefully if not available The file will patch ruby_install_name on unversioned ruby installations. @@ -24,6 +24,6 @@ path.gsub(/\/-/, "/#{mod_full_name}") end -- -2.20.1 +2.26.2 ++++++ 0011-Add-support-for-scripts-pre-post-for-subpackages.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.386674382 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.390674407 +0100 @@ -1,7 +1,7 @@ From 0ee368bc6c4ea35d233dadbe1f2c7048a99d3dc4 Mon Sep 17 00:00:00 2001 From: Theo chatzimichos <tampak...@opensuse.org> Date: Fri, 5 Dec 2014 17:11:47 +0200 -Subject: [PATCH 11/32] Add support for :scripts: (pre/post) for subpackages +Subject: [PATCH 11/33] Add support for :scripts: (pre/post) for subpackages With this commit we can add pre/post/(etc) scripts in gem2rpm.yml for subpackages, as in the example below: @@ -40,6 +40,6 @@ end -%> -- -2.20.1 +2.26.2 ++++++ 0012-typo-in-gem2rpm.yml.documentation-custom_pkgs-instea.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.406674509 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.410674534 +0100 @@ -1,7 +1,7 @@ From 092f7ca4ff1f954dd8982acf7199cd15636e87f3 Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos <tampak...@opensuse.org> Date: Fri, 5 Dec 2014 17:16:41 +0200 -Subject: [PATCH 12/32] typo in gem2rpm.yml.documentation: :custom_pkgs: +Subject: [PATCH 12/33] typo in gem2rpm.yml.documentation: :custom_pkgs: instead of :custom: --- @@ -22,6 +22,6 @@ # :preamble: |- # Requires: ..... -- -2.20.1 +2.26.2 ++++++ 0013-Also-tag-LICENSE-MIT-as-docfile.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.426674635 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.430674660 +0100 @@ -1,7 +1,7 @@ From dad615aa35cbbe0d7351ea66af44a8548853a2da Mon Sep 17 00:00:00 2001 From: Dirk Mueller <dmuel...@suse.com> Date: Mon, 12 Jan 2015 15:34:26 +0100 -Subject: [PATCH 13/32] Also tag LICENSE-MIT as docfile +Subject: [PATCH 13/33] Also tag LICENSE-MIT as docfile Some packages (e.g. rubygem-http_parser) name it that way --- @@ -36,6 +36,6 @@ #$stderr.puts "PATH #{path} #{bpath} #{file}" docdirfiles << path if bpath == file -- -2.20.1 +2.26.2 ++++++ 0014-Refactor-into-multiple-lines.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.446674761 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.450674786 +0100 @@ -1,7 +1,7 @@ From 5bb494a7d6911754e485f6b729861771181bf2a0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller <dmuel...@suse.com> Date: Mon, 12 Jan 2015 15:51:08 +0100 -Subject: [PATCH 14/32] Refactor into multiple lines +Subject: [PATCH 14/33] Refactor into multiple lines Makes this easier to extend/read imho. --- @@ -54,6 +54,6 @@ #$stderr.puts "PATH #{path} #{bpath} #{file}" docdirfiles << path if bpath == file -- -2.20.1 +2.26.2 ++++++ 0015-Add-licence-to-the-list-of-license-files-as-well.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.470674912 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.474674938 +0100 @@ -1,7 +1,7 @@ From b10341f5c13d71271e195101e46213026f628048 Mon Sep 17 00:00:00 2001 From: Dirk Mueller <dmuel...@suse.com> Date: Mon, 12 Jan 2015 15:52:34 +0100 -Subject: [PATCH 15/32] Add 'licence' to the list of license files as well +Subject: [PATCH 15/33] Add 'licence' to the list of license files as well This is a misspelling, but seems to be common enough still --- @@ -34,6 +34,6 @@ license-mit mit-license -- -2.20.1 +2.26.2 ++++++ 0016-add-two-more-ways-to-express-changes.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.490675039 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.494675064 +0100 @@ -1,7 +1,7 @@ From 814a7133ce8ab7271cf0bf31ad6d4de94fec8863 Mon Sep 17 00:00:00 2001 From: Stephan Kulow <co...@suse.de> Date: Wed, 11 Feb 2015 02:05:31 +0100 -Subject: [PATCH 16/32] add two more ways to express changes +Subject: [PATCH 16/33] add two more ways to express changes --- templates/gem_packages.spec.erb | 2 ++ @@ -35,6 +35,6 @@ ).each { |file| bpath = path.downcase.gsub(%r{\.rdoc$}, '').gsub(%r{\.txt$}, '').gsub(%r{\.md$}, '') -- -2.20.1 +2.26.2 ++++++ 0017-.markdown-is-also-seen-in-the-wild.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.506675140 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.510675165 +0100 @@ -1,7 +1,7 @@ From 660fa598f3a78f94f35e1edf10d143dae5db62bb Mon Sep 17 00:00:00 2001 From: Stephan Kulow <co...@suse.de> Date: Wed, 11 Feb 2015 02:30:14 +0100 -Subject: [PATCH 17/32] .markdown is also seen in the wild +Subject: [PATCH 17/33] .markdown is also seen in the wild --- templates/gem_packages.spec.erb | 2 +- @@ -35,6 +35,6 @@ docdirfiles << path if bpath == file } -- -2.20.1 +2.26.2 ++++++ 0018-Only-use-the-extensions-doc-dir-on-MRI-2.1.x.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.526675266 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.530675291 +0100 @@ -1,7 +1,7 @@ From 7a45c828d05304d90b3a202e55acbbcaab5cdac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Fri, 13 Mar 2015 03:24:25 +0100 -Subject: [PATCH 18/32] Only use the extensions doc dir on MRI 2.1.x +Subject: [PATCH 18/33] Only use the extensions doc dir on MRI 2.1.x --- templates/gem_packages.spec.erb | 3 +++ @@ -22,6 +22,6 @@ rp = gem_spec.extensions_dir.rpartition(gem_spec.base_dir) return File.join(rp[1], 'doc', rp[2]) -- -2.20.1 +2.26.2 ++++++ 0019-Cleaner-solution-for-the-extensions-doc-dir.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.546675393 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.550675417 +0100 @@ -1,7 +1,7 @@ From 672a0405c2c191280887b4427a759490aa2ce5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Fri, 13 Mar 2015 14:53:04 +0100 -Subject: [PATCH 19/32] Cleaner solution for the extensions doc dir +Subject: [PATCH 19/33] Cleaner solution for the extensions doc dir The other solution was also failing on 1.8 --- @@ -26,6 +26,6 @@ return File.join(rp[1], 'doc', rp[2]) end -- -2.20.1 +2.26.2 ++++++ 0020-Ruby-1.8-insists-on-the-for-the-parameter.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.566675518 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.570675544 +0100 @@ -1,7 +1,7 @@ From f6ace6130df3a2ea6ca8e987e9675d652940510e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Fri, 13 Mar 2015 15:06:01 +0100 -Subject: [PATCH 20/32] Ruby 1.8 insists on the () for the parameter +Subject: [PATCH 20/33] Ruby 1.8 insists on the () for the parameter --- templates/gem_packages.spec.erb | 2 +- @@ -21,6 +21,6 @@ rp = gem_spec.extensions_dir.rpartition(gem_spec.base_dir) return File.join(rp[1], 'doc', rp[2]) -- -2.20.1 +2.26.2 ++++++ 0021-Fix-company-name-in-copyright-header.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.586675645 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.590675670 +0100 @@ -1,7 +1,7 @@ From 2d02399fc670b648785b10bf7f1510c136e6f981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Thu, 16 Apr 2015 23:49:01 +0200 -Subject: [PATCH 21/32] Fix company name in copyright header +Subject: [PATCH 21/33] Fix company name in copyright header --- templates/opensuse.spec.erb | 2 +- @@ -21,6 +21,6 @@ # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed -- -2.20.1 +2.26.2 ++++++ 0022-add-the-touch-for-build-compare-to-the-template.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.602675746 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.606675771 +0100 @@ -1,7 +1,7 @@ From f8c0600c659f26d1ec6c9d890a63dd642f741003 Mon Sep 17 00:00:00 2001 From: Stephan Kulow <co...@suse.de> Date: Wed, 6 Apr 2016 08:00:27 +0200 -Subject: [PATCH 22/32] add the touch for build-compare to the template +Subject: [PATCH 22/33] add the touch for build-compare to the template --- templates/opensuse.spec.erb | 1 + @@ -20,6 +20,6 @@ <% end -%> -- -2.20.1 +2.26.2 ++++++ 0023-Also-tag-APACHE-LICENSE-2.0-as-docfile.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.618675847 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.622675872 +0100 @@ -1,7 +1,7 @@ From ee81c7f09669db9e6898df5bf36ac6c102d0d615 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold <tbecht...@suse.com> Date: Mon, 18 Jul 2016 10:12:29 +0200 -Subject: [PATCH 23/32] Also tag APACHE-LICENSE-2.0 as docfile +Subject: [PATCH 23/33] Also tag APACHE-LICENSE-2.0 as docfile Some packages (e.g. rubygem-apipie-rails) name it that way --- @@ -22,6 +22,6 @@ news release_notes -- -2.20.1 +2.26.2 ++++++ 0024-add-ability-to-provide-alternative-main-Source.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.638675973 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.642675999 +0100 @@ -1,7 +1,7 @@ From 3888b107af6ce5721ff40abe2bedcede1893732b Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos <tampak...@gmail.com> Date: Tue, 23 Aug 2016 23:49:40 +0200 -Subject: [PATCH 24/32] add ability to provide alternative main Source +Subject: [PATCH 24/33] add ability to provide alternative main Source this is useful in cases where the gem is not taken from rubygems.org --- @@ -25,6 +25,6 @@ config[:sources].each_with_index do |src, i| -%> Source<%= i+1 %>: <%= src %> -- -2.20.1 +2.26.2 ++++++ 0025-allow-running-commands-after-patching.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.654676074 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.658676100 +0100 @@ -1,7 +1,7 @@ From e9601db421071203202ddb0122e8826859238e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueck...@suse.de> Date: Thu, 10 Nov 2016 15:46:22 +0100 -Subject: [PATCH 25/32] allow running commands after patching +Subject: [PATCH 25/33] allow running commands after patching but before we actually rebuild the gem. needed for libv8 gem. @@ -40,6 +40,6 @@ %gem_build <% end -%> -- -2.20.1 +2.26.2 ++++++ 0026-use-https-instead-of-http-for-rubygems.org.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.674676200 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.678676226 +0100 @@ -1,7 +1,7 @@ From 304e55ea06e789e41683351c3eca7e8f20619201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueck...@suse.de> Date: Thu, 10 Nov 2016 18:16:23 +0100 -Subject: [PATCH 26/32] use https instead of http for rubygems.org +Subject: [PATCH 26/33] use https instead of http for rubygems.org --- bin/gem2rpm | 2 +- @@ -35,6 +35,6 @@ <% if config[:sources] config[:sources].each_with_index do |src, i| -%> -- -2.20.1 +2.26.2 ++++++ 0027-quote-version_suffix-in-gem2rpm.yml.documentation-to.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.690676301 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.694676327 +0100 @@ -1,7 +1,7 @@ From 5ed4ebe4fce32e32c75019aa4ac01b78e22c2e44 Mon Sep 17 00:00:00 2001 From: Johannes Kastl <ka...@b1-systems.de> Date: Fri, 3 Nov 2017 14:46:39 +0100 -Subject: [PATCH 27/32] quote version_suffix in gem2rpm.yml.documentation to +Subject: [PATCH 27/33] quote version_suffix in gem2rpm.yml.documentation to avoid wrong package names --- @@ -22,6 +22,6 @@ # :disable_docs: true # ## used by gem2rpm -- -2.20.1 +2.26.2 ++++++ 0028-add-binary_map-support.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.706676403 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.710676428 +0100 @@ -1,7 +1,7 @@ From fdf7e5ceb4c165babfb7486fe6640faa21ab5e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Wed, 6 Jun 2018 16:15:39 +0200 -Subject: [PATCH 28/32] add binary_map support +Subject: [PATCH 28/33] add binary_map support --- gem2rpm.yml.documentation | 2 ++ @@ -85,6 +85,6 @@ %ghost <%= rb_sysconfdir %>/alternatives/<%= "#{executable}-#{spec.version}" %> <% end -%> -- -2.20.1 +2.26.2 ++++++ 0029-Use-or-for-the-conditions-instead-of-and.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.722676504 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.726676529 +0100 @@ -1,7 +1,7 @@ From 04d2ef0c24748dd4120d1cc3a7b08d5c963dc100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Wed, 6 Jun 2018 16:40:15 +0200 -Subject: [PATCH 29/32] Use "or" for the conditions instead of and +Subject: [PATCH 29/33] Use "or" for the conditions instead of and --- templates/gem_packages.spec.erb | 3 ++- @@ -22,6 +22,6 @@ end executable -- -2.20.1 +2.26.2 ++++++ 0030-gem_package.spec.erb-sync-with-ruby-common.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.738676605 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.742676630 +0100 @@ -1,7 +1,7 @@ From c4557ce4aa7e0f67e5c249c255fe0c0c5df8f793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <da...@nordisch.org> Date: Wed, 6 Jun 2018 17:15:35 +0200 -Subject: [PATCH 30/32] gem_package.spec.erb: sync with ruby-common +Subject: [PATCH 30/33] gem_package.spec.erb: sync with ruby-common Also drop the Enhances change that sneaked in by accident --- @@ -73,6 +73,6 @@ <% if data[:description] and data[:description] != '' -%> <%= data[:description] %> -- -2.20.1 +2.26.2 ++++++ 0031-use-template-opensuse-on-openSUSE-Tumbleweed-where-e.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.754676706 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.758676731 +0100 @@ -1,7 +1,7 @@ From 7fa4f56a2a55278e95510d1663c495fa733d7780 Mon Sep 17 00:00:00 2001 From: Johannes Kastl <ka...@b1-systems.de> Date: Sat, 21 Jul 2018 23:13:35 +0200 -Subject: [PATCH 31/32] use template opensuse on openSUSE Tumbleweed, where +Subject: [PATCH 31/33] use template opensuse on openSUSE Tumbleweed, where /etc/os-release contains ID="opensuse-tumbleweed" --- @@ -24,6 +24,6 @@ if template_file.nil? template = Gem2Rpm::TEMPLATE -- -2.20.1 +2.26.2 ++++++ 0032-Replace-no-rdoc-no-ri-with-no-document.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.774676832 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.778676857 +0100 @@ -1,7 +1,7 @@ From 9adb19584120941300dc8269f6a8563eb85b1a1c Mon Sep 17 00:00:00 2001 From: Stephan Kulow <co...@suse.de> Date: Sat, 23 Feb 2019 07:45:40 +0100 -Subject: [PATCH 32/32] Replace --no-rdoc --no-ri with --no-document +Subject: [PATCH 32/33] Replace --no-rdoc --no-ri with --no-document --- templates/opensuse.spec.erb | 2 +- @@ -21,6 +21,6 @@ <% unless spec.executables.empty? -%> --symlink-binaries \ -- -2.20.1 +2.26.2 ++++++ 0033-Use-File.exist-instead-of-File.exists-which-was-remo.patch ++++++ >From a55b215427daffb082518545a4617bf04ce013bf Mon Sep 17 00:00:00 2001 From: Martin Vidner <mvid...@suse.com> Date: Wed, 7 Dec 2022 11:05:25 +0100 Subject: [PATCH 33/33] Use File.exist? instead of File.exists? which was removed in Ruby 3.2 https://www.ruby-lang.org/en/news/2022/12/06/ruby-3-2-0-rc1-released/ > Removed methods > > The following deprecated methods are removed. > - ... > - File.exists? [Feature 17391] --- bin/gem2rpm | 6 +++--- templates/gem_packages.spec.erb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/gem2rpm b/bin/gem2rpm index 1298798..059e953 100755 --- a/bin/gem2rpm +++ b/bin/gem2rpm @@ -74,7 +74,7 @@ rest = opts.permute(ARGV) template = nil if template_file.nil? - f = open("/etc/os-release", "r") if File.exists?("/etc/os-release") + f = open("/etc/os-release", "r") if File.exist?("/etc/os-release") if f f.read.split('\n').each do |line| line.match(%r{^ID=(.*)$}) { |m| template_file=m[1] } @@ -91,7 +91,7 @@ if template_file.nil? template = Gem2Rpm::TEMPLATE else begin - f = open(template_file, "r") if File.exists?(template_file) + f = open(template_file, "r") if File.exist?(template_file) f = open(File.join(Gem2Rpm.template_dir, template_file + '.spec.erb'), "r") unless f rescue Errno::ENOENT $stderr.puts "Could not open template #{template_file}. Aborting" @@ -154,7 +154,7 @@ if output_file.nil? Gem2Rpm::convert(gemfile, template, $stdout, nongem, local, doc_subpackage, oldlicense, config) unless deps else begin - if File.exists?(output_file) + if File.exist?(output_file) File.open(output_file, 'r') do |oldfile| oldfile.each_line do |line| m = line.match(%r{^License:\s*(\w.*)$}) diff --git a/templates/gem_packages.spec.erb b/templates/gem_packages.spec.erb index 257c719..4f9447c 100644 --- a/templates/gem_packages.spec.erb +++ b/templates/gem_packages.spec.erb @@ -39,7 +39,7 @@ end def self.filecontent_or_value(path) - (path and File.exists?(path)) ? File.read(path) : path + (path and File.exist?(path)) ? File.read(path) : path end def self.parse_custom_pkgs(env_value) -- 2.26.2 ++++++ template_loader.patch ++++++ --- /var/tmp/diff_new_pack.Ne9FCt/_old 2023-02-18 17:10:13.850677312 +0100 +++ /var/tmp/diff_new_pack.Ne9FCt/_new 2023-02-18 17:10:13.854677337 +0100 @@ -10,6 +10,6 @@ template = nil +template_file ||= 'opensuse' if template_file.nil? - f = open("/etc/os-release", "r") if File.exists?("/etc/os-release") + f = open("/etc/os-release", "r") if File.exist?("/etc/os-release") if f