23 |
%endif |
%endif |
24 |
|
|
25 |
|
|
26 |
%define rel 2 |
%define rel 3 |
27 |
%{!?release_string:%global release_string %mkrel %{?development_release:0.}%{rel}%{?development_release:.%{development_release}}} |
%{!?release_string:%global release_string %mkrel %{?development_release:0.}%{rel}%{?development_release:.%{development_release}}} |
28 |
|
|
29 |
# The RubyGems library has to stay out of Ruby directory three, since the |
# The RubyGems library has to stay out of Ruby directory three, since the |
87 |
# RubyGems should be shared by all Ruby implementations. |
# RubyGems should be shared by all Ruby implementations. |
88 |
%define gem_dir %{_datadir}/gems |
%define gem_dir %{_datadir}/gems |
89 |
|
|
|
%define bootstrap 1 |
|
|
%define build_gems 1 |
|
|
|
|
90 |
Summary: Object Oriented Script Language |
Summary: Object Oriented Script Language |
91 |
Name: ruby |
Name: ruby |
92 |
Version: %{rubyver} |
Version: %{rubyver} |
120 |
Source0: http://ftp.ruby-lang.org/pub/ruby/%{subver}/ruby-%{rubyver}.tar.xz |
Source0: http://ftp.ruby-lang.org/pub/ruby/%{subver}/ruby-%{rubyver}.tar.xz |
121 |
Source1: operating_system.rb |
Source1: operating_system.rb |
122 |
Source3: ruby.macros |
Source3: ruby.macros |
123 |
|
Source4: rubygems.macros |
124 |
# From FC: |
# From FC: |
125 |
# RPM dependency generators. |
# RPM dependency generators. |
126 |
Source8: rubygems.attr |
Source8: rubygems.attr |
127 |
Source9: rubygems.req |
Source9: rubygems.req |
128 |
Source10: rubygems.prov |
Source10: rubygems.prov |
129 |
URL: http://ruby-lang.org/ |
URL: http://ruby-lang.org/ |
|
%if !%bootstrap |
|
|
BuildRequires: ruby |
|
|
%endif |
|
|
%if !%bootstrap || %build_gems |
|
|
Requires: rubygems >= %{rubygems_version} |
|
|
%endif |
|
130 |
|
|
131 |
# == FEDORA PATCHES BEGINS == |
# == FEDORA PATCHES BEGINS == |
132 |
# Fix ruby_version abuse. |
# Fix ruby_version abuse. |
488 |
# Install the rpm macros |
# Install the rpm macros |
489 |
mkdir -p %buildroot%{_sysconfdir}/rpm/macros.d |
mkdir -p %buildroot%{_sysconfdir}/rpm/macros.d |
490 |
cp %{SOURCE3} %buildroot%{_sysconfdir}/rpm/macros.d |
cp %{SOURCE3} %buildroot%{_sysconfdir}/rpm/macros.d |
491 |
|
cp %{SOURCE4} %buildroot%{_sysconfdir}/rpm/macros.d |
492 |
|
|
493 |
# Install dependency generators. |
# Install dependency generators. |
494 |
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs |
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs |