903 lines
30 KiB
RPMSpec
903 lines
30 KiB
RPMSpec
#
|
|
# spec file for package ruby (Version 1.8.7.p72)
|
|
#
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: ruby
|
|
Version: 1.8.7.p72
|
|
Release: 1
|
|
#
|
|
%define pkg_version 1.8.7
|
|
%define patch_level p72
|
|
%define rb_ver %(echo %{pkg_version} | sed -e 's/\\\.[0-9]\\\+$//')
|
|
#
|
|
License: GPL v2 or later
|
|
Group: Development/Languages/Ruby
|
|
#
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: bison gdbm-devel gperf graphviz libjpeg-devel openssl-devel readline-devel tk-devel
|
|
#define with_bleak_house 1
|
|
%if 0%{suse_version} >= 1030
|
|
%define use_fdupes 1
|
|
%endif
|
|
%if 0%{?use_fdupes}
|
|
BuildRequires: fdupes
|
|
%endif
|
|
%if 0%{?suse_version} < 930
|
|
BuildRequires: XFree86-devel XFree86-fonts-scalable
|
|
%else
|
|
BuildRequires: xorg-x11-devel xorg-x11-fonts-scalable
|
|
%endif
|
|
#
|
|
Provides: /usr/bin/ruby
|
|
%if 0%{?with_bleak_house}
|
|
%define bleak_house_version 4.0
|
|
Provides: ruby_with_bleak_house = %{bleak_house_version}-%{release}
|
|
%endif
|
|
#
|
|
Url: http://www.ruby-lang.org/
|
|
Source: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{pkg_version}-%{patch_level}.tar.bz2
|
|
Source1: irb.1
|
|
Source2: ruby-doc-bundle.tar.bz2
|
|
Patch0: ruby-1.8.6.p36_gc.patch
|
|
Patch1: ruby-1.8.7.p22_lib64.patch
|
|
Patch2: ruby-1.8.7.p22_tcltk-multilib.patch
|
|
Patch3: ruby-1.8.6.p36_socket_ipv6.patch
|
|
Patch5: ruby_1.8.6.p36_date_remove_privat.patch
|
|
Patch6: ruby-pedantic-headers.diff
|
|
Patch7: ruby-1.8.7-p72_vendor_specific.patch
|
|
# vendor ruby files taken from:
|
|
# http://svn.macports.org/repository/macports/trunk/dports/lang/ruby/
|
|
Source3: site-specific.rb
|
|
Source4: vendor-specific.rb
|
|
#
|
|
Source5: ruby-rpmlintrc
|
|
%if 0%{?with_bleak_house}
|
|
#Source6: bleak_house-%{bleak_house_version}.tar.bz2
|
|
%endif
|
|
#
|
|
Summary: An Interpreted Object-Oriented Scripting Language
|
|
|
|
%description
|
|
Ruby is an interpreted scripting language for quick and easy
|
|
object-oriented programming. It has many features for processing text
|
|
files and performing system management tasks (as in Perl). It is
|
|
simple, straight-forward, and extensible.
|
|
|
|
* Ruby features:
|
|
|
|
- Simple Syntax
|
|
|
|
- *Normal* Object-Oriented features (class, method calls, for
|
|
example)
|
|
|
|
- *Advanced* Object-Oriented features(Mix-in, Singleton-method, for
|
|
example)
|
|
|
|
- Operator Overloading
|
|
|
|
- Exception Handling
|
|
|
|
- Iterators and Closures
|
|
|
|
- Garbage Collection
|
|
|
|
- Dynamic Loading of Object Files (on some architectures)
|
|
|
|
- Highly Portable (works on many UNIX machines; DOS, Windows, Mac,
|
|
BeOS, and more)
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Yukihiro Matsumoto <matz@netlab.co.jp>
|
|
|
|
%package devel
|
|
License: GPL v2 or later
|
|
Group: Development/Languages/Ruby
|
|
Summary: Development files to link against Ruby
|
|
Requires: %{name} = %{version}
|
|
%if 0%{?with_bleak_house}
|
|
Requires: ruby_with_bleak_house = %{bleak_house_version}
|
|
Provides: ruby-devel_with_bleak_house = %{bleak_house_version}-%{release}
|
|
%endif
|
|
|
|
%description devel
|
|
Development files to link against Ruby.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Yukihiro Matsumoto <matz@netlab.co.jp>
|
|
|
|
%package tk
|
|
License: GPL v2 or later
|
|
Group: Development/Languages/Ruby
|
|
Summary: TCL/TK bindings for Ruby
|
|
Requires: %{name} = %{version}
|
|
|
|
%description tk
|
|
TCL/TK bindings for Ruby
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Yukihiro Matsumoto <matz@netlab.co.jp>
|
|
|
|
%package doc-ri
|
|
License: GPL v2 or later
|
|
Group: Development/Languages/Ruby
|
|
Summary: Ruby Interactive Documentation
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc-ri
|
|
This package contains the RI docs for ruby
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Yukihiro Matsumoto <matz@netlab.co.jp>
|
|
|
|
%package doc-html
|
|
License: GPL v2 or later
|
|
Group: Development/Languages/Ruby
|
|
Summary: This package contains the HTML docs for ruby
|
|
|
|
%description doc-html
|
|
This package contains the HTML docs for ruby
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Yukihiro Matsumoto <matz@netlab.co.jp>
|
|
|
|
%package examples
|
|
License: GPL v2 or later
|
|
Group: Development/Languages/Ruby
|
|
Summary: Example scripts for ruby
|
|
Requires: %{name} = %{version}
|
|
|
|
%description examples
|
|
Example scripts for ruby
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Yukihiro Matsumoto <matz@netlab.co.jp>
|
|
|
|
%package test-suite
|
|
License: GPL v2 or later
|
|
Group: Development/Languages/Ruby
|
|
Summary: An Interpreted Object-Oriented Scripting Language
|
|
|
|
%description test-suite
|
|
Ruby is an interpreted scripting language for quick and easy
|
|
object-oriented programming. It has many features for processing text
|
|
files and performing system management tasks (as in Perl). It is
|
|
simple, straight-forward, and extensible.
|
|
|
|
* Ruby features:
|
|
|
|
- Simple Syntax
|
|
|
|
- *Normal* Object-Oriented features (class, method calls, for
|
|
example)
|
|
|
|
- *Advanced* Object-Oriented features(Mix-in, Singleton-method, for
|
|
example)
|
|
|
|
- Operator Overloading
|
|
|
|
- Exception Handling
|
|
|
|
- Iterators and Closures
|
|
|
|
- Garbage Collection
|
|
|
|
- Dynamic Loading of Object Files (on some architectures)
|
|
|
|
- Highly Portable (works on many UNIX machines; DOS, Windows, Mac,
|
|
BeOS, and more)
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Yukihiro Matsumoto <matz@netlab.co.jp>
|
|
|
|
%prep
|
|
%setup -q -n ruby-%{pkg_version}-%{patch_level} -a2 %{?with_bleak_house:-a6}
|
|
%patch0
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch5
|
|
%patch6
|
|
%patch7
|
|
%if 0%{?with_bleak_house}
|
|
for patch in valgrind configure gc ; do
|
|
patch -p0 < bleak_house-%{bleak_house_version}/ruby/${patch}.patch
|
|
done
|
|
%endif
|
|
find . -type f | xargs -n 1 sed -i "s@#!\s*/usr/local/bin/ruby@#!/usr/bin/ruby@"
|
|
# make sure it _really_ rebuilds parse.c for us
|
|
old parse.c
|
|
|
|
%build
|
|
autoreconf -fi
|
|
export CFLAGS="%{optflags} -g -fno-strict-aliasing"
|
|
%configure \
|
|
--with-default-kcode=none \
|
|
--with-mantype=man \
|
|
--enable-shared \
|
|
--disable-static
|
|
%{__make} all
|
|
%{__make} -C ext/tk/ all
|
|
#
|
|
# TODO: patch the .document files to include all needed modules.
|
|
#
|
|
export LD_LIBRARY_PATH="$PWD/"
|
|
export RUBYLIB="$PWD:$PWD/lib:$(find $PWD/.ext $PWD/ext/ -type d |tr '\n' ':')."
|
|
./ruby bin/rdoc \
|
|
--all --line-numbers --ri-system \
|
|
--op=ri/%{rb_ver}/system .
|
|
./ruby bin/rdoc \
|
|
--all --line-numbers --charset=UTF-8 \
|
|
--fmt=html -p --inline-source \
|
|
--op=rdoc/html .
|
|
|
|
%check
|
|
#
|
|
# move the tests out of the way that require an installed ruby
|
|
# we dont have that in our build environment.
|
|
#
|
|
%{__mkdir} unused.test
|
|
%{__mv} test/{drb,soap,webrick} unused.test/
|
|
%ifarch ppc64 s390x
|
|
%{__mv} test/openssl/ unused.test/
|
|
%endif
|
|
#
|
|
# -> LD_LIBRARY_PATH => we need to find libruby.so.%{rb_ver}
|
|
# the test suite uses LD_PRELOAD=./libruby.so.%{rb_ver}
|
|
# -> RUBYLIB => find needed modules during documentation generation
|
|
#
|
|
export LD_LIBRARY_PATH="$PWD/"
|
|
export RUBYLIB="$PWD:$PWD/lib:$(find $PWD/.ext $PWD/ext/ -type d |tr '\n' ':')."
|
|
#
|
|
# run the test suites
|
|
#
|
|
%{__make} check ||:
|
|
#
|
|
# TODO:
|
|
# the big test suite fails with some weird openssl errors on ppc
|
|
# to be reinvestigated
|
|
#
|
|
# %{__make} check
|
|
#
|
|
# restore the tests
|
|
#
|
|
%{__mv} unused.test/{drb,soap,webrick} test/
|
|
%ifarch ppc64 s390x
|
|
%{__mv} unused.test/openssl/ test/
|
|
%endif
|
|
|
|
%install
|
|
%makeinstall
|
|
%makeinstall -C ext/tk/
|
|
%{__install} -d -m 0755 \
|
|
%{buildroot}%{_docdir}/%{name}{,-test-suite} \
|
|
%{buildroot}%{_datadir}/emacs/site-lisp \
|
|
%{buildroot}%{_datadir}/ri/%{rb_ver}/system/ \
|
|
%{buildroot}%{_libdir}/%{name}/vendor_%{name}/%{rb_ver}
|
|
#
|
|
%{__install} -m 0644 misc/*.el %{buildroot}%{_datadir}/emacs/site-lisp/
|
|
%{__install} -m 0644 %{S:1} %{buildroot}%{_mandir}/man1/irb.1
|
|
#
|
|
%{__install} -m 0644 %{S:3} %{buildroot}%{_libdir}/%{name}/site_%{name}/%{rb_ver}
|
|
%{__install} -m 0644 %{S:4} %{buildroot}%{_libdir}/%{name}/vendor_%{name}/%{rb_ver}
|
|
#
|
|
%{__cp} -rv \
|
|
ri/ %{buildroot}%{_datadir}/
|
|
#mv %{buildroot}%{_datadir}{,/ri/%{rb_ver}}/created.rid
|
|
%{__cp} -rv \
|
|
COPYING COPYING.ja ChangeLog GPL LEGAL \
|
|
LGPL README README.EXT README.EXT.ja \
|
|
README.ja ToDo NEWS \
|
|
%{buildroot}%{_docdir}/%{name}
|
|
%if 0%{?with_bleak_house}
|
|
%{__cp} -v bleak_house-%{bleak_house_version}/LICENSE %{buildroot}%{_docdir}/%{name}/LICENSE_AFL_for_bleak_house
|
|
%{__cp} -v bleak_house-%{bleak_house_version}/LICENSE_BSD %{buildroot}%{_docdir}/%{name}/LICENSE_BSD_for_bleak_house
|
|
%endif
|
|
%{__cp} -rv \
|
|
ruby-doc-bundle %{buildroot}%{_docdir}/%{name}
|
|
%{__cp} -rv \
|
|
rdoc/html %{buildroot}%{_docdir}/%{name}/ruby-library-docs
|
|
%{__cp} -rv \
|
|
sample %{buildroot}%{_docdir}/%{name}/examples
|
|
sed -i "s@#!\s*\./miniruby@#!/usr/bin/ruby@" runruby.rb
|
|
%{__cp} -r test/ runruby.rb %{buildroot}%{_docdir}/%{name}-test-suite/
|
|
%{__ln_s} -f %{_bindir}/%{name} %{buildroot}%{_docdir}/%{name}-test-suite/%{name}
|
|
%if 0%{?use_fdupes}
|
|
%fdupes %{buildroot}
|
|
%endif
|
|
chmod -v a-x %{buildroot}%{_libdir}/ruby/%{rb_ver}/%{rb_arch}/*.h
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%dir %{_libdir}/%{name}
|
|
%dir %{_libdir}/%{name}/%{rb_ver}
|
|
%{_libdir}/lib%{name}.so.%{rb_ver}*
|
|
%dir %{_datadir}/emacs
|
|
%dir %{_datadir}/emacs/site-lisp
|
|
%{_datadir}/emacs/site-lisp/*
|
|
%{_mandir}/man1/*
|
|
%dir %{_libdir}/%{name}/site_%{name}
|
|
%dir %{_libdir}/%{name}/site_%{name}/%{rb_ver}
|
|
%dir %{_libdir}/%{name}/site_%{name}/%{rb_ver}/%{rb_arch}
|
|
%dir %{_libdir}/%{name}/vendor_%{name}
|
|
%dir %{_libdir}/%{name}/vendor_%{name}/%{rb_ver}
|
|
%dir %{_libdir}/%{name}/vendor_%{name}/%{rb_ver}/%{rb_arch}
|
|
%{_libdir}/%{name}/site_%{name}/%{rb_ver}/site-specific.rb
|
|
%{_libdir}/%{name}/vendor_%{name}/%{rb_ver}/vendor-specific.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/English.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/Env.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/abbrev.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/base64.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/benchmark.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/cgi*
|
|
%{_libdir}/%{name}/%{rb_ver}/complex.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/csv.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/date.rb
|
|
%dir %{_libdir}/%{name}/%{rb_ver}/date
|
|
%{_libdir}/%{name}/%{rb_ver}/date/format.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/date2.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/debug.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/delegate.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/bigdecimal/
|
|
%{_libdir}/%{name}/%{rb_ver}/digest.rb
|
|
%dir %{_libdir}/%{name}/%{rb_ver}/digest/
|
|
%{_libdir}/%{name}/%{rb_ver}/digest/sha2.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/dl/
|
|
%{_libdir}/%{name}/%{rb_ver}/drb*
|
|
%{_libdir}/%{name}/%{rb_ver}/e2mmap.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/erb.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/eregex.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/expect.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/fileutils.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/finalize.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/find.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/forwardable.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/ftools.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/generator.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/getoptlong.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/getopts.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/gserver.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/importenv.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/io/
|
|
%{_libdir}/%{name}/%{rb_ver}/ipaddr.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/irb*
|
|
%{_libdir}/%{name}/%{rb_ver}/jcode.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/kconv.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/logger.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/mailread.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/mathn.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/matrix.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/md5.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/mkmf.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/monitor.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/mutex_m.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/net/
|
|
%{_libdir}/%{name}/%{rb_ver}/observer.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/open-uri.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/open3.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/openssl*
|
|
%{_libdir}/%{name}/%{rb_ver}/optparse*
|
|
%{_libdir}/%{name}/%{rb_ver}/ostruct.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/parsearg.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/parsedate.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/pathname.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/ping.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/pp.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/prettyprint.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/profile.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/profiler.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/pstore.rb
|
|
%dir %{_libdir}/%{name}/%{rb_ver}/racc
|
|
%{_libdir}/%{name}/%{rb_ver}/racc/parser.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/rational.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/rdoc/
|
|
%{_libdir}/%{name}/%{rb_ver}/readbytes.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/resolv-replace.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/resolv.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/rexml/
|
|
%{_libdir}/%{name}/%{rb_ver}/rinda/
|
|
%{_libdir}/%{name}/%{rb_ver}/rss*
|
|
%{_libdir}/%{name}/%{rb_ver}/rubyunit.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/runit/
|
|
%{_libdir}/%{name}/%{rb_ver}/scanf.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/set.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/securerandom.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/sha1.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/shell*
|
|
%{_libdir}/%{name}/%{rb_ver}/singleton.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/soap/
|
|
%{_libdir}/%{name}/%{rb_ver}/sync.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/tempfile.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/test/
|
|
%{_libdir}/%{name}/%{rb_ver}/thread.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/thwait.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/time.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/timeout.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/tmpdir.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/tracer.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/tsort.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/un.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/uri*
|
|
%{_libdir}/%{name}/%{rb_ver}/weakref.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/webrick*
|
|
%{_libdir}/%{name}/%{rb_ver}/wsdl/
|
|
%{_libdir}/%{name}/%{rb_ver}/xmlrpc/
|
|
%{_libdir}/%{name}/%{rb_ver}/xsd/
|
|
%{_libdir}/%{name}/%{rb_ver}/yaml*
|
|
%dir %{_libdir}/%{name}/%{rb_ver}/%{rb_arch}
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/rbconfig.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/[a-sA-s]*.so
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/[u-zU-Z]*.so
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/thread.so
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/digest/
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/io/
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/racc/
|
|
%dir %{_docdir}/%{name}
|
|
%doc %{_docdir}/%{name}/COPYING*
|
|
%doc %{_docdir}/%{name}/ChangeLog
|
|
%doc %{_docdir}/%{name}/LEGAL
|
|
%doc %{_docdir}/%{name}/*GPL
|
|
%doc %{_docdir}/%{name}/NEWS
|
|
%doc %{_docdir}/%{name}/README*
|
|
%doc %{_docdir}/%{name}/ToDo
|
|
%if 0%{?with_bleak_house}
|
|
%doc %{_docdir}/%{name}/LICENSE_*_for_bleak_house
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/lib%{name}.so
|
|
%{_libdir}/lib%{name}-static.a
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/*.h
|
|
|
|
%files test-suite
|
|
%defattr(-,root,root)
|
|
%{_docdir}/%{name}-test-suite
|
|
|
|
%files tk
|
|
%defattr(-,root,root)
|
|
%{_libdir}/%{name}/%{rb_ver}/tcltk.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/tk*
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/tcltklib.so
|
|
%{_libdir}/%{name}/%{rb_ver}/%{rb_arch}/tkutil.so
|
|
%{_libdir}/%{name}/%{rb_ver}/remote-tk.rb
|
|
%{_libdir}/%{name}/%{rb_ver}/multi-tk.rb
|
|
|
|
%files doc-html
|
|
%defattr(-,root,root)
|
|
%doc %{_docdir}/%{name}/ruby-library-docs
|
|
%doc %{_docdir}/%{name}/ruby-doc-bundle
|
|
|
|
%files doc-ri
|
|
%defattr(-,root,root)
|
|
%doc %{_datadir}/ri
|
|
|
|
%files examples
|
|
%defattr(-,root,root)
|
|
%doc %{_docdir}/%{name}/examples
|
|
|
|
%changelog
|
|
* Sat Sep 06 2008 mrueckert@suse.de
|
|
- update to 1.8.7p72
|
|
vendor_ruby support now officially included
|
|
for all the changes since 1.8.6 see
|
|
/usr/share/doc/packages/ruby/NEWS
|
|
- dropped ruby-1.8.6_openssl_verify_host.patch
|
|
included in update
|
|
- updated patch for new release:
|
|
old name: ruby-1.8.6.p36_lib64.patch
|
|
new name: ruby-1.8.7.p22_lib64.patch
|
|
- updated patch for new release:
|
|
old name: ruby-1.8.6.p36_tcltk-multilib.patch
|
|
new name: ruby-1.8.7.p22_tcltk-multilib.patch
|
|
- dropped ruby-1.8.6.p111_vendor_ruby.patch
|
|
only one chunk survived as ruby-1.8.7-p72_vendor_specific.patch
|
|
* Fri May 16 2008 mrueckert@suse.de
|
|
- update to 1.8.6.p114
|
|
bugfix release
|
|
- Fixes File access vulnerability of WEBrick (CVE-2008-1145)
|
|
(bnc#368618)
|
|
- ensure that the rss module adds the xml namespace
|
|
* Fri Dec 07 2007 mrueckert@suse.de
|
|
- update to 1.8.6.p111
|
|
bugfix release. important changes:
|
|
- ssl fixes (see notes on the ssl patch below)
|
|
- fixes for the threads support
|
|
- various overflow checks
|
|
- safe_level improvements
|
|
- printf fixes
|
|
- imap fixes
|
|
for all the details see /usr/share/doc/packages/ruby/ChangeLog
|
|
- added ruby-1.8.6.p111_openssl_verify_host.patch: (#329706)
|
|
validate the hostname against the CN from the presented SSL
|
|
certificicate. This has been enabled for telnets, ftptls, imaps
|
|
and https. (CVE-2007-5162,CVE-2007-5770)
|
|
For telnets and https the verification is done if the verify mode
|
|
is set to anything else than OpenSSL::SSL::VERIFY_NONE.
|
|
For ftptls it is always enabled.
|
|
For imaps it is checked if you enable verification.
|
|
- added support to build with bleak_house to allow better memleak
|
|
debugging. (requires additional package ruby-bleakhouse)
|
|
- updated ruby-1.8.6.p36_vendor_ruby.patch
|
|
new name ruby-1.8.6.p111_vendor_ruby.patch
|
|
- dropped ruby-1.8.6.p36_thread_prototype_and_testsuite.patch:
|
|
included in update
|
|
* Thu Oct 11 2007 dmueller@suse.de
|
|
- fix headers to be compileable with -pedantic
|
|
* Sun Aug 12 2007 mrueckert@suse.de
|
|
- added ruby_1.8.6.p36_date_remove_privat.patch:
|
|
Time.to_date() and Time.to_datetime() shouldnt be private.
|
|
* Mon Aug 06 2007 mrueckert@suse.de
|
|
- added ruby-1.8.6.p36_thread_prototype_and_testsuite.patch:
|
|
pulled two fixes from the 1.8.6 branch:
|
|
* avoid executing shell in the testsuite
|
|
* moved definition of rb_thread_status() to avoid errors in C++
|
|
extensions.
|
|
* Mon Aug 06 2007 mrueckert@suse.de
|
|
- update to 1.8.6.p36:
|
|
many bugfixes and library updates. hilights:
|
|
=== Library updates (outstanding ones only)
|
|
* date
|
|
* Updated based on date2 4.0.3.
|
|
* digest
|
|
* New internal APIs for C and Ruby.
|
|
* Support for autoloading.
|
|
* See below for new features and compatibility issues.
|
|
* nkf
|
|
* Updated based on nkf as of 2007-01-28.
|
|
* tk
|
|
* Tk::X_Scrollable (Y_Scrollable) is renamed to Tk::XScrollable
|
|
(YScrollable). Tk::X_Scrollable (Y_Scrollable) is still
|
|
available, but it is an alias name.
|
|
* Updated Tile extension support based on Tile 0.7.8.
|
|
* Support --without-X11 configure option for non-X11 versions
|
|
of Tcl/Tk (e.g. Tcl/Tk Aqua).
|
|
* New sample script: irbtkw.rbw -- IRB on Ruby/Tk. It has no
|
|
trouble about STDIN blocking on Windows.
|
|
=== New methods and features
|
|
* builtin classes
|
|
* New method: Kernel#instance_variable_defined?
|
|
* New method: Module#class_variable_defined?
|
|
* New feature: Dir::glob() can now take an array of glob
|
|
patterns.
|
|
* digest
|
|
* New digest class methods: file
|
|
* New digest instance methods: clone, reset, new,
|
|
inspect, digest_length (alias size or length),
|
|
block_length()
|
|
* New library: digest/bubblebabble
|
|
* New function: Digest(name)
|
|
* fileutils
|
|
* New option for FileUtils.cp_r(): :remove_destination
|
|
* thread
|
|
* Replaced with much faster mutex implementation in C. The
|
|
former implementation is available with a configure option
|
|
`--disable-fastthread'.
|
|
* webrick
|
|
* New method: WEBrick::Cookie.parse_set_cookies()
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
* builtin classes
|
|
* String#intern now raises SecurityError when $SAFE level is
|
|
greater than zero.
|
|
* fileutils
|
|
* A minor implementation change breaks Rake <=0.7.1.
|
|
Updating Rake to 0.7.2 fixes the problem.
|
|
* digest
|
|
* The constructor does no longer take an initial string to
|
|
feed; digest() and hexdigest() now do, instead.
|
|
For all details see the NEWS or ChangeLog file.
|
|
- rediffed patch ruby-1.8.2-gc.diff
|
|
new name ruby-1.8.6.p36_gc.patch
|
|
- rediffed patch ruby-1.8.2-tcltk-multilib.patch
|
|
new name ruby-1.8.6.p36_tcltk-multilib.patch
|
|
- rediffed patch ruby-socket_ipv6.patch
|
|
new name ruby-1.8.6.p36_socket_ipv6.patch
|
|
- rediffed patch ruby-1.8.5-vendor_ruby.patch
|
|
new name ruby-1.8.6.p36_vendor_ruby.patch
|
|
- rediffed patch ruby-1.8.5.p12-lib64.diff
|
|
new name ruby-1.8.6.p36_lib64.patch
|
|
* Fri Mar 30 2007 rguenther@suse.de
|
|
- add bison BuildRequires
|
|
- add emacs site-lisp directories
|
|
* Fri Mar 23 2007 rguenther@suse.de
|
|
- add gdbm-devel BuildRequires
|
|
* Mon Feb 12 2007 mrueckert@suse.de
|
|
- update to 1.8.5-p12:
|
|
* stable version 1.8.5-p12 released.
|
|
* ext/tk/tcltklib.c: shouldn't run the killed thread at callback.
|
|
[ruby-talk: 227408]
|
|
* lib/rdoc/ri/ri_options.rb: prevent NameError. [ruby-dev:29597]
|
|
* dir.c (glob_helper): get rid of possible memory leak.
|
|
* win32/win32.c (cmdglob, rb_w32_cmdvector, rb_w32_opendir,
|
|
rb_w32_get_environ): not to use GC before initialization.
|
|
* configure.in (SITE_DIR): fixed to emtpy RUBY_SITE_LIB in
|
|
config.h on NetBSD. fixed: [ruby-dev:29358]
|
|
* parse.y (dyna_init_gen): dvar initialization only if dvar is
|
|
assigned inner block. [ruby-talk:227402]
|
|
* stable version 1.8.5-p2 released.
|
|
* lib/cgi.rb (CGI::QueryExtension::read_multipart): should
|
|
quote boundary. JVN#84798830 (BNC #225983) (CVE-2006-6303)
|
|
* bignum.c (bignorm): avoid segmentation. a patch from Hiroyuki
|
|
Ito <ZXB01226@nifty.com>. [ruby-list:43012]
|
|
* parse.y (primary): should set NODE even when compstmt is NULL.
|
|
merge from trunk. fixed: [ruby-dev:29732]
|
|
* lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content
|
|
may be empty. a patch from Jamis Buck <jamis at 37signals.com>.
|
|
* ext/dbm/extconf.rb: create makefile according to the result of
|
|
check for dbm header. fixed: [ruby-dev:29445]
|
|
* hash.c (rb_hash_s_create): fixed memory leak, based on the
|
|
patch by Kent Sibilev <ksruby at gmail.com>.
|
|
fixed: [ruby-talk:211233]
|
|
- rediffed ruby-1.8.1-lib64.diff
|
|
new name ruby-1.8.5.p12-lib64.diff
|
|
- patches included in the update:
|
|
cgi_multipart_eof_fix.patch
|
|
ruby-1.8.4-fix-alias-safe-level.patch
|
|
ruby-1.8.4-fix-insecure-dir-operation.patch
|
|
ruby-1.8.4-fix-insecure-regexp-modification.patch
|
|
ruby-1.8.4-no-eaccess.diff
|
|
ruby-1.8.4-warnings.patch
|
|
ruby-fix-autoconf-magic-code.patch
|
|
- added ruby-1.8.x-autoconf_2.61a.patch:
|
|
config.status changed to awk in 2.61a. adapt mkconfig.rb to the
|
|
new syntax.
|
|
* Mon Oct 30 2006 mrueckert@suse.de
|
|
- added cgi_multipart_eof_fix.patch:
|
|
fix for a denial of service condition in cgi.rb CVE-2006-5467
|
|
(#214916)
|
|
* Fri Oct 20 2006 mrueckert@suse.de
|
|
- run ldconfig
|
|
- add site_ruby and vendor_ruby arch directories to the filelist
|
|
* Wed Sep 27 2006 mrueckert@suse.de
|
|
- added ruby-1.8.5-vendor_ruby.patch, site-specific.rb, vendor-specific.rb:
|
|
add vendor_ruby support. This is a small change for packager.
|
|
you can now run 'ruby -rvendor-specific extconf.rb' (or setup.rb)
|
|
and it will be automatically installed in
|
|
%%{_libdir}/ruby/vendor_ruby.
|
|
* Sat Aug 26 2006 mrueckert@suse.de
|
|
- Update to version 1.8.5:
|
|
o Non-blocking IO
|
|
| - Several methods backported from HEAD have been added:
|
|
| - BasicSocket?#recv_nonblock
|
|
| - IO#read_nonblock
|
|
| - IO#write_nonblock
|
|
| - Socket#accept_nonblock
|
|
| - Socket#connect_nonblock
|
|
| - Socket#recvfrom_nonblock
|
|
| - TCPServer#accept_nonblock
|
|
| - UDPSocket#recvfrom_nonblock
|
|
| - UNIXServer#accept_nonblock
|
|
| (see ruby-core:7917, ruby-core:7925).
|
|
|
|
|
o Process.getrlimit/setrlimit See ruby-dev:28729.
|
|
|
|
|
o Changes in rdoc/ri
|
|
| - lots of documentation added
|
|
| - RubyGems support: ri will search gem installation dirs for
|
|
| additional documentation
|
|
| - new options to limit the search path
|
|
|
|
|
o RSS
|
|
| - added RSS::RootElementMixin?#to_xml (ruby-talk:197284), which
|
|
| can be used to convert feeds to a different RSS version as
|
|
| follows:
|
|
| [[[
|
|
| rss10 = RSS::Parser.parse(File.read("1.0.rdf"))
|
|
| File.open("2.0.rss", "w") {|f| f.print(rss10.to_xml("2.0"))}
|
|
| ]]]
|
|
| - Support for taxonomies added to the RSS parser and generator.
|
|
| - A number of convenience methods added
|
|
| - New style API for RSS generation ruby-talk:197284
|
|
| [[[
|
|
| The recommended style is nowxxx.new_yyy do |yyy|
|
|
| yyy.zzz = zzz
|
|
| ...
|
|
| end
|
|
|
|
|
|
|
|
| This corresponds to the following in pre-1.8.5:
|
|
| yyy = xxx.new_yyy
|
|
| yyy.zzz = zzz
|
|
| ]]]
|
|
o Misc
|
|
| - added Kernel.Pathname(path)
|
|
| - added Kernel#pretty_inspect
|
|
| - changes in the GC subsystem that result in better performance
|
|
| in some cases
|
|
| - added OptionParser?#getopts
|
|
| - the per-object overhead went down to 20 bytes on win32
|
|
| (from 24) ruby-core:7474
|
|
o What breaks (!!!)
|
|
| - Binding.of_caller, and therefore breakpoint (including Rails')
|
|
| - several problems in ri reported: the documentation for some
|
|
| methods seems to have disappeared, and several methods that
|
|
| should not be documented appear in the indices;
|
|
| see ruby-core:08709
|
|
- removed patches, which are included in 1.8.5:
|
|
ruby-1.8.4-fix-insecure-dir-operation.patch
|
|
ruby-1.8.4-fix-insecure-regexp-modification.patch
|
|
ruby-1.8.4-fix-alias-safe-level.patch
|
|
- updated ruby-1.8.4_linkerflags.patch.
|
|
new name ruby-1.8.5_linkerflags.patch
|
|
* Mon Jul 31 2006 mrueckert@suse.de
|
|
- added ruby-fix-autoconf-magic-code.patch:
|
|
Fix for the latest changes in the autoconf code.
|
|
* Mon Jul 31 2006 mrueckert@suse.de
|
|
- security fixes [CVE-2006-3694] [#193661]
|
|
* added ruby-1.8.4-fix-insecure-dir-operation.patch &
|
|
ruby-1.8.4-fix-insecure-regexp-modification.patch:
|
|
fix the insecure operations in the certain safe-level
|
|
restrictions.
|
|
* ruby-1.8.4-fix-alias-safe-level.patch: preserve safe level
|
|
restrictions when aliasing a function.
|
|
* Mon Apr 10 2006 mrueckert@suse.de
|
|
- build with -fno-strict-aliasing
|
|
- enable more tests on ppc
|
|
- disable drb tests
|
|
* Mon Apr 03 2006 mrueckert@suse.de
|
|
- reworked the ruby-1.8.4-no-eaccess.diff patch
|
|
it broke when build on old distros
|
|
* Thu Jan 26 2006 mrueckert@suse.de
|
|
- added upstream patch for eaccess
|
|
- disabled openssl tests on pcc
|
|
* Wed Jan 25 2006 mrueckert@suse.de
|
|
- added ruby-1.8.4_linkerflags.patch
|
|
patch removes -L. from the linker flags.
|
|
it seems libtool otherwise expands it to -L$PWD.
|
|
this leads to trouble with our build system.
|
|
* Wed Jan 25 2006 mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Mon Jan 16 2006 kukuk@suse.de
|
|
- Use eaccess() from glibc [#143291]
|
|
* Sun Jan 15 2006 mrueckert@suse.de
|
|
- disabled the big test suite as we trigger
|
|
a weird bug in the openssl bindings on ppc64
|
|
* Sat Dec 24 2005 mrueckert@suse.de
|
|
- Update to 1.8.4
|
|
- dont run with --default-kcode=utf8
|
|
triggers a bug in the test suite
|
|
* Fri Sep 23 2005 mrueckert@suse.de
|
|
- update to 1.8.3
|
|
- updated patches for 1.8.3
|
|
- ruby-doc tarball now included as tar.bz2
|
|
* Mon Sep 12 2005 mrueckert@suse.de
|
|
- fix path of the RI documentation [Bug #116408]
|
|
* Thu Sep 08 2005 mrueckert@suse.de
|
|
- dont make the irb man page executable. [Bug #114849]
|
|
* Tue Aug 23 2005 mrueckert@suse.de
|
|
- added directory entries for the site ruby dirs
|
|
* Mon Aug 22 2005 mrueckert@suse.de
|
|
- disabled mkmf patch for now. it breaks building the socket
|
|
extension.
|
|
* Sun Aug 21 2005 ro@suse.de
|
|
- added directories to filelist
|
|
- fix typo in filelist
|
|
* Fri Aug 19 2005 mrueckert@suse.de
|
|
- Build RI and html documentation. Added subpackages for them.
|
|
- moved samples into a sub packages.
|
|
- build tcl/tk bindings and move them into their own package.
|
|
(ruby-1.8.2-tcltk-multilib.patch)
|
|
- disabled optimization on ia64/x86_x64. needs investigation.
|
|
- fixed parameter swap in memset call
|
|
(ruby-1.8.2-strscan-memset.patch)
|
|
- let mkmf create shared libraries (ruby-mkmf-shared.patch)
|
|
- splitted of devel files
|
|
* Tue Jul 19 2005 mge@suse.de
|
|
- make "make test" run also on x86_64 by disabling
|
|
code optimization (-O0), as it is for ia64
|
|
- enable "make test" for ppc64 again
|
|
* Tue Jul 19 2005 mge@suse.de
|
|
- Fixes #95366, CAN-2005-1992:
|
|
arbitrary command execution on XMLRPC server
|
|
* Wed Jun 01 2005 ro@suse.de
|
|
- update to 1.8.2
|
|
* Mon Jan 03 2005 mge@suse.de
|
|
- added fixes for lib/cgi.rb and lib/cgi/session.rb
|
|
from ruby-1.8.2, fixes: #47886 (CAN-2004-0983)
|
|
* Thu Nov 18 2004 ro@suse.de
|
|
- fixed file list
|
|
* Sat Sep 25 2004 ro@suse.de
|
|
- added cgi_session.diff (from debian, CAN-2004-0755)
|
|
* Mon Jul 26 2004 ro@suse.de
|
|
- fix typo in specfile
|
|
* Sun Jun 20 2004 ro@suse.de
|
|
- fix find in specfile
|
|
* Thu Apr 29 2004 ro@suse.de
|
|
- added missing return value (unreached code)
|
|
* Tue Mar 23 2004 mge@suse.de
|
|
- make ruby build on ia64 and ppc64
|
|
* Sat Feb 28 2004 ro@suse.de
|
|
- fix makefile rule for regenerating lex.c
|
|
* Sat Feb 28 2004 ro@suse.de
|
|
- add gperf to neededforbuild
|
|
* Sat Feb 28 2004 ro@suse.de
|
|
- fix requirement for /usr/local/bin
|
|
- use no-strict-aliasing
|
|
* Mon Feb 02 2004 mge@suse.de
|
|
- update to 1.8.1
|
|
also fixes Bug #34226: Readline support missing from ruby
|
|
* Sun Jan 11 2004 adrian@suse.de
|
|
- add %%defattr
|
|
* Mon Aug 04 2003 mge@suse.de
|
|
- update tp 1.8.0
|
|
* Mon Jan 06 2003 mge@suse.de
|
|
- update to 1.6.8
|
|
* Tue May 21 2002 meissner@suse.de
|
|
- More %%_lib fixes inside package.
|
|
* Tue May 21 2002 meissner@suse.de
|
|
- %%_lib fixes
|
|
- Added prototype for rb_node_newnode.
|
|
* Fri May 17 2002 mge@suse.de
|
|
- update to 1.6.7
|
|
* Mon Apr 15 2002 bk@suse.de
|
|
- lib64 and new arch fixes: suse_update_config and use %%_libdir
|
|
* Fri Apr 05 2002 schwab@suse.de
|
|
- Remove ia64 workaround.
|
|
* Tue Aug 21 2001 mge@suse.de
|
|
- update to 1.6.4
|
|
* Sun May 20 2001 mge@suse.de
|
|
- changes _only_ to spec-file:
|
|
- make ruby shared libs built
|
|
- cleanup ruby directory structure (drop /usr/share/lib/ruby/)
|
|
* Wed May 09 2001 mfabian@suse.de
|
|
- bzip2 sources
|
|
* Thu Mar 22 2001 mge@suse.de
|
|
- update to 1.6.3, merge of rread's SPEC patches
|
|
* Mon Mar 19 2001 schwab@suse.de
|
|
- Don't use __builtin_frame_address(2) on ia64.
|
|
- Compile with -O0 on ia64 to work around compiler bug.
|
|
* Mon Mar 05 2001 rread@mountainviewdata.com
|
|
- introduced build-root
|
|
* Fri Feb 23 2001 ro@suse.de
|
|
- added readline/readline-devel to neededforbuild (split from bash)
|
|
* Fri Jan 12 2001 mge@suse.de
|
|
- update to 1.6.2
|
|
* Wed Dec 13 2000 schwab@suse.de
|
|
- Add %%suse_update_config.
|
|
- Fix computation of stack limit.
|
|
* Tue Dec 05 2000 mge@suse.de
|
|
- update to 1.6.1, manual 1.4.6
|
|
* Thu Jul 06 2000 mge@suse.de
|
|
- initial SuSE RPM
|