auto-import changelog data from ruby-1.6.4-2.src.rpm
Thu Jul 19 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.6.4-2
- Remove Japanese description and summaries; they belong in specspo and
    break rpm
- Clean up specfile
- Mark language specific files (README.jp) as such
- bzip2 sources
- rename the libruby package to ruby-libs for consistency
- Exclude ia64 (doesn't build - the code doesn't seem to be 64-bit clean
    [has been excluded on alpha forever])
Tue Jul 17 2001 Akira TAGOH <tagoh@redhat.com> 1.6.4-1
- rebuild for Red Hat 7.2
Mon Jun 04 2001 akira yamada <akira@vinelinux.org>
- upgrade to nwe upstream version 1.6.4.
Mon Apr 02 2001 akira yamada <akira@vinelinux.org>
- applied patch:
- fixed method cache bug. etc. (Patch103, Patch104)
Tue Mar 27 2001 akira yamada <akira@vinelinux.org>
- applied patch:
- fixed marshal for bignum bug.
- fixed scope of constant variables bug.
Tue Mar 20 2001 akira yamada <akira@vinelinux.org>
- upgraded to new upstream version 1.6.3.
Fri Feb 09 2001 akira yamada <akira@vinelinux.org>
- fixed bad group for libruby.
- Applied patch: upgraded to cvs version (2001-02-08): fixed minor bugs.
Thu Jan 18 2001 akira yamada <akira@vinelinux.org>
- Applied patch: upgraded to cvs version (2001-01-15): fixed minor
    bugs(e.g. ruby makes extention librares too large...).
Wed Jan 10 2001 akira yamada <akira@vinelinux.org>
- Applied patch: upgraded to cvs version (2001-01-09): fixed minor bugs.
Sat Dec 30 2000 akira yamada <akira@vinelinux.org>
- Applied bug fix patch.
Mon Dec 25 2000 akira yamada <akira@vinelinux.org>
- Updated to new upstream version 1.6.2.
Fri Dec 22 2000 akira yamada <akira@vinelinux.org>
- Removed ruby_cvs.2000122019.patch, added ruby_cvs.2000122215.patch
    (upgraded ruby to latest cvs version, 1.6.2-preview4).
Wed Dec 20 2000 akira yamada <akira@vinelinux.org>
- Removed ruby_cvs.2000121413.patch, added ruby_cvs.2000122019.patch
    (upgraded ruby to latest cvs version).
- new package: libruby
Thu Dec 14 2000 akira yamada <akira@vinelinux.org>
- Removed ruby_cvs.2000101901.patch, added ruby_cvs.2000121413.patch
    (upgraded ruby to latest cvs version).
- Removed ruby-dev.11262.patch, ruby-dev.11265.patch, and
    ruby-dev.11268.patch (included into above patch).
Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.6.1-0vl9
- build on gcc-2.95.3
Thu Oct 19 2000 akira yamada <akira@vinelinux.org>
- Added ruby-dev.11268.patch.
Thu Oct 19 2000 akira yamada <akira@vinelinux.org>
- Removed ruby_cvs.2000101117.patch and added ruby_cvs.2000101901.patch
    (upgraded ruby to latest cvs version).
- Added ruby-dev.11262.patch.
- Added ruby-dev.11265.patch.
Wed Oct 11 2000 akira yamada <akira@vinelinux.org>
- Removed ruby_cvs.2000100313.patch and added ruby_cvs.2000101117.patch
    (upgraded ruby to latest cvs version).
Mon Oct 09 2000 akira yamada <akira@vinelinux.org>
- Removed ruby_cvs.2000100313.patch and added ruby_cvs.2000100313.patch
    (upgraded ruby to latest cvs version).
Tue Oct 03 2000 akira yamada <akira@vinelinux.org>
- Removed ruby_cvs.2000100218.patch and added ruby_cvs.2000100313.patch
    (upgraded ruby to latest cvs version).
Mon Oct 02 2000 akira yamada <akira@vinelinux.org>
- Removed ruby_cvs.2000092718.patch and added ruby_cvs.2000100218.patch
    (upgraded ruby to latest cvs version).
Wed Sep 27 2000 akira yamada <akira@vinelinux.org>
- Updated to upstream version 1.6.1.
- Removed ruby_cvs.2000082901.patch and added ruby_cvs.2000092718.patch
    (upgraded ruby to latest cvs version).
			
			
