]> git.pld-linux.org Git - packages/ruby.git/blob - ruby.spec
2c740451450a1f165ac55dfd70547db18b999587
[packages/ruby.git] / ruby.spec
1 %define ruby_ridir %{_datadir}/ri/1.8/system
2 Summary:        Ruby - interpreted scripting language
3 Summary(ja):    ¥ª¥Ö¥¸¥§¥¯¥È»Ø¸þ¸À¸ìRuby¥¤¥ó¥¿¥×¥ê¥¿
4 Summary(pl):    Ruby - interpretowany jêzyk skryptowy
5 Summary(pt_BR): Linguagem de script orientada a objeto
6 Summary(zh_CN): ruby - Ò»ÖÖ¿ìËÙ¸ßЧµÄÃæÏò¶ÔÏó½Å±¾±à³ÌÓïÑÔ
7 Name:           ruby
8 Version:        1.8.1
9 Release:        1
10 Epoch:          1
11 License:        The Ruby License
12 Group:          Development/Languages
13 Source0:        ftp://ftp.ruby-lang.org/pub/ruby/1.8/%{name}-%{version}.tar.gz
14 # Source0-md5:  5d52c7d0e6a6eb6e3bc68d77e794898e
15 Source1:        http://www.ibiblio.org/pub/languages/ruby/doc/%{name}-texi-1.4-en.tar.gz
16 # Source1-md5:  839fda4af52b5c5c6d21f879f7fc62bf
17 Source2:        http://www.math.sci.hokudai.ac.jp/~gotoken/ruby/%{name}-uguide-981227.tar.gz
18 # Source2-md5:  24eadcd067278901da9ad70efb146b07
19 Source3:        http://www.ibiblio.org/pub/languages/ruby/doc/%{name}faq-990927.tar.gz
20 # Source3-md5:  634c25b14e19925d10af3720d72e8741
21 Source4:        irb.1
22 Source5:        http://www.geocities.jp/kosako1/oniguruma/archive/onigd20040821.tar.gz
23 # Source5-md5:  ed8e12118b0d39d6d8581128ad36276f
24 Patch0:         %{name}-info.patch
25 Patch1:         %{name}-LIB_PREFIX.patch
26 Patch2:         %{name}-ia64.patch
27 URL:            http://www.ruby-lang.org/
28 BuildRequires:  autoconf
29 BuildRequires:  automake
30 BuildRequires:  gdbm-devel >= 1.8.3
31 BuildRequires:  ncurses-devel
32 BuildRequires:  readline-devel >= 4.2
33 BuildRequires:  texinfo
34 BuildRequires:  tk-devel
35 Requires(post,postun):/sbin/ldconfig
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Obsoletes:      ruby-doc
38 Obsoletes:      rdoc
39 Obsoletes:      ruby-REXML
40
41 %define         _ulibdir        %{_prefix}/lib
42
43 # bleh, some nasty (gcc or ruby) bug still not fixed
44 # (SEGV or "unexpected break" on miniruby run during build)
45 %define         specflags_ia64  -O0
46
47 %description
48 Ruby is the interpreted scripting language for quick and easy
49 object-oriented programming. It has many features to process text
50 files and to do system management tasks (as in Perl). It is simple,
51 straight-forward, extensible, and portable.
52
53 %description -l ja
54 Ruby¤Ï¥·¥ó¥×¥ë¤«¤Ä¶¯ÎϤʥª¥Ö¥¸¥§¥¯¥È»Ø¸þ¥¹¥¯¥ê¥×¥È¸À¸ì¤Ç¤¹¡¥Ruby¤ÏºÇ½é
55 ¤«¤é½ã¿è¤Ê¥ª¥Ö¥¸¥§¥¯¥È»Ø¸þ¸À¸ì¤È¤·¤ÆÀ߷פµ¤ì¤Æ¤¤¤Þ¤¹¤«¤é¡¤¥ª¥Ö¥¸¥§¥¯¥È
56 »Ø¸þ¥×¥í¥°¥é¥ß¥ó¥°¤ò¼ê·Ú¤Ë¹Ô¤¦»ö¤¬½ÐÍè¤Þ¤¹¡¥¤â¤Á¤í¤óÄ̾ï¤Î¼ê³¤­·¿¤Î¥×
57 ¥í¥°¥é¥ß¥ó¥°¤â²Äǽ¤Ç¤¹¡¥
58
59 Ruby¤Ï¥Æ¥­¥¹¥È½èÍý´Ø·¸¤ÎǽÎϤʤɤËÍ¥¤ì¡¤Perl¤ÈƱ¤¸¤¯¤é¤¤¶¯ÎϤǤ¹¡¥¤µ¤é
60 ¤Ë¥·¥ó¥×¥ë¤Êʸˡ¤È¡¤Îã³°½èÍý¤ä¥¤¥Æ¥ì¡¼¥¿¤Ê¤É¤Îµ¡¹½¤Ë¤è¤Ã¤Æ¡¤¤è¤êʬ¤«¤ê
61 ¤ä¤¹¤¤¥×¥í¥°¥é¥ß¥ó¥°¤¬½ÐÍè¤Þ¤¹¡¥
62
63 %description -l pl
64 Ruby to interpretowany jêzyk skryptowy, w sam raz dla ³atwego i
65 szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji
66 u³atwiaj±cych przetwarzanie plików tekstowych i wykonywanie prac
67 zwi±zanych z zarz±dzaniem systemu (podobnie jak Perl). Jest prosty,
68 rozszerzalny i przeno¶ny.
69
70 %description -l pt_BR
71 Ruby é uma linguagem de script interpretada de programação
72 orientada a objeto. Possui diversas características para
73 processamento de texto. É simples, extensível e direta.
74
75 %package tk
76 Summary:        Ruby/Tk bindings
77 Summary(pl):    Wi±zania Ruby/Tk
78 Group:          Development/Languages
79 Requires:       %{name} = %{epoch}:%{version}-%{release}
80
81 %description tk
82 This pachage contains Ruby/Tk bindings.
83
84 %description tk -l pl
85 Ten pakiet zawiera wi±zania Ruby/Tk.
86
87 %package devel
88 Summary:        Ruby development libraries
89 Summary(pl):    Biblioteki programistyczne interpretera jêzyka Ruby
90 Group:          Development/Languages
91 Requires:       %{name} = %{epoch}:%{version}-%{release}
92
93 %description devel
94 Ruby development libraries.
95
96 %description devel -l pl
97 Biblioteki programistyczne interpretera jêzyka Ruby.
98
99 %package static
100 Summary:        Ruby static libraries
101 Summary(pl):    Biblioteki statyczne Ruby
102 Group:          Development/Languages
103 Requires:       %{name} = %{epoch}:%{version}-%{release}
104
105 %description static
106 Ruby static libraries.
107
108 %description devel -l pl
109 Biblioteki statyczne Ruby.
110
111 %prep
112 %setup -q -a1 -a2 -a3 -a5
113 %patch0 -p1
114 %patch1 -p1
115 %patch2 -p1
116
117 find . -name '*.rb' -or -name '*.cgi' -or -name '*.test' | xargs perl -pi -e "s#/usr/local/bin#bin#"
118
119 %build
120 cp -f /usr/share/automake/config.sub .
121 cd oniguruma
122 %configure \
123         --with-rubydir=..
124 %{__make} 18
125 cd ..
126
127 %{__autoconf}
128 %configure \
129         --enable-shared \
130         --enable-pthread \
131         --with-X11-lib=/usr/X11R6/%{_lib}
132 %{__make}
133
134 %{__make} info -C %{name}-texi-1.4-en
135
136 #./miniruby -I lib bin/rdoc -o rdoc
137 #./miniruby -I lib -I ext/syck bin/rdoc --ri -o ri
138
139 %install
140 rm -rf $RPM_BUILD_ROOT
141 install -d $RPM_BUILD_ROOT{%{_infodir},%{_mandir}/man1,%{_examplesdir}/%{name}-%{version},%{ruby_ridir}}
142
143 %{__make} install \
144         DESTDIR=$RPM_BUILD_ROOT
145
146 cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
147 install %{name}-texi-1.4-en/ruby.info* $RPM_BUILD_ROOT%{_infodir}
148 install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1
149
150 mv -f ruby-uguide guide
151 mv -f rubyfaq faq
152
153 #cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
154
155 %clean
156 rm -rf $RPM_BUILD_ROOT
157
158 %post
159 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
160 /sbin/ldconfig
161
162 %postun
163 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
164 /sbin/ldconfig
165
166 %files
167 %defattr(644,root,root,755)
168 %doc guide faq misc README README.EXT ChangeLog ToDo 
169 #%doc rdoc
170 %attr(755,root,root) %{_bindir}/*
171 %attr(755,root,root) %{_libdir}/lib*.so.*.*
172 %dir %{_libdir}/%{name}
173 %dir %{_libdir}/%{name}/1.8
174 %{_libdir}/%{name}/1.8/bigdecimal
175 %{_libdir}/%{name}/1.8/cgi
176 %{_libdir}/%{name}/1.8/date
177 %{_libdir}/%{name}/1.8/dl
178 %{_libdir}/%{name}/1.8/drb
179 %{_libdir}/%{name}/1.8/io
180 %{_libdir}/%{name}/1.8/irb
181 %{_libdir}/%{name}/1.8/net
182 %{_libdir}/%{name}/1.8/openssl
183 %{_libdir}/%{name}/1.8/optparse
184 %{_libdir}/%{name}/1.8/racc
185 %{_libdir}/%{name}/1.8/rdoc
186 %{_libdir}/%{name}/1.8/rexml
187 %{_libdir}/%{name}/1.8/rinda
188 #%{_libdir}/%{name}/1.8/rss
189 %{_libdir}/%{name}/1.8/runit
190 %{_libdir}/%{name}/1.8/shell
191 %{_libdir}/%{name}/1.8/soap
192 %{_libdir}/%{name}/1.8/test
193 %{_libdir}/%{name}/1.8/uri
194 %{_libdir}/%{name}/1.8/webrick
195 %{_libdir}/%{name}/1.8/wsdl
196 %{_libdir}/%{name}/1.8/xmlrpc
197 %{_libdir}/%{name}/1.8/xsd
198 %{_libdir}/%{name}/1.8/yaml
199 %{_libdir}/%{name}/1.8/[A-Za-s]*.rb
200 %{_libdir}/%{name}/1.8/tempfile.rb
201 %{_libdir}/%{name}/1.8/thread.rb
202 %{_libdir}/%{name}/1.8/thwait.rb
203 %{_libdir}/%{name}/1.8/time.rb
204 %{_libdir}/%{name}/1.8/timeout.rb
205 %{_libdir}/%{name}/1.8/tmpdir.rb
206 %{_libdir}/%{name}/1.8/tracer.rb
207 %{_libdir}/%{name}/1.8/tsort.rb
208 %{_libdir}/%{name}/1.8/[u-z]*.rb
209 %dir %{_libdir}/%{name}/1.8/*-linux*
210 %attr(755,root,root) %{_libdir}/%{name}/1.8/*-linux*/[a-s]*.so
211 %attr(755,root,root) %{_libdir}/%{name}/1.8/*-linux*/[u-z]*.so
212 %attr(755,root,root) %{_libdir}/%{name}/1.8/*-linux*/digest/*.so
213 %attr(755,root,root) %{_libdir}/%{name}/1.8/*-linux*/io/*.so
214 %attr(755,root,root) %{_libdir}/%{name}/1.8/*-linux*/racc/*.so
215 %{_libdir}/%{name}/1.8/*-linux*/rbconfig.rb
216 %dir %{_ulibdir}/%{name}/site_ruby
217 %dir %{_ulibdir}/%{name}/site_ruby/1.8
218 %dir %{_ulibdir}/%{name}/site_ruby/1.8/*-linux*
219 %dir %{ruby_ridir}
220 #%{ruby_ridir}/*
221 %{_mandir}/*/*
222 %{_infodir}/*.info*
223 %{_examplesdir}/%{name}-%{version}
224
225 %files devel
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/lib*.so
228 %{_libdir}/%{name}/1.8/*/*.h
229
230 %files static
231 %defattr(644,root,root,755)
232 %{_libdir}/lib*.a
233
234 %files tk
235 %defattr(644,root,root,755)
236 %{_libdir}/%{name}/1.8/tcltk.rb
237 %{_libdir}/%{name}/1.8/tk*.rb
238 #%{_libdir}/%{name}/1.8/tk
239 #%{_libdir}/%{name}/1.8/tkextlib
240 %attr(755,root,root) %{_libdir}/%{name}/1.8/*-linux*/t*.so
This page took 0.036019 seconds and 3 git commands to generate.