Accepting request 1069216 from graphics

- Fix build with newer rubies, that removed File:exists method

OBS-URL: https://build.opensuse.org/request/show/1069216
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tupitube?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2023-03-03 21:28:57 +00:00 committed by Git OBS Bridge
commit 1a98fa5add
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 3 13:01:05 UTC 2023 - Hans-Peter Jansen <hpj@urpla.net>
- Fix build with newer rubies, that removed File:exists method
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 26 12:25:31 UTC 2022 - Luigi Baldoni <aloisio@gmx.com> Tue Apr 26 12:25:31 UTC 2022 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package tupitube # spec file for package tupitube
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# Copyright (c) 2016 Packman Team <packman@links2linux.de> # Copyright (c) 2016 Packman Team <packman@links2linux.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -94,6 +94,10 @@ This package contains plugins for %{name}.
# Fix `require': cannot load such file -- os (LoadError) # Fix `require': cannot load such file -- os (LoadError)
sed -i '/require .os/d' qonf/configure.rb sed -i '/require .os/d' qonf/configure.rb
# Newer rubies obviously removed this method: note the elaborated error message
# Configure failed. error was: undefined method `exists?' for File:Class
sed -i 's|File.exists|File.exist|' configure.rb qonf/test.rb
# Fix 'E: spurious-executable-perm' # Fix 'E: spurious-executable-perm'
chmod -x COPYING README* launcher/tupitube.xml chmod -x COPYING README* launcher/tupitube.xml