/[packages]/cauldron/ruby/current/SPECS/ruby.spec
ViewVC logotype

Diff of /cauldron/ruby/current/SPECS/ruby.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 291589 by fwang, Mon Sep 10 03:43:27 2012 UTC revision 291590 by fwang, Mon Sep 10 06:29:57 2012 UTC
# Line 4  Line 4 
4  %define patchversion p194  %define patchversion p194
5  %define rel 3  %define rel 3
6    
7    %define libname %mklibname ruby %{subver}
8    
9  %define ruby_libdir %{_datadir}/%{name}  %define ruby_libdir %{_datadir}/%{name}
10  %define ruby_libarchdir %{_libdir}/%{name}  %define ruby_libarchdir %{_libdir}/%{name}
11    
# Line 19  Line 21 
21  # 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
22  # RubyGems should be share by all Ruby implementations.  # RubyGems should be share by all Ruby implementations.
23  %define rubygems_dir %{_datadir}/ruby/gems  %define rubygems_dir %{_datadir}/ruby/gems
24    %define rubygems_version 1.8.23
25    
26  Summary:        Object Oriented Script Language  Summary:        Object Oriented Script Language
27  Name:           ruby  Name:           ruby
28    Epoch:          1
29  Version:        %{rubyver}.%{patchversion}  Version:        %{rubyver}.%{patchversion}
30  Release:        %mkrel %rel  Release:        %mkrel %rel
31  License:        Ruby or GPLv2  License:        Ruby or GPLv2
# Line 71  Patch8: ruby-1.9.3-custom-rubygems-locat Line 75  Patch8: ruby-1.9.3-custom-rubygems-locat
75  # Add support for installing binary extensions according to FHS.  # Add support for installing binary extensions according to FHS.
76  # https://github.com/rubygems/rubygems/issues/210  # https://github.com/rubygems/rubygems/issues/210
77  Patch9: rubygems-1.8.11-binary-extensions.patch  Patch9: rubygems-1.8.11-binary-extensions.patch
 # Make mkmf verbose by default  
 Patch12: ruby-1.9.3-mkmf-verbose.patch  