This commit is contained in:
		
							parent
							
								
									1c4905a20e
								
							
						
					
					
						commit
						b27f861db0
					
				
							
								
								
									
										10
									
								
								.cvsignore
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.cvsignore
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | ||||
| ruby-1.4.6.tar.gz | ||||
| ruby-man-1.4.6-jp.tar.gz | ||||
| ruby-man-1.4.6.tar.gz | ||||
| rubyfaq-990927.tar.gz | ||||
| rubyfaq-jp-990927.tar.gz | ||||
| ruby-1.6.4.tar.bz2 | ||||
| ruby-man-1.4.6-jp.tar.bz2 | ||||
| ruby-man-1.4.6.tar.bz2 | ||||
| rubyfaq-990927.tar.bz2 | ||||
| rubyfaq-jp-990927.tar.bz2 | ||||
|  | ||||
							
								
								
									
										488
									
								
								irb.1
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										488
									
								
								irb.1
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,488 @@ | ||||
| .\" DO NOT MODIFY THIS FILE! it was generated by rd2 | ||||
| .TH irb-beta 1 "May 2001" | ||||
| .SH What is irb? | ||||
| .PP | ||||
| irb stands for `interactive ruby'. irb is a tool to execute interactively | ||||
| ruby expressions read from stdin.  | ||||
| .SH Invoking | ||||
| .PP | ||||
| .nf | ||||
| \&    % ruby \-r irb \-e0 | ||||
| \&    % irb | ||||
| .fi | ||||
| Either of the aboves. In the former style, options can be specified | ||||
| as follows: | ||||
| .nf | ||||
| \&    % ruby \-r irb \-e0 \-\- \-v | ||||
| .fi | ||||
| .SH Usage | ||||
| .PP | ||||
| Use of irb is easy if you know ruby.  Executing irb, prompts are  | ||||
| displayed as follows. Then, enter expression of ruby. A input is | ||||
| executed when it is syntacticaly completed.  | ||||
| .nf | ||||
| \&    dim% irb | ||||
| \&    irb(main):001:0> 1+2 | ||||
| \&    3 | ||||
| \&    irb(main):002:0> class Foo | ||||
| \&    irb(main):003:1>  def foo | ||||
| \&    irb(main):004:2>    print 1 | ||||
| \&    irb(main):005:2>  end | ||||
| \&    irb(main):006:1> end | ||||
| \&    nil | ||||
| \&    irb(main):007:0>  | ||||
| .fi | ||||
| And, Readline extesion module can be used with irb. Using Readline | ||||
| is the standard default action if Readline is installed.  | ||||
| .SH Command line option | ||||
| .PP | ||||
| .nf | ||||
| \&    irb.rb [options] file_name opts | ||||
| \&    options: | ||||
| \&    \-f		    suppress read ~/.irbrc  | ||||
| \&    \-m		    bc mode (fraction or matrix are available) | ||||
| \&    \-d                set $DEBUG  to true (same as `ruby \-d') | ||||
| \&    \-r load\-module    same as `ruby \-r' | ||||
| \&    \-\-inspect	    uses `inspect' for output (the default except bc mode) | ||||
| \&    \-\-noinspect	    doesn't uses inspect for output | ||||
| \&    \-\-readline	    uses Readline extension module | ||||
| \&    \-\-noreadline	    doesn't use Readline extension module | ||||
| \&    \-\-prompt prompt\-mode | ||||
| \&    \-\-prompt\-mode prompt\-mode | ||||
| .fi | ||||
| .nf | ||||
| \&    switches prompt mode. Pre\-defined prompt modes are | ||||
| \&    `defalut', `simple', `xmp' and `inf\-ruby' | ||||
| .fi | ||||
| .nf | ||||
| \&    \-\-inf\-ruby\-mode   uses prompt appreciate for inf\-ruby\-mode on emacs.  | ||||
| .fi | ||||
| .nf | ||||
| \&    Suppresses \-\-readline.  | ||||
| .fi | ||||
| .nf | ||||
| \&    \-\-simple\-prompt   simple prompt mode | ||||
| \&    \-\-noprompt	    no prompt | ||||
| \&    \-\-tracer	    display trace for each execution of commands. | ||||
| \&    \-\-back\-trace\-limit n | ||||
| .fi | ||||
| .nf | ||||
| \&    displayes backtrace top n and tail n. The default | ||||
| \&    value is 16.  | ||||
| .fi | ||||
| .nf | ||||
| \&    \-\-irb_debug n	    sets internal debug level to n (It shouldn't be used) | ||||
| \&    \-v, \-\-version	    prints the version of irb | ||||
| .fi | ||||
| .SH Configurations | ||||
| .PP | ||||
| irb reads `~/.irbrc' when it is invoked. If `~/.irbrb' doesn't exist | ||||
| irb try to read in the order `.irbrc', `irb.rc', `_irbrc' then `$irbrc'.  | ||||
| The following is altanative to the command line option. To use them | ||||
| type as follows in an irb session.  | ||||
| .nf | ||||
| \&    IRB.conf[:IRB_NAME]="irb" | ||||
| \&    IRB.conf[:MATH_MODE]=false | ||||
| \&    IRB.conf[:USE_TRACER]=false | ||||
| \&    IRB.conf[:USE_LOADER]=false | ||||
| \&    IRB.conf[:IGNORE_SIGINT]=true | ||||
| \&    IRB.conf[:IGNORE_EOF]=false | ||||
| \&    IRB.conf[:INSPECT_MODE]=nil | ||||
| \&    IRB.conf[:IRB_RC] = nil | ||||
| \&    IRB.conf[:BACK_TRACE_LIMIT]=16 | ||||
| \&    IRB.conf[:USE_LOADER] = false | ||||
| \&    IRB.conf[:USE_READLINE] = nil | ||||
| \&    IRB.conf[:USE_TRACER] = false | ||||
| \&    IRB.conf[:IGNORE_SIGINT] = true | ||||
| \&    IRB.conf[:IGNORE_EOF] = false | ||||
| \&    IRB.conf[:PROMPT_MODE] = :DEFALUT | ||||
| \&    IRB.conf[:PROMPT] = {...} | ||||
| \&    IRB.conf[:DEBUG_LEVEL]=0 | ||||
| \&    IRB.conf[:VERBOSE]=true | ||||
| .fi | ||||
| .SH Customizing prompt | ||||
| .PP | ||||
| To costomize the prompt you set a variable | ||||
| .nf | ||||
| \&    IRB.conf[:PROMPT] | ||||
| .fi | ||||
| For example, describe as follows in `.irbrc'.  | ||||
| .nf | ||||
| \&    IRB.conf[:PROMPT][:MY_PROMPT] = { # name of prompt mode | ||||
| \&      :PROMPT_I => nil,		  # normal prompt | ||||
| \&      :PROMPT_S => nil,		  # prompt for continuated strings | ||||
| \&      :PROMPT_C => nil,		  # prompt for continuated statement | ||||
| \&      :RETURN => "    ==>%s\\n"	  # format to return value | ||||
| \&    } | ||||
| .fi | ||||
| Then, invoke irb with the above prompt mode by | ||||
| .nf | ||||
| \&    % irb \-\-prompt my\-prompt | ||||
| .fi | ||||
| Or add the following in `.irbrc'.  | ||||
| .nf | ||||
| \&    IRB.conf[:PROMPT_MODE] = :MY_PROMPT | ||||
| .fi | ||||
| Constants PROMPT_I, PROMPT_S and PROMPT_C specifies the format.  | ||||
| In the prompt specification, some special strings are available.  | ||||
| .nf | ||||
| \&    %N	command name which is running | ||||
| \&    %m	to_s of main object (self) | ||||
| \&    %M	inspect of main object (self) | ||||
| \&    %l	type of string(", ', /, ]), `]' is inner %w[...] | ||||
| \&    %NNi	indent level. NN is degits and means as same as printf("%NNd").  | ||||
| \&          It can be ommited | ||||
| \&    %NNn	line number.  | ||||
| \&    %%    % | ||||
| .fi | ||||
| For instance, the default prompt mode is defined as follows: | ||||
| IRB.conf[:PROMPT_MODE][:DEFAULT] = { | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| PROMPT_I => "%N(%m):%03n:%i> ", | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| PROMPT_S => "%N(%m):%03n:%i%l ", | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| PROMPT_C => "%N(%m):%03n:%i* ", | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| RETURN => "%s\\n" | ||||
| }  | ||||
| RETURN is used to printf.  | ||||
| .SH Configurating subirb | ||||
| .PP | ||||
| The command line option or IRB.conf specify the default behavior of | ||||
| (sub)irb. On the other hand, each conf of in the next sction `6. Command'  | ||||
| is used to individually configurate (sub)irb.  | ||||
| If proc is set to IRB.conf[:IRB_RC], its subirb will be invoked after | ||||
| execution of that proc under giving the context of irb as its | ||||
| aregument. By this mechanism each subirb can be configurated.  | ||||
| .SH Command | ||||
| .PP | ||||
| For irb commands, both simple name and `irb_'\-prefixed name are prepared.  | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| exit, quit, irb_exit | ||||
| Quits (sub)irb.  | ||||
| if you've done cb (see below), exit from the binding mode. | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf, irb_context | ||||
| Displays current configuration. Modifing the configuration is | ||||
| achieved by sending message to `conf'.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.back_trace_limit | ||||
| Sets display lines of backtrace as top n and tail n.  | ||||
| The default value is 16. | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.debug_level = N | ||||
| Sets debug level of irb.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.ignore_eof = true/false | ||||
| Whether ^D (control\-d) will be ignored or not.  | ||||
| If false is set, ^D means quit.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.ignore_sigint= true/false | ||||
| Whether ^C (control\-c) will be ignored or not.  | ||||
| If false is set, ^D means quit.  If true,  | ||||
| 
 | ||||
| .nf | ||||
| \&    during input:   cancel inputing then return to top level.  | ||||
| \&    during execute: abondon current execution.  | ||||
| .fi | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.inf_ruby_mode = true/false | ||||
| Whether inf\-ruby\-mode or not. The default value is false. | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.inspect_mode = true/false/nil | ||||
| Specifies inspect mode.  | ||||
| true:  display inspect | ||||
| false: display to_s | ||||
| nil:   inspect mode in non math mode,  | ||||
| 
 | ||||
| .nf | ||||
| \&    non inspect mode in math mode.  | ||||
| .fi | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.irb_level | ||||
| The level of cb.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.math_mode | ||||
| Whether bc mode or not.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.use_loader = true/false | ||||
| Whether irb's own file reader method is used when load/require or not.  | ||||
| This mode is globaly affected (irb wide).  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.prompt_c | ||||
| prompt for a continuating statement (e.g, immediately after of `if') | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.prompt_i | ||||
| standard prompt | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.prompt_s | ||||
| prompt for a continuating string | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.rc | ||||
| Whether ~/.irbrc is read or not.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.use_prompt = true/false | ||||
| Prompting or not.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.use_readline = true/false/nil | ||||
| Whether readline is used or not.  | ||||
| true: uses  | ||||
| false: doen't use | ||||
| nil: intends to use readline except for inf\-reuby\-mode (default) | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| conf.verbose=T/F | ||||
| Whether verbose messages are display or not.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| cb, irb_change_binding [obj] | ||||
| Enter new binding which has a distinct scope of local variables.  | ||||
| If obj is given, obj will be self.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| irb [obj] | ||||
| Invoke subirb. If obj is given, obj will be self.  | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| jobs, irb_jobs | ||||
| List of subirb | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| fg n, irb_fg n | ||||
| Switch into specified subirb. The following is candidates of n: | ||||
| 
 | ||||
