1 |
%define subver 1.9 |
%define subver 1.9 |
2 |
|
%define rubyapi 1.9.1 |
3 |
%define rubyver 1.9.3 |
%define rubyver 1.9.3 |
4 |
%define patchversion p194 |
%define patchversion p194 |
5 |
%define rel 1 |
%define rel 1 |
6 |
|
|
7 |
|
# This is the local lib/arch and should not be used for packaging. |
8 |
|
%define ruby_sitelibdir %{_datadir}/ruby/site_ruby/%{rubyapi} |
9 |
|
%define ruby_sitearchdir %{_libdir}/ruby/site_ruby/%{rubyapi} |
10 |
|
|
11 |
|
# This is the general location for libs/archs compatible with all |
12 |
|
# or most of the Ruby versions available in the Fedora repositories. |
13 |
|
%define ruby_vendorlibdir %{_datadir}/ruby/vendor_ruby/%{rubyapi} |
14 |
|
%define ruby_vendorarchdir %{_libdir}/ruby/vendor_ruby/%{rubyapi} |
15 |
|
|
16 |
|
# The RubyGems library has to stay out of Ruby directory three, since the |
17 |
|
# RubyGems should be share by all Ruby implementations. |
18 |
|
%define rubygems_dir %{_datadir}/ruby/gems/%{rubyapi} |
19 |
|
|
20 |
Summary: Object Oriented Script Language |
Summary: Object Oriented Script Language |
21 |
Name: ruby |
Name: ruby |
22 |
Version: %{rubyver}.%{patchversion} |
Version: %{rubyver}.%{patchversion} |
43 |
|
|
44 |
Source0: http://ftp.ruby-lang.org/pub/ruby/%{subver}/ruby-%{rubyver}-%{patchversion}.tar.bz2 |
Source0: http://ftp.ruby-lang.org/pub/ruby/%{subver}/ruby-%{rubyver}-%{patchversion}.tar.bz2 |
45 |
Source3: ruby.macros |
Source3: ruby.macros |
|
Patch0: ruby-lib64.patch |
|
|
Patch1: ruby-do-not-use-system-ruby-to-generate-ri-doc.patch |
|
|
Patch2: ruby-add-old-os-to-search-path.patch |
|
|
Patch3: ruby-do_not_propagate_no-undefined.patch |
|
46 |
URL: http://www.ruby-lang.org/ |
URL: http://www.ruby-lang.org/ |
47 |
|
|
48 |
|
# == FEDORA PATCHES BEGINS == |
49 |
|
# http://redmine.ruby-lang.org/issues/5231 |
50 |
|
Patch0: ruby-1.9.3-disable-versioned-paths.patch |
51 |
|
# TODO: Should be submitted upstream? |
52 |
|
Patch1: ruby-1.9.3-arch-specific-dir.patch |
53 |
|
# http://redmine.ruby-lang.org/issues/5281 |
54 |
|
Patch2: ruby-1.9.3-added-site-and-vendor-arch-flags.patch |
55 |
|
# Force multiarch directories for i.86 to be always named i386. This solves |
56 |
|
# some differencies in build between Fedora and RHEL. |
57 |
|
Patch3: ruby-1.9.3-always-use-i386.patch |
58 |
|
# http://redmine.ruby-lang.org/issues/5465 |
59 |
|
Patch4: ruby-1.9.3-fix-s390x-build.patch |
60 |
|
# Fix the uninstaller, so that it doesn't say that gem doesn't exist |
61 |
|
# when it exists outside of the GEM_HOME (already fixed in the upstream) |
62 |
|
Patch5: ruby-1.9.3-rubygems-1.8.11-uninstaller.patch |
63 |
|
# http://redmine.ruby-lang.org/issues/5135 - see comment 29 |
64 |
|
Patch6: ruby-1.9.3-webrick-test-fix.patch |
65 |
|
# Already fixed upstream: |
66 |
|
# https://github.com/ruby/ruby/commit/f212df564a4e1025f9fb019ce727022a97bfff53 |
67 |
|
Patch7: ruby-1.9.3-bignum-test-fix.patch |
68 |
|
# Allows to install RubyGems into custom directory, outside of Ruby's tree. |
69 |
|
# http://redmine.ruby-lang.org/issues/5617 |
70 |
|
Patch8: ruby-1.9.3-custom-rubygems-location.patch |
71 |
|
# Add support for installing binary extensions according to FHS. |
72 |
|
# https://github.com/rubygems/rubygems/issues/210 |
73 |
|
Patch9: rubygems-1.8.11-binary-extensions.patch |
74 |
|
# Make mkmf verbose by default |
75 |
|
Patch12: ruby-1.9.3-mkmf-verbose.patch |
76 |
|
# == FEDORA PATCHES ENDS == |
77 |
|
|
78 |
%package doc |
%package doc |
79 |
Summary: Documentation for the powerful language Ruby |
Summary: Documentation for the powerful language Ruby |
80 |
Group: Development/Ruby |
Group: Development/Ruby |
122 |
|
|
123 |
%prep |
%prep |
124 |
%setup -q -n ruby-%{rubyver}-%{patchversion} |
%setup -q -n ruby-%{rubyver}-%{patchversion} |
125 |
|
%apply_patches |
126 |
|
|
127 |
%build |
%build |
128 |
CFLAGS=`echo %optflags | sed 's/-fomit-frame-pointer//'` |
CFLAGS=`echo %optflags | sed 's/-fomit-frame-pointer//'` |
129 |
%configure2_5x --enable-shared --disable-rpath --enable-pthread |
%configure2_5x --enable-shared --disable-rpath --enable-pthread \ |
130 |
|
--with-sitedir='%{ruby_sitelibdir}' \ |
131 |
|
--with-sitearchdir='%{ruby_sitearchdir}' \ |
132 |
|
--with-vendordir='%{ruby_vendorlibdir}' \ |
133 |
|
--with-vendorarchdir='%{ruby_vendorarchdir}' \ |
134 |
|
--with-rubygemsdir='%{rubygems_dir}' \ |
135 |
%make |
%make |
136 |
|
|
137 |
%install |
%install |