78  # == FEDORA PATCHES ENDS ==  # == FEDORA PATCHES ENDS ==
79    
80    %package        %{libname}
81    Summary:        Libraries necessary to run Ruby
82    Group:          Development/Ruby
83    
84  %package        doc  %package        doc
85  Summary:        Documentation for the powerful language Ruby  Summary:        Documentation for the powerful language Ruby
86  Group:          Development/Ruby  Group:          Development/Ruby
# Line 83  BuildArch:     noarch Line 89  BuildArch:     noarch
89  %package        devel  %package        devel
90  Summary:        Development file for the powerful language Ruby  Summary:        Development file for the powerful language Ruby
91  Group:          Development/Ruby  Group:          Development/Ruby
92  Requires:       %{name} = %{version}  Requires:       %{name} = %{epoch}:%{version}
93    Requires:       %{libname} = %{epoch}:%{version}
94    
95  %package        tk  %package        tk
96  Summary:        Tk extension for the powerful language Ruby  Summary:        Tk extension for the powerful language Ruby
97  Group:          Development/Ruby  Group:          Development/Ruby
98  Requires:       %{name} = %{version}  Requires:       %{name} = %{epoch}:%{version}
99    
100  %package        RubyGems  %package        RubyGems
101  Summary:        The Ruby standard for packaging ruby libraries  Summary:        The Ruby standard for packaging ruby libraries
102  Group:          Development/Ruby  Group:          Development/Ruby
103    Version:        %{rubygems_version}
104  Requires:       ruby(abi) = %{subver}  Requires:       ruby(abi) = %{subver}
105  Provides:       gem = %{version}-%{release}  Provides:       gem = %{rubygems_version}
106  Provides:       ruby(rubygems) = %{version}-%{release}  Provides:       rubygems = %{rubygems_version}
107    Provides:       ruby(rubygems) = %{rubygems_version}
108  BuildArch:      noarch  BuildArch:      noarch
109    
110  %package        rake  %package        rake
111  Summary:        Simple ruby build program with capabilities similar to make  Summary:        Simple ruby build program with capabilities similar to make
112  Group:          Development/Ruby  Group:          Development/Ruby
113    Version:        0.9.2.2
114  Requires:       ruby(abi) = %{subver}  Requires:       ruby(abi) = %{subver}
115  BuildArch:      noarch  BuildArch:      noarch
116    
117  %package        minitest  %package        minitest
118  Summary:        Minitest provides a complete suite of testing facilities.  Summary:        Minitest provides a complete suite of testing facilities.
119  Group:          Development/Ruby  Group:          Development/Ruby
120    Version:        2.5.1
121  License:        MIT  License:        MIT
122  Requires:       ruby(abi) = %{ruby_abi}  Requires:       ruby(abi) = %{subver}
123  Requires:       ruby(rubygems) >= %{version}  Requires:       ruby(rubygems) >= %{rubygems_version}
124  Provides:       rubygem(minitest) = %{version}-%{release}  Provides:       rubygem(minitest) = 2.5.1
125  BuildArch:      noarch  BuildArch:      noarch
126    
127  %package        json  %package        json
128  Summary:        This is a JSON implementation as a Ruby extension in C  Summary:        This is a JSON implementation as a Ruby extension in C
129  Group:          Development/Ruby  Group:          Development/Ruby
130    Version:        1.5.4
131  License:        Ruby or GPLv2  License:        Ruby or GPLv2
132  Requires:       ruby(abi) = %{ruby_abi}  Requires:       ruby(abi) = %{subver}
133  Requires:       ruby(rubygems) >= %{version}  Requires:       ruby(rubygems) >= %{rubygems_version}
134  Provides:       rubygem(json) = %{version}-%{release}  Provides:       rubygem(json) = 1.5.4
135    
136  %package        rdoc  %package        rdoc
137  Summary:        A tool to generate HTML and command-line documentation for Ruby projects  Summary:        A tool to generate HTML and command-line documentation for Ruby projects
138  Group:          Development/Ruby  Group:          Development/Ruby
139    Version:        3.9.4
140  License:        GPLv2 and Ruby and MIT  License:        GPLv2 and Ruby and MIT
141  Requires:       ruby(abi) = %{ruby_abi}  Requires:       ruby(abi) = %{subver}
142  Requires:       ruby(rubygems) >= %{version}  Requires:       ruby(rubygems) >= %{rubygems_version}
143  Provides:       rdoc = %{version}-%{release}  Requires:       ruby(irb) = %{version}
144  Provides:       ri = %{version}-%{release}  Provides:       rdoc = 3.9.4
145    Provides:       ri = 3.9.4
146    BuildArch:      noarch
147    
148    %package        irb
149    Summary:        The Interactive Ruby
150    Group:          Development/Ruby
151    Provides:       irb = %{version}-%{release}
152    Provides:       ruby(irb) = %{version}-%{release}
153  BuildArch:      noarch  BuildArch:      noarch
154    
155    %package        bigdecimal
156    Summary:        BigDecimal provides arbitrary-precision floating point decimal arithmetic
157    Group:          Development/Ruby
158    Version:        1.1.0
159    License:        GPL+ or Artistic
160    Requires:       ruby(abi) = %{subver}
161    Requires:       ruby(rubygems) >= %{rubygems_version}
162    Provides:       rubygem(bigdecimal) = 1.1.0
163    
164    %package        io-console
165    Summary:        IO/Console is a simple console utilizing library
166    Group:          Development/Ruby
167    Version:        0.3
168    Requires:       ruby(abi) = %{subver}
169    Requires:       ruby(rubygems) >= %{rubygems_version}
170    Provides:       rubygem(io-console) = 0.3
171    
172  %description  %description
173  Ruby is the interpreted scripting language for quick and  Ruby is the interpreted scripting language for quick and
174  easy object-oriented programming.  It has many features to  easy object-oriented programming.  It has many features to
# Line 145  Perl). It is simple, straight-forward, a Line 183  Perl). It is simple, straight-forward, a
183    
184  This package contains the Ruby's documentation  This package contains the Ruby's documentation
185    
186    %description    -n %{libname}
187    This package includes the libruby, necessary to run Ruby.
188    
189  %description    devel  %description    devel
190  Ruby is the interpreted scripting language for quick and  Ruby is the interpreted scripting language for quick and
191  easy object-oriented programming.  It has many features to  easy object-oriented programming.  It has many features to
# Line 194  framework. Line 235  framework.
235  minitest/pride shows pride in testing and adds coloring to your test  minitest/pride shows pride in testing and adds coloring to your test
236  output.  output.
237    
238    %description    irb
239    The irb is acronym for Interactive Ruby.  It evaluates ruby expression
240    from the terminal.
241    
242    %description    bigdecimal
243    Ruby provides built-in support for arbitrary precision integer arithmetic.
244    For example:
245    
246    42**13 -> 1265437718438866624512
247    
248    BigDecimal provides similar support for very large or very accurate floating
249    point numbers. Decimal arithmetic is also useful for general calculation,
250    because it provides the correct answers people expect–whereas normal binary
251    floating point arithmetic often introduces subtle errors because of the
252    conversion between base 10 and base 2.
253    
254    %description    io-console
255    IO/Console provides very simple and portable access to console. It doesn't
256    provide higher layer features, such like curses and readline.
257    
258  %prep  %prep
259  %setup -q -n ruby-%{rubyver}-%{patchversion}  %setup -q -n ruby-%{rubyver}-%{patchversion}
260  %apply_patches  %apply_patches
# Line 234  make test Line 295  make test
295    
296  %files  %files
297  %{_bindir}/erb  %{_bindir}/erb
 %{_bindir}/irb  