| .nf | ||||
| \&    irb number | ||||
| \&    thhread | ||||
| \&    irb object | ||||
| \&    self(obj which is specified of irb obj) | ||||
| .fi | ||||
| 
 | ||||
| 
 | ||||
| .TP | ||||
| .fi | ||||
| .B | ||||
| kill n, irb_kill n | ||||
| Kill subirb. The means of n is as same as the case of irb_fg.  | ||||
| .SH System variable | ||||
| .PP | ||||
| .nf | ||||
| \&    _  The latest value of evaluation (it is local) | ||||
| .fi | ||||
| .SH Session Example | ||||
| .PP | ||||
| .nf | ||||
| \&    dim% ruby irb.rb | ||||
| \&    irb(main):001:0> irb                        # invoke subirb | ||||
| \&    irb#1(main):001:0> jobs                     # list of subirbs | ||||
| \&    #0\->irb on main (#<Thread:0x400fb7e4> : stop) | ||||
| \&    #1\->irb#1 on main (#<Thread:0x40125d64> : running) | ||||
| \&    nil | ||||
| \&    irb#1(main):002:0> fg 0                     # switch job | ||||
| \&    nil | ||||
| \&    irb(main):002:0> class Foo;end | ||||
| \&    nil | ||||
| \&    irb(main):003:0> irb Foo                    # invoke subirb which has the  | ||||
| .fi | ||||
| .nf | ||||
| \&    #              context of Foo | ||||
| .fi | ||||
| .nf | ||||
| \&    irb#2(Foo):001:0> def foo                   # define Foo#foo | ||||
| \&    irb#2(Foo):002:1>   print 1 | ||||
| \&    irb#2(Foo):003:1> end | ||||
| \&    nil | ||||
| \&    irb#2(Foo):004:0> fg 0                      # switch job | ||||
| \&    nil | ||||
| \&    irb(main):004:0> jobs                       # list of job | ||||
| \&    #0\->irb on main (#<Thread:0x400fb7e4> : running) | ||||
| \&    #1\->irb#1 on main (#<Thread:0x40125d64> : stop) | ||||
| \&    #2\->irb#2 on Foo (#<Thread:0x4011d54c> : stop) | ||||
| \&    nil | ||||
| \&    irb(main):005:0> Foo.instance_methods       # Foo#foo is defined asurely | ||||
| \&    ["foo"] | ||||
| \&    irb(main):006:0> fg 2                       # switch job | ||||
| \&    nil | ||||
| \&    irb#2(Foo):005:0> def bar                   # define Foo#bar | ||||
| \&    irb#2(Foo):006:1>  print "bar" | ||||
| \&    irb#2(Foo):007:1> end | ||||
| \&    nil | ||||
| \&    irb#2(Foo):010:0>  Foo.instance_methods | ||||
| \&    ["bar", "foo"] | ||||
| \&    irb#2(Foo):011:0> fg 0                       | ||||
| \&    nil | ||||
| \&    irb(main):007:0> f = Foo.new | ||||
| \&    #<Foo:0x4010af3c> | ||||
| \&    irb(main):008:0> irb f                      # invoke subirb which has the | ||||
| .fi | ||||
| .nf | ||||
| \&    #  context of f (instance of Foo) | ||||
| .fi | ||||
| .nf | ||||
| \&    irb#3(#<Foo:0x4010af3c>):001:0> jobs | ||||
| \&    #0\->irb on main (#<Thread:0x400fb7e4> : stop) | ||||
| \&    #1\->irb#1 on main (#<Thread:0x40125d64> : stop) | ||||
| \&    #2\->irb#2 on Foo (#<Thread:0x4011d54c> : stop) | ||||
| \&    #3\->irb#3 on #<Foo:0x4010af3c> (#<Thread:0x4010a1e0> : running) | ||||
| \&    nil | ||||
| \&    irb#3(#<Foo:0x4010af3c>):002:0> foo         # evaluate f.foo | ||||
| \&    1nil | ||||
| \&    irb#3(#<Foo:0x4010af3c>):003:0> bar         # evaluate f.bar | ||||
| \&    barnil | ||||
| \&    irb#3(#<Foo:0x4010af3c>):004:0> kill 1, 2, 3# kill job | ||||
| \&    nil | ||||
| \&    irb(main):009:0> jobs | ||||
| \&    #0\->irb on main (#<Thread:0x400fb7e4> : running) | ||||
| \&    nil | ||||
| \&    irb(main):010:0> exit                       # exit | ||||
| \&    dim%  | ||||
| .fi | ||||
| .SH Restrictions | ||||
| .PP | ||||
| Because irb evaluates the inputs immediately after the imput is | ||||
| syntactically completed, irb gives slight different result than | ||||
| directly use ruby. Known difference is pointed out here.  | ||||
| .SH Declaration of the local variable | ||||
| .PP | ||||
| The following causes an error in ruby: | ||||
| .nf | ||||
| \&    eval "foo = 0" | ||||
| \&    foo | ||||
| \&    \-\- | ||||
| \&    \-:2: undefined local variable or method `foo' for #<Object:0x40283118> (NameError) | ||||
| \&    \-\-\- | ||||
| \&    NameError | ||||
| .fi | ||||
| Though, the above will successfully done by irb.  | ||||
| .nf | ||||
| \&    >> eval "foo = 0" | ||||
| .fi | ||||
| .nf | ||||
| \&    => 0 | ||||
| \&    >> foo | ||||
| \&    => 0 | ||||
| .fi | ||||
| Ruby evaluates a code after reading entire of code and determination | ||||
| of the scope of local variables. On the other hand, irb do | ||||
| immediately. More precisely, irb evaluate at first | ||||
| .nf | ||||
| \&    evel "foo = 0"  | ||||
| .fi | ||||
| then foo is defined on this timing. It is because of this | ||||
| incompatibility. | ||||
| If you'd like to detect those differences, begin...end can be used: | ||||
| .nf | ||||
| \&    >> begin | ||||
| \&    ?>   eval "foo = 0" | ||||
| \&    >>   foo | ||||
| \&    >> end | ||||
| \&    NameError: undefined local variable or method `foo' for #<Object:0x4013d0f0> | ||||
| \&    (irb):3 | ||||
| \&    (irb_local_binding):1:in `eval' | ||||
| .fi | ||||
| .SH Here\-document | ||||
| .PP | ||||
| Implementation of Here\-document is incomplete.  | ||||
| .SH Symbol | ||||
| .PP | ||||
| Irb can not always recognize a symbol as to be Symbol. Concretely, an | ||||
| expression have completed, however Irb regard it as continuation line. | ||||
| 
 | ||||
							
								
								
									
										276
									
								
								ruby.spec
									
									
									
									
									
								
							
							
						
						
									
										276
									
								
								ruby.spec
									
									
									
									
									
								
							| @ -1,124 +1,86 @@ | ||||
| %define	rubyver	1.4.6 | ||||
| %define manver	%{rubyver} | ||||
| %define rpmrel	2 | ||||
| Summary: An interpeter of object-oriented scripting language | ||||
| %define manver		1.4.6 | ||||
| Summary: An interpreter of object-oriented scripting language | ||||
| Name: ruby | ||||
| Version: %{rubyver} | ||||
| Release: %{rpmrel} | ||||
| #Distribution:  | ||||
| Copyright: distributable | ||||
| Version: 1.6.4 | ||||
| Release: 2 | ||||
| License: Dual-licensed GPL/Artistic-like | ||||
| Group: Development/Languages | ||||
| Source0: ftp://ftp.netlab.co.jp/pub/lang/%{name}/%{name}-%{version}.tar.gz | ||||
| Source1: ftp://ftp.netlab.co.jp/pub/lang/%{name}/doc/%{name}-man-%{manver}.tar.gz | ||||
| Source2: ftp://ftp.netlab.co.jp/pub/lang/%{name}/doc/%{name}-man-%{manver}-jp.tar.gz | ||||
| Source3: ftp://ftp.netlab.co.jp/pub/lang/%{name}/doc/rubyfaq-990927.tar.gz | ||||
| Source4: ftp://ftp.netlab.co.jp/pub/lang/%{name}/doc/rubyfaq-jp-990927.tar.gz | ||||
| Patch1: ruby-jcode.rb-utf8.patch | ||||
| Patch2: ruby_cvs.2000082917.patch | ||||
| Source0: ftp://ftp.ruby-lang.org/pub/lang/%{name}/%{name}-%{version}.tar.bz2 | ||||
| Source1: ftp://ftp.netlab.co.jp/pub/lang/%{name}/doc/%{name}-man-%{manver}.tar.bz2 | ||||
| Source2: ftp://ftp.netlab.co.jp/pub/lang/%{name}/doc/%{name}-man-%{manver}-jp.tar.bz2 | ||||
| Source3: ftp://ftp.netlab.co.jp/pub/lang/%{name}/doc/rubyfaq-990927.tar.bz2 | ||||
| Source4: ftp://ftp.netlab.co.jp/pub/lang/%{name}/doc/rubyfaq-jp-990927.tar.bz2 | ||||
| Source5: irb.1 | ||||
| URL: http://www.ruby-lang.org/ | ||||
| Prefix: /usr | ||||
| BuildRoot: %{_tmppath}/%{name}-%{version}-root | ||||
| BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel tcl tk | ||||
| Vendor: Red Hat, Inc. | ||||
| Packager: akira yamada <akira@redhat.com> | ||||
| Summary(ja): オブジェクト指向言語Rubyインタプリタ | ||||
| BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel tcl tk autoconf gcc | ||||
| Requires: %{name}-libs = %{version}-%{release} | ||||
| ExcludeArch: alpha ia64 | ||||
| 
 | ||||
| %description | ||||
| Ruby is the interpreted scripting language for quick and | ||||
| easy object-oriented programming.  It has many features to | ||||
| process text files and to do system management tasks (as in | ||||
| Perl).  It is simple, straight-forward, and extensible. | ||||
| Ruby is the interpreted scripting language for quick and easy | ||||
| object-oriented programming.  It has many features to process text | ||||
| files and to do system management tasks (as in Perl).  It is simple, | ||||
| straight-forward, and extensible. | ||||
| 
 | ||||
| %description -l ja | ||||
| Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です. | ||||
| Rubyは最初から純粋なオブジェクト指向言語として設計されていま | ||||
| すから,オブジェクト指向プログラミングを手軽に行う事が出来ま | ||||
| す.もちろん通常の手続き型のプログラミングも可能です. | ||||
| %package libs | ||||
| Summary: Libraries necessary to run Ruby. | ||||
| Group: Development/Libraries | ||||
| URL: http://www.ruby-lang.org/ | ||||
| Provides: libruby | ||||
| Obsoletes: libruby | ||||
| 
 | ||||
| Rubyはテキスト処理関係の能力などに優れ,Perlと同じくらい強力 | ||||
| です.さらにシンプルな文法と,例外処理やイテレータなどの機構 | ||||
| によって,より分かりやすいプログラミングが出来ます. | ||||
| %description libs | ||||
| This package includes the libruby, necessary to run Ruby. | ||||
| 
 | ||||
| %package -n ruby-devel | ||||
| %package devel | ||||
| Summary: A Ruby development environment. | ||||
| Group: Development/Languages | ||||
| Requires: ruby = %{PACKAGE_VERSION} | ||||
| Requires: %{name} = %{version}-%{release} | ||||
| URL: http://www.ruby-lang.org/ | ||||
| 
 | ||||
| %description -n ruby-devel | ||||
| %description devel | ||||
| Header files and libraries for building a extension library for the | ||||
| Ruby or an application embedded Ruby. | ||||
| 
 | ||||
| %description -n ruby-devel -l ja | ||||
| Rubyのための拡張ライブラリやRubyを組み込んだアプリケーションを作るため | ||||
| に必要となるへッダファイルやライブラリです. | ||||
| 
 | ||||
| %package -n ruby-tcltk | ||||
| %package tcltk | ||||
| Summary: Tcl/Tk interface for scripting language Ruby. | ||||
| Group: Development/Languages | ||||
| Requires: ruby = %{PACKAGE_VERSION} | ||||
| Requires: %{name}-libs = %{version}-%{release} | ||||
| URL: http://www.ruby-lang.org/ | ||||
| 
 | ||||
| %description -n ruby-tcltk | ||||
| %description tcltk | ||||
| Tcl/Tk interface for the object-oriented scripting language Ruby. | ||||
| 
 | ||||
| %description -n ruby-tcltk -l ja | ||||
| RubyにTcl/Tkライブラリへのインタフェースを提供する拡張ライブラリです. | ||||
| 
 | ||||
| %package -n irb | ||||
| Summary: The Intaractive Ruby. | ||||
| Group: Development/Languages | ||||
| Requires: ruby = %{PACKAGE_VERSION} | ||||
| Requires: %{name}-libs = %{version}-%{release} | ||||
| URL: http://www.ruby-lang.org/ | ||||
| 
 | ||||
| %description -n irb | ||||
| The irb is acronym for Interactive RuBy.  It evaluates ruby expression | ||||
| from the terminal. | ||||
| 
 | ||||
| %description -n irb -l ja | ||||
| irbとはInteractive RuByの略で,対話的にRubyの式を入力し,評価させるこ | ||||
| とが可能です. | ||||
| 
 | ||||
| %package -n ruby-docs | ||||
| %package docs | ||||
| Summary: Manuals and FAQs for scripting language Ruby. | ||||
| Group: Documentation | ||||
| URL: http://www.ruby-lang.org/ | ||||
| 
 | ||||
| %description -n ruby-docs | ||||
| %description docs | ||||
| Manuals and FAQs for the object-oriented scripting language Ruby. | ||||
| 
 | ||||
| %description -n ruby-docs -l ja | ||||
| オブジェクト指向スクリプト言語Rubyについてのマ二ュアルとFAQです. | ||||
| 
 | ||||
| %prep | ||||
| 
 | ||||
| %setup -q -c -a 1 -a 2 -a 3 -a 4 | ||||
| 
 | ||||
| cd %{name}-%{version} | ||||
| #%patch0 -p1 | ||||
| %patch1 -p1 | ||||
| %patch2 -p1 | ||||
| 
 | ||||
| #%patch10 -p1 | ||||
| 
 | ||||
| cd ../../.. | ||||
| 
 | ||||
| 
 | ||||
| %build | ||||
| 
 | ||||
| cd %{name}-%{version} | ||||
| #CFLAGS="${RPM_OPT_FLAGS}" ./configure \ | ||||
| #  --prefix=%{prefix} \ | ||||
| #  --mandir=%{prefix}/man \ | ||||
| #  --with-default-kcode=none \ | ||||
| #  --with-dbm-include=/usr/include/db1 \ | ||||
| #  --enable-shared \ | ||||
| #  --enable-ipv6 \ | ||||
| #  --with-lookup-order-hack=INET | ||||
| #  ${RPM_ARCH}-linux | ||||
| %ifarch alpha | ||||
| autoconf | ||||
| CFLAGS="-O0" CXXFLAGS="-O0" ./configure \ | ||||
| %else | ||||
| %configure \ | ||||
|   --prefix=%{prefix} \ | ||||
|   --mandir=%{prefix}/share/man \ | ||||
| %endif | ||||
|   --with-default-kcode=none \ | ||||
|   --with-dbm-include=/usr/include/db1 \ | ||||
|   --enable-shared \ | ||||
| @ -128,11 +90,7 @@ cd %{name}-%{version} | ||||
| make | ||||
| make test | ||||
| 
 | ||||
| cd .. | ||||
| 
 | ||||
| 
 | ||||
| %install | ||||
| 
 | ||||
| rm -rf ${RPM_BUILD_ROOT} | ||||
| 
 | ||||
| # installing documents and exapmles... | ||||
| @ -145,10 +103,10 @@ cd ruby | ||||
| (cd ../../%{name}-%{version} &&  | ||||
|  tar cf - misc sample lib/README*) | tar xvf - | ||||
| (cd ../../%{name}-%{version} &&  | ||||
|  tar cf - `find ext  | ||||
|   -mindepth 1  | ||||
|   \( -path '*/sample/*' -o -path '*/demo/*' \) -o  | ||||
|   \( -name '*.rb' -not -path '*/lib/*' -not -name extconf.rb \) -o  | ||||
|  tar cf - `find ext \ | ||||
|   -mindepth 1 \ | ||||
|   \( -path '*/sample/*' -o -path '*/demo/*' \) -o \ | ||||
|   \( -name '*.rb' -not -path '*/lib/*' -not -name extconf.rb \) -o \ | ||||
|   \( -name 'README*' -o -name '*.txt*' -o -name 'MANUAL*' \)`) | tar xvf - | ||||
| 
 | ||||
