Summary(pl.UTF-8): Moduł MySQL dla języka Ruby
Name: mysql-ruby
Version: 2.8.2
-Release: 9
+Release: 10
License: GPL
Group: Development/Languages
Source0: http://tmtm.org/downloads/mysql/ruby/%{name}-%{version}.tar.gz
# Source0-md5: eb998b89b7e391cffe0a1f84bd426f9b
Patch0: %{name}-amd64.patch
Patch1: %{name}-encoding.patch
-URL: http://www.tmtm.org/mysql/ruby/
+Patch2: rbconfig-deprecation.patch
+URL: http://www.tmtm.org/mysql/ruby/README.html
BuildRequires: mysql-devel
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
%setup -q
%patch0 -p0
%patch1 -p1
+%patch2 -p1
+
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%build
ruby extconf.rb \
--- /dev/null
+--- mysql-ruby-2.8.2/extconf.rb~ 2017-10-26 21:23:06.000000000 +0300
++++ mysql-ruby-2.8.2/extconf.rb 2017-10-26 21:24:59.070002292 +0300
+@@ -37,9 +37,9 @@
+ f.puts src
+ end
+ if defined? cpp_command then
+- cpp = Config.expand(cpp_command(''))
++ cpp = RbConfig.expand(cpp_command(''))
+ else
+- cpp = Config.expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
++ cpp = RbConfig.expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
+ end
+ if /mswin32/ =~ RUBY_PLATFORM && !/-E/.match(cpp)
+ cpp << " -E"