298  %{_bindir}/rake  %{_bindir}/rake
299  %{_bindir}/rdoc  %{_bindir}/rdoc
300  %{_bindir}/ri  %{_bindir}/ri
301  %{_bindir}/ruby  %{_bindir}/ruby
302  %{_bindir}/testrb  %{_bindir}/testrb
 %{_libdir}/libruby.so.%{subver}  
 %{_libdir}/libruby.so.%{rubyapi}  
303  %dir %{ruby_libdir}  %dir %{ruby_libdir}
304  %{ruby_libdir}/*.rb  %{ruby_libdir}/*.rb
305    %exclude %{ruby_libdir}/irb.rb
306  %exclude %{ruby_libdir}/multi-tk.rb  %exclude %{ruby_libdir}/multi-tk.rb
307  %exclude %{ruby_libdir}/remote-tk.rb  %exclude %{ruby_libdir}/remote-tk.rb
308  %exclude %{ruby_libdir}/tcltk.rb  %exclude %{ruby_libdir}/tcltk.rb
# Line 335  make test Line 394  make test
394  %{ruby_libarchdir}/syslog.so  %{ruby_libarchdir}/syslog.so
395  %{ruby_libarchdir}/zlib.so  %{ruby_libarchdir}/zlib.so
396  %{_mandir}/man1/erb.1.*  %{_mandir}/man1/erb.1.*
 %{_mandir}/man1/irb.1.*  
397  %{_mandir}/man1/ri.1.*  %{_mandir}/man1/ri.1.*
398  %{_mandir}/man1/ruby.1.*  %{_mandir}/man1/ruby.1.*
399  %{_datadir}/emacs/site-lisp/*  %{_datadir}/emacs/site-lisp/*
# Line 349  make test Line 407  make test
407  %files doc  %files doc
408  %{_datadir}/ri  %{_datadir}/ri
409    
410    %files -n %{libname}
411    %{_libdir}/libruby.so.%{subver}
412    %{_libdir}/libruby.so.%{rubyapi}
413    
414  %files devel  %files devel
415  %{_includedir}/*  %{_includedir}/*
416  %{_libdir}/libruby-static.a  %{_libdir}/libruby-static.a
# Line 398  make test Line 460  make test
460  %{_mandir}/man1/rake.1.*  %{_mandir}/man1/rake.1.*
461  %{ruby_libdir}/rake  %{ruby_libdir}/rake
462  %{rubygems_dir}/%{rubyapi}/gems/rake-*  %{rubygems_dir}/%{rubyapi}/gems/rake-*
463  %{rubygems_dir}/%{rubyapi}/specifications/rdoc-*.gemspec  %{rubygems_dir}/%{rubyapi}/specifications/rake-*.gemspec
464    
465  %files rdoc  %files rdoc
466  %{_bindir}/rdoc  %{_bindir}/rdoc
# Line 414  make test Line 476  make test
476  %{ruby_libarchdir}/json/ext/*.so  %{ruby_libarchdir}/json/ext/*.so
477  %{ruby_libdir}/json  %{ruby_libdir}/json
478  %{rubygems_dir}/%{rubyapi}/specifications/json-*.gemspec  %{rubygems_dir}/%{rubyapi}/specifications/json-*.gemspec
479    
480    %files irb
481    %{_bindir}/irb
482    %{ruby_libdir}/irb.rb
483    %{ruby_libdir}/irb
484    %{_mandir}/man1/irb.1*
485    
486    %files bigdecimal
487    %{ruby_libdir}/bigdecimal
488    %{ruby_libarchdir}/bigdecimal.so
489    %{_libdir}/gems/exts/bigdecimal-*
490    %{rubygems_dir}/%{rubyapi}/gems/bigdecimal-*
491    %{rubygems_dir}/%{rubyapi}/specifications/bigdecimal-*.gemspec
492    
493    %files io-console
494    %{ruby_libdir}/io
495    %{ruby_libarchdir}/io/console.so
496    %{_libdir}/gems/exts/io-console-*
497    %{rubygems_dir}/%{rubyapi}/gems/io-console-*
498    %{rubygems_dir}/%{rubyapi}/specifications/io-console-*.gemspec

Legend:
Removed from v.291589  
changed lines
  Added in v.291590

  ViewVC Help
Powered by ViewVC 1.1.30