| # fixing `#!' paths | ||||
| @ -203,15 +161,17 @@ make DESTDIR=${RPM_BUILD_ROOT} install | ||||
| cd .. | ||||
| 
 | ||||
| # XXX: installing irb | ||||
| mv tmp-ruby-docs/ruby/sample/irb.rb $RPM_BUILD_ROOT%{prefix}/bin/irb | ||||
| chmod 555 $RPM_BUILD_ROOT%{prefix}/bin/irb | ||||
| #mv tmp-ruby-docs/ruby/sample/irb.rb $RPM_BUILD_ROOT%{_bindir}/irb | ||||
| chmod 555 $RPM_BUILD_ROOT%{_bindir}/irb | ||||
| install ${RPM_SOURCE_DIR}/irb.1 $RPM_BUILD_ROOT%{_mandir}/man1/ | ||||
| 
 | ||||
| # listing all files in ruby-all.files | ||||
| (find $RPM_BUILD_ROOT%{prefix}/bin \ | ||||
|       $RPM_BUILD_ROOT%{prefix}/lib \ | ||||
|       $RPM_BUILD_ROOT%{prefix}/man \ | ||||
| (find $RPM_BUILD_ROOT%{_bindir} \ | ||||
|       $RPM_BUILD_ROOT%{_libdir} \ | ||||
|       $RPM_BUILD_ROOT%{_mandir} \ | ||||
|       -type f -o -type l) |  | ||||
|  sort | sed -e "s,^$RPM_BUILD_ROOT,," > ruby-all.files | ||||
|  sort | sed -e "s,^$RPM_BUILD_ROOT,," \ | ||||
|             -e "s,\(/man/man./.*\)$,\1*," > ruby-all.files | ||||
| egrep '(\.[ah]|libruby\.so)$' ruby-all.files > ruby-devel.files | ||||
| 
 | ||||
| # for ruby-tcltk.rpm | ||||
| @ -226,50 +186,158 @@ do | ||||
| done | ||||
| 
 | ||||
| # for irb.rpm | ||||
| egrep 'irb' ruby-all.files > irb.files | ||||
| fgrep 'irb' ruby-all.files > irb.files | ||||
| 
 | ||||
| # for ruby-libs | ||||
| cp /dev/null ruby-libs.files | ||||
| (fgrep    '%{_libdir}' ruby-all.files;  | ||||
|  fgrep -h '%{_libdir}' ruby-devel.files ruby-tcltk.files irb.files) |  | ||||
|  sort | uniq -u > ruby-libs.files | ||||
| 
 | ||||
| # for ruby.rpm | ||||
| sort ruby-all.files \ | ||||
|  ruby-devel.files ruby-tcltk.files irb.files |  | ||||
|  ruby-libs.files ruby-devel.files ruby-tcltk.files irb.files |  | ||||
|  uniq -u > ruby.files | ||||
| 
 | ||||
| strip ${RPM_BUILD_ROOT}%{prefix}/bin/%{name} | ||||
| strip ${RPM_BUILD_ROOT}%{_bindir}/%{name} | ||||
| 
 | ||||
| %clean | ||||
| rm -rf ${RPM_BUILD_ROOT} | ||||
| rm -f *.files | ||||
| rm -rf tmp-ruby-docs | ||||
| 
 | ||||
| %post -p /sbin/ldconfig -n ruby | ||||
| %post libs -p /sbin/ldconfig | ||||
| 
 | ||||
| %postun -p /sbin/ldconfig -n ruby | ||||
| %postun libs -p /sbin/ldconfig | ||||
| 
 | ||||
| %files -f ruby.files -n ruby | ||||
| %files -f ruby.files | ||||
| %defattr(-, root, root) | ||||
| %doc %{name}-%{version}/README | ||||
| %doc %{name}-%{version}/README.jp | ||||
| %lang(ja) %doc %{name}-%{version}/README.jp | ||||
| %doc %{name}-%{version}/COPYING* | ||||
| %doc %{name}-%{version}/ChangeLog | ||||
| %doc %{name}-%{version}/ToDo  | ||||
| %doc %{name}-%{version}/doc/NEWS  | ||||
| %doc tmp-ruby-docs/ruby/* | ||||
| 
 | ||||
| %files -f ruby-devel.files -n ruby-devel | ||||
| %files devel -f ruby-devel.files | ||||
| %defattr(-, root, root) | ||||
| %doc %{name}-%{version}/README.EXT | ||||
| %doc %{name}-%{version}/README.EXT.jp | ||||
| %lang(ja) %doc %{name}-%{version}/README.EXT.jp | ||||
| 
 | ||||
| %files -f ruby-tcltk.files -n ruby-tcltk | ||||
| %files libs -f ruby-libs.files | ||||
| %defattr(-, root, root) | ||||
| %doc %{name}-%{version}/README | ||||
| %lang(ja) %doc %{name}-%{version}/README.jp | ||||
| %doc %{name}-%{version}/doc/NEWS  | ||||
| 
 | ||||
| %files tcltk -f ruby-tcltk.files | ||||
| %defattr(-, root, root) | ||||
| %doc tmp-ruby-docs/ruby-tcltk/ext/* | ||||
| 
 | ||||
| %files -f irb.files -n irb | ||||
| %files -n irb -f irb.files | ||||
| %defattr(-, root, root) | ||||
| 
 | ||||
| %files -n ruby-docs | ||||
| %files docs | ||||
| %defattr(-, root, root) | ||||
| %doc tmp-ruby-docs/ruby-docs/* | ||||
| 
 | ||||
| %changelog | ||||
| * Thu Jul 19 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.6.4-2 | ||||
| - Remove Japanese description and summaries; they belong in specspo and | ||||
|   break rpm | ||||
| - Clean up specfile | ||||
| - Mark language specific files (README.jp) as such | ||||
| - bzip2 sources | ||||
| - rename the libruby package to ruby-libs for consistency | ||||
| - Exclude ia64 (doesn't build - the code doesn't seem to be 64-bit clean | ||||
|   [has been excluded on alpha forever]) | ||||
| 
 | ||||
| * Tue Jul 17 2001 Akira TAGOH <tagoh@redhat.com> 1.6.4-1 | ||||
| - rebuild for Red Hat 7.2 | ||||
| 
 | ||||
| * Mon Jun 04 2001 akira yamada <akira@vinelinux.org> | ||||
| - upgrade to nwe upstream version 1.6.4. | ||||
| 
 | ||||
| * Mon Apr 02 2001 akira yamada <akira@vinelinux.org> | ||||
| - applied patch: | ||||
|   - fixed method cache bug. etc. (Patch103, Patch104) | ||||
| 
 | ||||
| * Tue Mar 27 2001 akira yamada <akira@vinelinux.org> | ||||
| - applied patch: | ||||
|   - fixed marshal for bignum bug. | ||||
|   - fixed scope of constant variables bug. | ||||
| 
 | ||||
| * Tue Mar 20 2001 akira yamada <akira@vinelinux.org> | ||||
| - upgraded to new upstream version 1.6.3. | ||||
| 
 | ||||
| * Fri Feb 09 2001 akira yamada <akira@vinelinux.org> | ||||
| - fixed bad group for libruby. | ||||
| - Applied patch: upgraded to cvs version (2001-02-08): | ||||
|   fixed minor bugs. | ||||
| 
 | ||||
| * Thu Jan 18 2001 akira yamada <akira@vinelinux.org> | ||||
| - Applied patch: upgraded to cvs version (2001-01-15): | ||||
|   fixed minor bugs(e.g. ruby makes extention librares too large...). | ||||
| 
 | ||||
| * Wed Jan 10 2001 akira yamada <akira@vinelinux.org> | ||||
| - Applied patch: upgraded to cvs version (2001-01-09): | ||||
|   fixed minor bugs. | ||||
| 
 | ||||
| * Sat Dec 30 2000 akira yamada <akira@vinelinux.org> | ||||
| - Applied bug fix patch. | ||||
| 
 | ||||
| * Mon Dec 25 2000 akira yamada <akira@vinelinux.org> | ||||
| - Updated to new upstream version 1.6.2. | ||||
| 
 | ||||
| * Fri Dec 22 2000 akira yamada <akira@vinelinux.org> | ||||
| - Removed ruby_cvs.2000122019.patch, added ruby_cvs.2000122215.patch | ||||
|   (upgraded ruby to latest cvs version, 1.6.2-preview4). | ||||
| 
 | ||||
| * Wed Dec 20 2000 akira yamada <akira@vinelinux.org> | ||||
| - Removed ruby_cvs.2000121413.patch, added ruby_cvs.2000122019.patch | ||||
|   (upgraded ruby to latest cvs version). | ||||
| - new package: libruby | ||||
| 
 | ||||
| * Thu Dec 14 2000 akira yamada <akira@vinelinux.org> | ||||
| - Removed ruby_cvs.2000101901.patch, added ruby_cvs.2000121413.patch | ||||
|   (upgraded ruby to latest cvs version). | ||||
| - Removed ruby-dev.11262.patch, ruby-dev.11265.patch,  | ||||
|   and ruby-dev.11268.patch (included into above patch). | ||||
| 
 | ||||
| * Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.6.1-0vl9 | ||||
| - build on gcc-2.95.3 | ||||
| 
 | ||||
| * Thu Oct 19 2000 akira yamada <akira@vinelinux.org> | ||||
| - Added ruby-dev.11268.patch. | ||||
| 
 | ||||
| * Thu Oct 19 2000 akira yamada <akira@vinelinux.org> | ||||
| - Removed ruby_cvs.2000101117.patch and added ruby_cvs.2000101901.patch | ||||
|   (upgraded ruby to latest cvs version). | ||||
| - Added ruby-dev.11262.patch. | ||||
| - Added ruby-dev.11265.patch. | ||||
|    | ||||
| * Wed Oct 11 2000 akira yamada <akira@vinelinux.org> | ||||
| - Removed ruby_cvs.2000100313.patch and added ruby_cvs.2000101117.patch | ||||
|   (upgraded ruby to latest cvs version). | ||||
| 
 | ||||
| * Mon Oct 09 2000 akira yamada <akira@vinelinux.org> | ||||
| - Removed ruby_cvs.2000100313.patch and added ruby_cvs.2000100313.patch | ||||
|   (upgraded ruby to latest cvs version). | ||||
| 
 | ||||
| * Tue Oct 03 2000 akira yamada <akira@vinelinux.org> | ||||
| - Removed ruby_cvs.2000100218.patch and added ruby_cvs.2000100313.patch | ||||
|   (upgraded ruby to latest cvs version). | ||||
| 
 | ||||
| * Mon Oct 02 2000 akira yamada <akira@vinelinux.org> | ||||
| - Removed ruby_cvs.2000092718.patch and added ruby_cvs.2000100218.patch | ||||
|   (upgraded ruby to latest cvs version). | ||||
| 
 | ||||
| * Thu Sep 27 2000 akira yamada <akira@vinelinux.org> | ||||
| - Updated to upstream version 1.6.1. | ||||
| - Removed ruby_cvs.2000082901.patch and added ruby_cvs.2000092718.patch | ||||
|   (upgraded ruby to latest cvs version). | ||||
| 
 | ||||
| * Tue Aug 29 2000 akira yamada <akira@redhat.com> | ||||
| - Updated to version 1.4.6. | ||||
| - removed ruby-dev.10123.patch(included into ruby-1.4.6). | ||||
|  | ||||
							
								
								
									
										10
									
								
								sources
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								sources
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | ||||
| 3c910657b164749d9b98d7448df17f9a  ruby-1.4.6.tar.gz | ||||
| d529768c828c930c49b3766d13dc1f2c  ruby-man-1.4.6-jp.tar.gz | ||||
| 8eed63fec14a719df26247fb8384db5e  ruby-man-1.4.6.tar.gz | ||||
| 634c25b14e19925d10af3720d72e8741  rubyfaq-990927.tar.gz | ||||
| 4fcec898f51d8371cc42d0a013940469  rubyfaq-jp-990927.tar.gz | ||||
| 5d8d806a11dd4318d8213d43308860c2  ruby-1.6.4.tar.bz2 | ||||
| 4177aba36004e43afb22c983989c9006  ruby-man-1.4.6-jp.tar.bz2 | ||||
| 8336b859400795ec51d05878c1a658b7  ruby-man-1.4.6.tar.bz2 | ||||
| 7f3e181c0be9a1579e43a5a8b26372d6  rubyfaq-990927.tar.bz2 | ||||
| 8aa2e2da327dc43ff6e46e634eb657b6  rubyfaq-jp-990927.tar.bz2 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user