Compare commits

...
Sign in to create a new pull request.

13 commits

Author SHA1 Message Date
b110672665 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
2018-02-23 17:08:24 +01:00
951ae676a4
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 <ignatenkobrain@fedoraproject.org>
2018-02-14 07:43:05 +01:00
4a3a436654 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 <ignatenkobrain@fedoraproject.org>
2018-02-14 00:50:35 +01:00
Fedora Release Engineering
55974f6f60 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 21:24:39 +00:00
7d0e428c08 F-28: rebuild for ruby25 2018-01-05 14:08:04 +09:00
Fedora Release Engineering
c3bbddc479 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 10:31:15 +00:00
Fedora Release Engineering
2f93b9bdeb - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 21:56:30 +00:00
Fedora Release Engineering
afa19fb2c5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 17:42:15 +00:00
57e5b3f29c F-26: rebuild for ruby24 2017-01-13 12:54:26 +09:00
Fedora Release Engineering
67eef370e2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 03:19:41 +00:00
d70096a6ba F-24: rebuild against ruby23 2016-01-14 14:39:06 +09:00
Dennis Gilmore
7d012ca3bd - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 03:48:05 +00:00
4fa8c25fb7 Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
- Remove deprecated Config:: usage
2015-01-16 16:07:30 +09:00
8 changed files with 4 additions and 181 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
xchat-ruby-1.2-src.tar.gz

4
dead.package Normal file
View file

@ -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

View file

@ -1 +0,0 @@
d9a8eafb03c88ac5d8c67b5373f10538 xchat-ruby-1.2-src.tar.gz

View file

@ -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;

View file

@ -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] ) );

View file

@ -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']"`

View file

@ -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|

View file

@ -1,125 +0,0 @@
Name: xchat-ruby
Version: 1.2
Release: 20%{?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
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(release)
BuildRequires: ruby-devel ruby
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
%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
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/xchat-rubyenv
%doc README COPYING
%{_libdir}/xchat/plugins/xchat-ruby.so
%changelog
* 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
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Apr 29 2014 Vít Ondruch <vondruch@redhat.com> - 1.2-18
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Mar 13 2013 Conrad Meyer <cemeyer@uw.edu> - 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 <rel-eng@lists.fedoraproject.org> - 1.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jun 4 2012 Conrad Meyer <konrad@tylerc.org> - 1.2-13
- Fix for Ruby 1.9.2 (#828008) from Pallai Roland
* Wed Feb 08 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2-12
- Rebuilt for Ruby 1.9.3.
* Fri Feb 3 2012 Conrad Meyer <konrad@tylerc.org> - 1.2-11
- Fix null pointer dereference (#787298 reported by Pallai Roland)
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Feb 9 2008 Conrad Meyer <konrad@tylerc.org> - 1.2-6
- Bump for GCC 4.3 rebuild
* Wed Nov 28 2007 Conrad Meyer <konrad@tylerc.org> - 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 <konrad@tylerc.org> - 1.2-4
- Default load path now contains arch-specific directories
* Tue Nov 27 2007 Conrad Meyer <konrad@tylerc.org> - 1.2-3
- Fixed xchat-rubyenv for 64-bit
- Patched Makefile to not ignore CFLAGS
* Fri Nov 23 2007 Conrad Meyer <konrad@tylerc.org> - 1.2-2
- Replaced /etc with %%{_sysconfdir}
* Fri Nov 17 2007 Conrad Meyer <konrad@tylerc.org> - 1.2-1
- Initial package.