From 1af96bc4662a71a4c6de1e6fbb95a2f531ad00ba Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Mon, 7 Feb 2011 21:47:06 -0600 Subject: [PATCH 01/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 8fe9dae..f9b0773 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 8%{?dist} +Release: 9%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -69,6 +69,9 @@ rm -rf %{buildroot} %changelog +* Mon Feb 07 2011 Fedora Release Engineering - 1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Mon Jul 27 2009 Fedora Release Engineering - 1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild From 7c34580f3fef2d0fa6f69f13414e3f301e48ebc9 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 14 Jan 2012 02:40:38 -0600 Subject: [PATCH 02/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index f9b0773..4239859 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 9%{?dist} +Release: 10%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -69,6 +69,9 @@ rm -rf %{buildroot} %changelog +* Sat Jan 14 2012 Fedora Release Engineering - 1.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Mon Feb 07 2011 Fedora Release Engineering - 1.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From 5c1f30e80997aa96c863038130760ab851df7dde Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Fri, 3 Feb 2012 18:02:02 -0800 Subject: [PATCH 03/26] Fix null pointer dereference (#787298 reported by Pallai Roland) --- xchat-ruby-1.2-fix-null-ptr-deref.diff | 20 ++++++++++++++++++++ xchat-ruby.spec | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 xchat-ruby-1.2-fix-null-ptr-deref.diff diff --git a/xchat-ruby-1.2-fix-null-ptr-deref.diff b/xchat-ruby-1.2-fix-null-ptr-deref.diff new file mode 100644 index 0000000..d389247 --- /dev/null +++ b/xchat-ruby-1.2-fix-null-ptr-deref.diff @@ -0,0 +1,20 @@ +--- xchat-ruby-1.2-src/src/xchat-ruby.c.orig 2007-04-26 13:16:32.000000000 +0200 ++++ xchat-ruby-1.2-src/src/xchat-ruby.c 2012-02-03 21:01:12.779969703 +0100 +@@ -773,7 +773,7 @@ static int static_ruby_custom_command_ho + rb_word = rb_ary_new(); + rb_word_eol = rb_ary_new(); + +- for( i = 1; word[i][0] != '\0'; i++ ) ++ for( i = 1; word[i] && word[i][0] != '\0'; i++ ) + { + rb_ary_push( rb_word, rb_str_new2( word[i] ) ); + rb_ary_push( rb_word_eol, rb_str_new2( word_eol[i] ) ); +@@ -828,7 +828,7 @@ static int static_ruby_custom_server_hoo + rb_word = rb_ary_new(); + rb_word_eol = rb_ary_new(); + +- for( i = 1; word[i][0] != '\0'; i++ ) ++ for( i = 1; word[i] && word[i][0] != '\0'; i++ ) + { + rb_ary_push( rb_word, rb_str_new2( word[i] ) ); + rb_ary_push( rb_word_eol, rb_str_new2( word_eol[i] ) ); diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 4239859..19f1062 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 10%{?dist} +Release: 11%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -11,6 +11,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: xchat-ruby-global-rubyenv.patch Patch1: xchat-ruby-dont-ignore-cflags.patch +Patch2: xchat-ruby-1.2-fix-null-ptr-deref.diff BuildRequires: ruby(abi) = 1.8 BuildRequires: ruby-devel ruby @@ -29,6 +30,7 @@ language in which to write X-Chat plugins. %setup -q -n xchat-ruby-%{version}-src %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build @@ -69,6 +71,9 @@ rm -rf %{buildroot} %changelog +* Fri Feb 3 2012 Conrad Meyer - 1.2-11 +- Fix null pointer dereference (#787298 reported by Pallai Roland) + * Sat Jan 14 2012 Fedora Release Engineering - 1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild From 50444cf60aa5346964c6b7c9dc19c5d6769b8d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Wed, 8 Feb 2012 09:23:48 +0100 Subject: [PATCH 04/26] Rebuilt for Ruby 1.9.3. --- xchat-ruby.spec | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 19f1062..342e7c6 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 11%{?dist} +Release: 12%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -13,9 +13,9 @@ Patch0: xchat-ruby-global-rubyenv.patch Patch1: xchat-ruby-dont-ignore-cflags.patch Patch2: xchat-ruby-1.2-fix-null-ptr-deref.diff -BuildRequires: ruby(abi) = 1.8 +BuildRequires: ruby(abi) = 1.9.1 BuildRequires: ruby-devel ruby -Requires: ruby(abi) = 1.8 +Requires: ruby(abi) = 1.9.1 Requires: xchat %description @@ -35,29 +35,17 @@ language in which to write X-Chat plugins. %build cd src -CFLAGS="%{optflags}" make %{?_smp_mflags} +CFLAGS="%{optflags} -I`ruby -e 'puts File.join(RbConfig::CONFIG[%q(includedir)], RbConfig::CONFIG[%q(sitearch)])'`" make %{?_smp_mflags} %install -# Get arch-specific load paths -%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')} -%{!?ruby_arch: %define ruby_arch %(ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]')} - rm -rf %{buildroot} mkdir %{buildroot} cd src # xchat-ruby's make install is broken install -D xchat-ruby.so %{buildroot}%{_libdir}/xchat/plugins/xchat-ruby.so mkdir -p %{buildroot}%{_sysconfdir} -cat <%{buildroot}%{_sysconfdir}/xchat-rubyenv -/usr/lib/ruby/site_ruby/1.8 -%{ruby_sitearch} -/usr/lib/ruby/site_ruby -/usr/lib/ruby/1.8 -%{ruby_arch} -. -EOS - +ruby -e 'puts $:.push(".").join("\n")' > %{buildroot}%{_sysconfdir}/xchat-rubyenv %clean rm -rf %{buildroot} @@ -71,6 +59,9 @@ rm -rf %{buildroot} %changelog +* Wed Feb 08 2012 Bohuslav Kabrda - 1.2-12 +- Rebuilt for Ruby 1.9.3. + * Fri Feb 3 2012 Conrad Meyer - 1.2-11 - Fix null pointer dereference (#787298 reported by Pallai Roland) From b250ccd4b5f978f580538622221c3ddae041ebd3 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Mon, 4 Jun 2012 19:30:46 -0700 Subject: [PATCH 05/26] Fix for Ruby 1.9.2 (#828008) from Pallai Roland --- xchat-ruby-1-2-ruby192-fix.diff | 11 +++++++++++ xchat-ruby.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 xchat-ruby-1-2-ruby192-fix.diff diff --git a/xchat-ruby-1-2-ruby192-fix.diff b/xchat-ruby-1-2-ruby192-fix.diff new file mode 100644 index 0000000..2e4c29d --- /dev/null +++ b/xchat-ruby-1-2-ruby192-fix.diff @@ -0,0 +1,11 @@ +--- xchat-ruby-1.2-src/src/xchat-ruby.c.orig 2012-06-04 02:34:03.000000000 +0200 ++++ xchat-ruby-1.2-src/src/xchat-ruby.c.orig 2012-06-04 02:35:18.944609899 +0200 +@@ -36,6 +36,8 @@ + + #define XCHAT_RUBY_VERSION "1.2" + ++#define STR2CSTR StringValuePtr ++ + static xchat_plugin *static_plugin_handle = NULL; + static xchat_plugin *ph = NULL; + static int static_ruby_initialized = 0; diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 342e7c6..0dcd19c 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 12%{?dist} +Release: 13%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -12,6 +12,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 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 BuildRequires: ruby(abi) = 1.9.1 BuildRequires: ruby-devel ruby @@ -31,6 +32,7 @@ language in which to write X-Chat plugins. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build @@ -59,6 +61,9 @@ rm -rf %{buildroot} %changelog +* Mon Jun 4 2012 Conrad Meyer - 1.2-13 +- Fix for Ruby 1.9.2 (#828008) from Pallai Roland + * Wed Feb 08 2012 Bohuslav Kabrda - 1.2-12 - Rebuilt for Ruby 1.9.3. From ec24fb3d999e3884c81a4d3309e762384e2bc843 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Tue, 5 Jun 2012 09:45:32 -0700 Subject: [PATCH 06/26] Fixup patch --- xchat-ruby-1-2-ruby192-fix.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xchat-ruby-1-2-ruby192-fix.diff b/xchat-ruby-1-2-ruby192-fix.diff index 2e4c29d..bee070c 100644 --- a/xchat-ruby-1-2-ruby192-fix.diff +++ b/xchat-ruby-1-2-ruby192-fix.diff @@ -1,5 +1,5 @@ --- xchat-ruby-1.2-src/src/xchat-ruby.c.orig 2012-06-04 02:34:03.000000000 +0200 -+++ xchat-ruby-1.2-src/src/xchat-ruby.c.orig 2012-06-04 02:35:18.944609899 +0200 ++++ xchat-ruby-1.2-src/src/xchat-ruby.c 2012-06-04 02:35:18.944609899 +0200 @@ -36,6 +36,8 @@ #define XCHAT_RUBY_VERSION "1.2" From 6f2d000864b4c45a9a0a8a56c837ede8f61643ba Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 21 Jul 2012 23:39:38 -0500 Subject: [PATCH 07/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 0dcd19c..9943608 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 13%{?dist} +Release: 14%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -61,6 +61,9 @@ rm -rf %{buildroot} %changelog +* Sun Jul 22 2012 Fedora Release Engineering - 1.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Mon Jun 4 2012 Conrad Meyer - 1.2-13 - Fix for Ruby 1.9.2 (#828008) from Pallai Roland From 79d76ea173169765e76157feb7b9680e44d9510d Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 14 Feb 2013 21:30:04 -0600 Subject: [PATCH 08/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 9943608..bf418a0 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 14%{?dist} +Release: 15%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -61,6 +61,9 @@ rm -rf %{buildroot} %changelog +* Fri Feb 15 2013 Fedora Release Engineering - 1.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Sun Jul 22 2012 Fedora Release Engineering - 1.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild From 715c089bbf066c20e6b347223c1e865c04a6fea3 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Wed, 13 Mar 2013 13:03:58 -0700 Subject: [PATCH 09/26] Bump requires from old-style ruby(abi) to new-style ruby(release) for 2.0.0 --- xchat-ruby.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index bf418a0..e2241f3 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 15%{?dist} +Release: 16%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -14,9 +14,9 @@ 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 -BuildRequires: ruby(abi) = 1.9.1 +BuildRequires: ruby(release) = 2.0.0 BuildRequires: ruby-devel ruby -Requires: ruby(abi) = 1.9.1 +Requires: ruby(release) = 2.0.0 Requires: xchat %description @@ -61,6 +61,9 @@ rm -rf %{buildroot} %changelog +* Wed Mar 13 2013 Conrad Meyer - 1.2-16 +- Bump requires from old-style ruby(abi) to new-style ruby(release) for 2.0.0 + * Fri Feb 15 2013 Fedora Release Engineering - 1.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From 8df7503ac865ee3f8f8029b25534486231201b4d Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 4 Aug 2013 02:43:01 -0500 Subject: [PATCH 10/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index e2241f3..0c633d3 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 16%{?dist} +Release: 17%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -61,6 +61,9 @@ rm -rf %{buildroot} %changelog +* Sun Aug 04 2013 Fedora Release Engineering - 1.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Wed Mar 13 2013 Conrad Meyer - 1.2-16 - Bump requires from old-style ruby(abi) to new-style ruby(release) for 2.0.0 From 6d39df2e0c8b0f5322b0059857d0705f4d083f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 29 Apr 2014 13:47:18 +0200 Subject: [PATCH 11/26] Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1 --- xchat-ruby.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 0c633d3..564465c 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 17%{?dist} +Release: 18%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -14,9 +14,9 @@ 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 -BuildRequires: ruby(release) = 2.0.0 +BuildRequires: ruby(release) BuildRequires: ruby-devel ruby -Requires: ruby(release) = 2.0.0 +Requires: ruby(release) Requires: xchat %description @@ -61,6 +61,9 @@ rm -rf %{buildroot} %changelog +* Tue Apr 29 2014 Vít Ondruch - 1.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1 + * Sun Aug 04 2013 Fedora Release Engineering - 1.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From 9edf8bd9df3ac8792975077f7e7f9d245d0cb3b5 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 8 Jun 2014 00:21:42 -0500 Subject: [PATCH 12/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 564465c..b2f7bee 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 18%{?dist} +Release: 19%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -61,6 +61,9 @@ rm -rf %{buildroot} %changelog +* Sun Jun 08 2014 Fedora Release Engineering - 1.2-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Tue Apr 29 2014 Vít Ondruch - 1.2-18 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1 From 5a6457716724b208318fbdb5fef98eef7ad87c88 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mon, 18 Aug 2014 09:25:27 +0000 Subject: [PATCH 13/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index b2f7bee..024db17 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 19%{?dist} +Release: 20%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -61,6 +61,9 @@ rm -rf %{buildroot} %changelog +* Mon Aug 18 2014 Fedora Release Engineering - 1.2-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Sun Jun 08 2014 Fedora Release Engineering - 1.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From 4fa8c25fb7a4c32f8e136bfc74a11fc2da1dab0c Mon Sep 17 00:00:00 2001 From: John Date: Fri, 16 Jan 2015 16:07:30 +0900 Subject: [PATCH 14/26] Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 - Remove deprecated Config:: usage --- ...y-1.2-ruby22-remove-deprecated-usage.patch | 24 +++++++++++++++++++ xchat-ruby.spec | 9 ++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch diff --git a/xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch b/xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch new file mode 100644 index 0000000..03c7e51 --- /dev/null +++ b/xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch @@ -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'..." diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 024db17..beda8a0 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -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 - 1.2-21 +- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 +- Remove deprecated Config:: usage + * Mon Aug 18 2014 Fedora Release Engineering - 1.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild From 7d012ca3bdbea2e20da48d14d7318c33547586a5 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 19 Jun 2015 03:48:05 +0000 Subject: [PATCH 15/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index beda8a0..198a55c 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 21%{?dist} +Release: 22%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Fri Jun 19 2015 Fedora Release Engineering - 1.2-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Fri Jan 16 2015 Mamoru TASAKA - 1.2-21 - Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 - Remove deprecated Config:: usage From d70096a6baa2ddc57ab10e35c2a1410182623f7d Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 14 Jan 2016 14:39:06 +0900 Subject: [PATCH 16/26] F-24: rebuild against ruby23 --- xchat-ruby.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 198a55c..318993d 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 22%{?dist} +Release: 23%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -17,7 +17,7 @@ Patch3: xchat-ruby-1-2-ruby192-fix.diff Patch4: xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch BuildRequires: ruby(release) -BuildRequires: ruby-devel ruby +BuildRequires: ruby-devel ruby ruby(rubygems) Requires: ruby(release) Requires: xchat @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Thu Jan 14 2016 Mamoru TASAKA - 1.2-23 +- F-24: rebuild against ruby23 + * Fri Jun 19 2015 Fedora Release Engineering - 1.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 67eef370e25ebaf9a01b07e1e9ef04d51c715511 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 5 Feb 2016 03:19:41 +0000 Subject: [PATCH 17/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 318993d..2e81c7d 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 23%{?dist} +Release: 24%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Fri Feb 05 2016 Fedora Release Engineering - 1.2-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Thu Jan 14 2016 Mamoru TASAKA - 1.2-23 - F-24: rebuild against ruby23 From 57e5b3f29cfdda079926b1c7b3ae010db3859d22 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 13 Jan 2017 12:54:26 +0900 Subject: [PATCH 18/26] F-26: rebuild for ruby24 --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 2e81c7d..f5b8d0a 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 24%{?dist} +Release: 25%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Fri Jan 13 2017 Mamoru TASAKA - 1.2-25 +- F-26: rebuild for ruby24 + * Fri Feb 05 2016 Fedora Release Engineering - 1.2-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From afa19fb2c5a3f9bf953e5725b0d092daefcff8ee Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 17:42:15 +0000 Subject: [PATCH 19/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index f5b8d0a..9c2c41b 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 25%{?dist} +Release: 26%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 1.2-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Fri Jan 13 2017 Mamoru TASAKA - 1.2-25 - F-26: rebuild for ruby24 From 2f93b9bdeb4eb874b13c48f24ef95c6d42844e76 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 21:56:30 +0000 Subject: [PATCH 20/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 9c2c41b..a5b379b 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 26%{?dist} +Release: 27%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 1.2-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 1.2-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From c3bbddc47955c17fe0dc74d2f8312653f63fdd22 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 3 Aug 2017 10:31:15 +0000 Subject: [PATCH 21/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index a5b379b..7d2f7c5 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 27%{?dist} +Release: 28%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Thu Aug 03 2017 Fedora Release Engineering - 1.2-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Thu Jul 27 2017 Fedora Release Engineering - 1.2-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 7d0e428c08ff5b1b53d420f1b83c597c2bf09331 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 5 Jan 2018 14:08:04 +0900 Subject: [PATCH 22/26] F-28: rebuild for ruby25 --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 7d2f7c5..04221c5 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 28%{?dist} +Release: 29%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Fri Jan 05 2018 Mamoru TASAKA - 1.2-29 +- F-28: rebuild for ruby25 + * Thu Aug 03 2017 Fedora Release Engineering - 1.2-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From 55974f6f608328b173c7c0938ed9f2ffe55e44bb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 21:24:39 +0000 Subject: [PATCH 23/26] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xchat-ruby.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 04221c5..aecbd33 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -1,6 +1,6 @@ Name: xchat-ruby Version: 1.2 -Release: 29%{?dist} +Release: 30%{?dist} Summary: An X-Chat plugin providing scripting functionality with Ruby Group: Applications/Internet @@ -64,6 +64,9 @@ rm -rf %{buildroot} %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 1.2-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Fri Jan 05 2018 Mamoru TASAKA - 1.2-29 - F-28: rebuild for ruby25 From 4a3a4366545f81bb4b2e3eda3bd5c8eadbf57d68 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 00:50:35 +0100 Subject: [PATCH 24/26] Remove BuildRoot definition None of currently supported distributions need that. It was needed last for EL5 which is EOL now Signed-off-by: Igor Gnatenko --- xchat-ruby.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index aecbd33..79f0953 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -7,7 +7,6 @@ Group: Applications/Internet License: GPLv2+ URL: http://xchat-ruby.sourceforge.net/ Source0: http://downloads.sourceforge.net/xchat-ruby/%{name}-%{version}-src.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: xchat-ruby-global-rubyenv.patch Patch1: xchat-ruby-dont-ignore-cflags.patch From 951ae676a4735a7cf58215318d9c63e67078006b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 07:43:05 +0100 Subject: [PATCH 25/26] Remove %clean section None of currently supported distributions need that. Last one was EL5 which is EOL for a while. Signed-off-by: Igor Gnatenko --- xchat-ruby.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/xchat-ruby.spec b/xchat-ruby.spec index 79f0953..d77c307 100644 --- a/xchat-ruby.spec +++ b/xchat-ruby.spec @@ -51,9 +51,6 @@ install -D xchat-ruby.so %{buildroot}%{_libdir}/xchat/plugins/xchat-ruby.so mkdir -p %{buildroot}%{_sysconfdir} ruby -e 'puts $:.push(".").join("\n")' > %{buildroot}%{_sysconfdir}/xchat-rubyenv -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root,-) From b1106726654c47807e9977b01b0cc254ba155e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 23 Feb 2018 17:08:24 +0100 Subject: [PATCH 26/26] xchat was retired, and this package is unusable without it https://pagure.io/fesco/issue/1847 https://bugzilla.redhat.com/show_bug.cgi?id=1486752 --- .gitignore | 1 - dead.package | 4 + sources | 1 - xchat-ruby-1-2-ruby192-fix.diff | 11 -- xchat-ruby-1.2-fix-null-ptr-deref.diff | 20 --- ...y-1.2-ruby22-remove-deprecated-usage.patch | 24 --- xchat-ruby-dont-ignore-cflags.patch | 12 -- xchat-ruby-global-rubyenv.patch | 11 -- xchat-ruby.spec | 155 ------------------ 9 files changed, 4 insertions(+), 235 deletions(-) delete mode 100644 .gitignore create mode 100644 dead.package delete mode 100644 sources delete mode 100644 xchat-ruby-1-2-ruby192-fix.diff delete mode 100644 xchat-ruby-1.2-fix-null-ptr-deref.diff delete mode 100644 xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch delete mode 100644 xchat-ruby-dont-ignore-cflags.patch delete mode 100644 xchat-ruby-global-rubyenv.patch delete mode 100644 xchat-ruby.spec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 08e2b60..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -xchat-ruby-1.2-src.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..7631169 --- /dev/null +++ b/dead.package @@ -0,0 +1,4 @@ +xchat was retired, and this package is unusable without it + +https://pagure.io/fesco/issue/1847 +https://bugzilla.redhat.com/show_bug.cgi?id=1486752 diff --git a/sources b/sources deleted file mode 100644 index bf5b199..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -d9a8eafb03c88ac5d8c67b5373f10538 xchat-ruby-1.2-src.tar.gz diff --git a/xchat-ruby-1-2-ruby192-fix.diff b/xchat-ruby-1-2-ruby192-fix.diff deleted file mode 100644 index bee070c..0000000 --- a/xchat-ruby-1-2-ruby192-fix.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- xchat-ruby-1.2-src/src/xchat-ruby.c.orig 2012-06-04 02:34:03.000000000 +0200 -+++ xchat-ruby-1.2-src/src/xchat-ruby.c 2012-06-04 02:35:18.944609899 +0200 -@@ -36,6 +36,8 @@ - - #define XCHAT_RUBY_VERSION "1.2" - -+#define STR2CSTR StringValuePtr -+ - static xchat_plugin *static_plugin_handle = NULL; - static xchat_plugin *ph = NULL; - static int static_ruby_initialized = 0; diff --git a/xchat-ruby-1.2-fix-null-ptr-deref.diff b/xchat-ruby-1.2-fix-null-ptr-deref.diff deleted file mode 100644 index d389247..0000000 --- a/xchat-ruby-1.2-fix-null-ptr-deref.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- xchat-ruby-1.2-src/src/xchat-ruby.c.orig 2007-04-26 13:16:32.000000000 +0200 -+++ xchat-ruby-1.2-src/src/xchat-ruby.c 2012-02-03 21:01:12.779969703 +0100 -@@ -773,7 +773,7 @@ static int static_ruby_custom_command_ho - rb_word = rb_ary_new(); - rb_word_eol = rb_ary_new(); - -- for( i = 1; word[i][0] != '\0'; i++ ) -+ for( i = 1; word[i] && word[i][0] != '\0'; i++ ) - { - rb_ary_push( rb_word, rb_str_new2( word[i] ) ); - rb_ary_push( rb_word_eol, rb_str_new2( word_eol[i] ) ); -@@ -828,7 +828,7 @@ static int static_ruby_custom_server_hoo - rb_word = rb_ary_new(); - rb_word_eol = rb_ary_new(); - -- for( i = 1; word[i][0] != '\0'; i++ ) -+ for( i = 1; word[i] && word[i][0] != '\0'; i++ ) - { - rb_ary_push( rb_word, rb_str_new2( word[i] ) ); - rb_ary_push( rb_word_eol, rb_str_new2( word_eol[i] ) ); diff --git a/xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch b/xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch deleted file mode 100644 index 03c7e51..0000000 --- a/xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- 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'..." diff --git a/xchat-ruby-dont-ignore-cflags.patch b/xchat-ruby-dont-ignore-cflags.patch deleted file mode 100644 index f53242f..0000000 --- a/xchat-ruby-dont-ignore-cflags.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- xchat-ruby-1.2-src/src/Makefile 2007-04-26 04:16:32.000000000 -0700 -+++ xchat-ruby-1.2-src-modified/src/Makefile 2007-11-27 17:17:24.000000000 -0800 -@@ -1,8 +1,8 @@ - RUBY=ruby - CC=gcc --CFLAGS=-g -Wall -O1 -fPIC -+CFLAGS+=-fPIC - - OBJ=xchat-ruby.o - - ARCHDIR=`$(RUBY) -rrbconfig -e "puts Config::CONFIG['archdir']"` - diff --git a/xchat-ruby-global-rubyenv.patch b/xchat-ruby-global-rubyenv.patch deleted file mode 100644 index f2a4e58..0000000 --- a/xchat-ruby-global-rubyenv.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -ur xchat-ruby-1.2-src/src/xchat-ruby-plugin.rb xchat-ruby-1.2-src-patched/src/xchat-ruby-plugin.rb ---- xchat-ruby-1.2-src/src/xchat-ruby-plugin.rb 2007-04-26 04:16:32.000000000 -0700 -+++ xchat-ruby-1.2-src-patched/src/xchat-ruby-plugin.rb 2007-11-17 20:06:25.000000000 -0800 -@@ -416,6 +416,7 @@ - - def XChatRubyEnvironment.initialize_ruby_environment - envfile = get_info( "xchatdir" ) + "/rubyenv" -+ envfile = "/etc/xchat-rubyenv" if not File.exist? envfile - begin - File.open( envfile, "r" ) do |file| - file.each do |line| diff --git a/xchat-ruby.spec b/xchat-ruby.spec deleted file mode 100644 index d77c307..0000000 --- a/xchat-ruby.spec +++ /dev/null @@ -1,155 +0,0 @@ -Name: xchat-ruby -Version: 1.2 -Release: 30%{?dist} -Summary: An X-Chat plugin providing scripting functionality with Ruby - -Group: Applications/Internet -License: GPLv2+ -URL: http://xchat-ruby.sourceforge.net/ -Source0: http://downloads.sourceforge.net/xchat-ruby/%{name}-%{version}-src.tar.gz - -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 ruby(rubygems) -Requires: ruby(release) -Requires: xchat - -%description -For those of us that prefer the Ruby programming language above all -others, the XChat-Ruby Plugin now allows X-Chat plugins to be written -in Ruby, in addition to the other supported scripting interfaces. This -means that, for the first time, you can use a purely object-oriented -language in which to write X-Chat plugins. - - -%prep -%setup -q -n xchat-ruby-%{version}-src -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 - - -%build -cd src -CFLAGS="%{optflags} -I`ruby -e 'puts File.join(RbConfig::CONFIG[%q(includedir)], RbConfig::CONFIG[%q(sitearch)])'`" make %{?_smp_mflags} - - -%install -rm -rf %{buildroot} -mkdir %{buildroot} -cd src -# xchat-ruby's make install is broken -install -D xchat-ruby.so %{buildroot}%{_libdir}/xchat/plugins/xchat-ruby.so -mkdir -p %{buildroot}%{_sysconfdir} -ruby -e 'puts $:.push(".").join("\n")' > %{buildroot}%{_sysconfdir}/xchat-rubyenv - - -%files -%defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/xchat-rubyenv -%doc README COPYING -%{_libdir}/xchat/plugins/xchat-ruby.so - - -%changelog -* Fri Feb 09 2018 Fedora Release Engineering - 1.2-30 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Fri Jan 05 2018 Mamoru TASAKA - 1.2-29 -- F-28: rebuild for ruby25 - -* Thu Aug 03 2017 Fedora Release Engineering - 1.2-28 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 1.2-27 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 1.2-26 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Jan 13 2017 Mamoru TASAKA - 1.2-25 -- F-26: rebuild for ruby24 - -* Fri Feb 05 2016 Fedora Release Engineering - 1.2-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jan 14 2016 Mamoru TASAKA - 1.2-23 -- F-24: rebuild against ruby23 - -* Fri Jun 19 2015 Fedora Release Engineering - 1.2-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Fri Jan 16 2015 Mamoru TASAKA - 1.2-21 -- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 -- Remove deprecated Config:: usage - -* Mon Aug 18 2014 Fedora Release Engineering - 1.2-20 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sun Jun 08 2014 Fedora Release Engineering - 1.2-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Tue Apr 29 2014 Vít Ondruch - 1.2-18 -- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1 - -* Sun Aug 04 2013 Fedora Release Engineering - 1.2-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Mar 13 2013 Conrad Meyer - 1.2-16 -- Bump requires from old-style ruby(abi) to new-style ruby(release) for 2.0.0 - -* Fri Feb 15 2013 Fedora Release Engineering - 1.2-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Jul 22 2012 Fedora Release Engineering - 1.2-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Mon Jun 4 2012 Conrad Meyer - 1.2-13 -- Fix for Ruby 1.9.2 (#828008) from Pallai Roland - -* Wed Feb 08 2012 Bohuslav Kabrda - 1.2-12 -- Rebuilt for Ruby 1.9.3. - -* Fri Feb 3 2012 Conrad Meyer - 1.2-11 -- Fix null pointer dereference (#787298 reported by Pallai Roland) - -* Sat Jan 14 2012 Fedora Release Engineering - 1.2-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Feb 07 2011 Fedora Release Engineering - 1.2-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Mon Jul 27 2009 Fedora Release Engineering - 1.2-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Thu Feb 26 2009 Fedora Release Engineering - 1.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Sat Feb 9 2008 Conrad Meyer - 1.2-6 -- Bump for GCC 4.3 rebuild - -* Wed Nov 28 2007 Conrad Meyer - 1.2-5 -- SourceURL includes %%{version} -- BuildRequire Ruby 1.8 ABI for consistancy with Require -- Fixed macro in changelog - -* Tue Nov 27 2007 Conrad Meyer - 1.2-4 -- Default load path now contains arch-specific directories - -* Tue Nov 27 2007 Conrad Meyer - 1.2-3 -- Fixed xchat-rubyenv for 64-bit -- Patched Makefile to not ignore CFLAGS - -* Fri Nov 23 2007 Conrad Meyer - 1.2-2 -- Replaced /etc with %%{_sysconfdir} - -* Fri Nov 17 2007 Conrad Meyer - 1.2-1 -- Initial package.