Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
- Remove deprecated Config:: usage
This commit is contained in:
parent
5a64577167
commit
4fa8c25fb7
2 changed files with 32 additions and 1 deletions
24
xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch
Normal file
24
xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
--- xchat-ruby-1.2-src/src/Makefile.rbconfig 2015-01-16 15:59:36.154426689 +0900
|
||||
+++ xchat-ruby-1.2-src/src/Makefile 2015-01-16 16:00:33.272758195 +0900
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
OBJ=xchat-ruby.o
|
||||
|
||||
-ARCHDIR=`$(RUBY) -rrbconfig -e "puts Config::CONFIG['archdir']"`
|
||||
+ARCHDIR=`$(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['archdir']"`
|
||||
|
||||
XCHAT_RUBY=xchat-ruby
|
||||
SO_FILE=$(XCHAT_RUBY).so
|
||||
--- xchat-ruby-1.2-src/src/win32/make.rb.rbconfig 2007-04-26 20:16:32.000000000 +0900
|
||||
+++ xchat-ruby-1.2-src/src/win32/make.rb 2015-01-16 16:00:45.426615950 +0900
|
||||
@@ -9,8 +9,8 @@
|
||||
end
|
||||
|
||||
|
||||
-$archdir = Config::CONFIG['archdir']
|
||||
-$libs = Config::CONFIG['LIBS']
|
||||
+$archdir = RbConfig::CONFIG['archdir']
|
||||
+$libs = RbConfig::CONFIG['LIBS']
|
||||
|
||||
# first, process the header file
|
||||
puts "Building 'xchat-ruby-plugin.h'..."
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
Name: xchat-ruby
|
||||
Version: 1.2
|
||||
Release: 20%{?dist}
|
||||
Release: 21%{?dist}
|
||||
Summary: An X-Chat plugin providing scripting functionality with Ruby
|
||||
|
||||
Group: Applications/Internet
|
||||
|
|
@ -13,6 +13,8 @@ Patch0: xchat-ruby-global-rubyenv.patch
|
|||
Patch1: xchat-ruby-dont-ignore-cflags.patch
|
||||
Patch2: xchat-ruby-1.2-fix-null-ptr-deref.diff
|
||||
Patch3: xchat-ruby-1-2-ruby192-fix.diff
|
||||
# Remove deprecated usage on ruby 22
|
||||
Patch4: xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch
|
||||
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: ruby-devel ruby
|
||||
|
|
@ -33,6 +35,7 @@ language in which to write X-Chat plugins.
|
|||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
|
||||
|
||||
%build
|
||||
|
|
@ -61,6 +64,10 @@ rm -rf %{buildroot}
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Jan 16 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.2-21
|
||||
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
|
||||
- Remove deprecated Config:: usage
|
||||
|
||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue