-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruby.spec
1314 lines (1047 loc) · 44.2 KB
/
ruby.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%global rubyxver 1.8
%global rubyver 1.8.7
%global _patchlevel 352
%global dotpatchlevel %{?_patchlevel:.%{_patchlevel}}
%global patchlevel %{?_patchlevel:-p%{_patchlevel}}
%global arcver %{rubyver}%{?patchlevel}
%{!?vendorlibbase: %global vendorlibbase %{_prefix}/lib/ruby}
%{!?vendorarchbase: %global vendorarchbase %{_libdir}/ruby}
%{!?sitelibbase: %global sitelibbase %{vendorlibbase}/site_ruby}
%{!?sitearchbase: %global sitearchbase %{vendorarchbase}/site_ruby}
%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/')
Name: ruby
Version: %{rubyver}%{?dotpatchlevel}
Release: 5%{?dist}
# Please check if ruby upstream changes this to "Ruby or GPLv2+"
License: Ruby or GPLv2
URL: http://www.ruby-lang.org/
%if 0%{?fedora} >= 13
BuildRequires: compat-readline5-devel
%else
BuildRequires: readline-devel
%endif
BuildRequires: db4-devel
BuildRequires: gdbm-devel
#BuildRequires: libX11-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: byacc
# Official ruby source release tarball
Source0: ftp://ftp.ruby-lang.org/pub/%{name}/%{rubyxver}/%{name}-%{arcver}.tar.bz2
# Patches 23, 29, and 33 brought over from ruby 1.8.6
# (updated to apply against 1.8.7 source)
# If building against a 64bit arch, use 64bit libdir
Patch23: ruby-1.8.7-p330-multilib.patch
# Mark all i.86 arch's (eg i586, i686, etc) as i386
Patch29: ruby-1.8.7-always-use-i386.patch
# Use shared libs as opposed to static for mkmf
# See bug 428384
Patch33: ruby-1.8.7-p249-mkmf-use-shared.patch
# Lower autoconf requirements (fixing RHEL5 builds)
Patch34: autoconf-2.59.patch
# Change ruby load path to conform to Fedora/ruby
# library placement (various 1.8.6 patches consolidated into this)
Patch100: ruby-1.8.7-lib-paths.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Summary: An interpreter of object-oriented scripting language
Group: Development/Languages
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
# emacs-23.2.x itself now provides the ruby mode
# And no Provides here
Obsoletes: %{name}-mode < 1.8.7
# remove old documentation
# And no Provides here
Obsoletes: %{name}-docs < 1.8.7
#
# Remove TCL/TK
Obsoletes: ruby-tcltk
%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.
%package libs
Summary: Libraries necessary to run Ruby
Group: Development/Libraries
# ext/bigdecimal/bigdecimal.{c,h} are under (GPL+ or Artistic) which
# are used for bigdecimal.so
License: (Ruby or GPLv2) and (GPL+ or Artistic)
Provides: ruby(abi) = %{rubyxver}
Provides: libruby = %{version}-%{release}
Obsoletes: libruby < %{version}-%{release}
%description libs
This package includes the libruby, necessary to run Ruby.
%package devel
Summary: A Ruby development environment
Group: Development/Languages
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
Header files and libraries for building a extension library for the
Ruby or an application embedded Ruby.
%package static
Summary: Static libraries for Ruby development environment
Group: Development/Languages
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static
Static libraries for for building a extension library for the
Ruby or an application embedded Ruby.
%package irb
Summary: The Interactive Ruby
Group: Development/Languages
# No isa specific
Requires: %{name} = %{version}-%{release}
Provides: irb = %{version}-%{release}
Obsoletes: irb < %{version}-%{release}
%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
BuildArch: noarch
%endif
%description irb
The irb is acronym for Interactive Ruby. It evaluates ruby expression
from the terminal.
%package rdoc
Summary: A tool to generate documentation from Ruby source files
Group: Development/Languages
# generators/template/html/html.rb is under CC-BY
License: (GPLv2 or Ruby) and CC-BY
# No isa specific
Requires: %{name}-irb = %{version}-%{release}
Provides: rdoc = %{version}-%{release}
Obsoletes: rdoc < %{version}-%{release}
%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
BuildArch: noarch
%endif
%description rdoc
The rdoc is a tool to generate the documentation from Ruby source files.
It supports some output formats, like HTML, Ruby interactive reference (ri),
XML and Windows Help file (chm).
%package ri
Summary: Ruby interactive reference
Group: Documentation
## ruby-irb requires ruby, which ruby-rdoc requires
#Requires: %%{name} = %%{version}-%%{release}
# No isa specific
Requires: %{name}-rdoc = %{version}-%{release}
Provides: ri = %{version}-%{release}
Obsoletes: ri < %{version}-%{release}
# FIXME: Make ruby-ri really arch independent
# BuildArch: noarch # Currently commented out
%description ri
ri is a command line tool that displays descriptions of built-in
Ruby methods, classes and modules. For methods, it shows you the calling
sequence and a description. For classes and modules, it shows a synopsis
along with a list of the methods the class or module implements.
%prep
%setup -q -c
pushd %{name}-%{arcver}
%patch23 -p1
%patch29 -p1
%patch33 -p1
%patch34 -p1
%patch100 -p1
popd
%build
pushd %{name}-%{arcver}
for i in config.sub config.guess; do
test -f %{_datadir}/libtool/$i && cp -p %{_datadir}/libtool/$i .
done
autoconf
rb_cv_func_strtod=no
export rb_cv_func_strtod
# bug 489990
CFLAGS="-fno-strict-aliasing"
#CFLAGS="%{optflags} -D__LINUX__ -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
export CFLAGS
%configure \
--enable-shared \
--without-X11 \
--disable-pthread \
%if 0%{?fedora} >= 13
--with-readline-include=%{_includedir}/readline5 \
--with-readline-lib=%{_libdir}/readline5 \
%endif
--with-sitedir='%{sitelibbase}' \
--with-sitearchdir='%{sitearchbase}' \
--with-vendordir='%{vendorlibbase}' \
--with-vendorarchdir='%{vendorarchbase}'
# For example ext/socket/extconf.rb uses try_run (for getaddrinfo test),
# which executes conftest and setting LD_LIBRARY_PATH for libruby.so is
# needed.
export LD_LIBRARY_PATH=$(pwd)
make RUBY_INSTALL_NAME=ruby \
COPY="cp -p" \
%{?_smp_mflags}
%ifarch ia64
# Miscompilation? Buggy code?
rm -f parse.o
make OPT=-O0 RUBY_INSTALL_NAME=ruby \
%{?_smp_mflags}
%endif
# Avoid multilib conflict on -libs (bug 649174)
# Maybe dlconfig.rb is unneeded anyway, however for now moving
# dlconfig.rb and add wrapper (need checking)
CONFIGARCH=$(./miniruby -I. -rrbconfig -e "puts Config::CONFIG['arch']")
[ -z "$CONFIGARCH" ] && exit 1
pushd ext/dl
mkdir $CONFIGARCH
mv dlconfig.rb $CONFIGARCH/
cat > dlconfig.rb <<EOF
require 'rbconfig'
dlconfig_path=File.join(File.dirname(__FILE__), Config::CONFIG['arch'], 'dlconfig')
require dlconfig_path
EOF
popd
# Generate ri doc
rm -rf .ext/rdoc
rm -rf ./RI_TMPDIR
mkdir ./RI_TMPDIR
make \
DESTDIR=$(pwd)/RI_TMPDIR \
install-doc
popd
%check
pushd %{name}-%{arcver}
%ifarch ppc64
make test || true
%else
make test
%endif
popd
%install
# install documenation in tmp directory to be
# picked up by %%doc macros in %%files sections
rm -rf tmp-ruby-docs
mkdir tmp-ruby-docs
pushd tmp-ruby-docs
mkdir \
ruby ruby-libs irb
# First gather all samples
cp -a ../%{name}-%{arcver}/sample/ ruby
cp -a \
../%{name}-%{arcver}/lib/README* ../%{name}-%{arcver}/doc/ \
ruby-libs
# Use tar to keep directory hierarchy
cd ruby-libs
(
cd ../../%{name}-%{arcver} ; \
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*' \) \
\
| xargs tar cf -
) \
| tar xf -
cd ..
# make sure that all doc files are the world-readable
find -type f | xargs chmod 0644
# Fix shebang
grep -rl '#![ \t]*%{_prefix}/local/bin' . | \
xargs sed -i -e '1s|\(#![ \t]*\)%{_prefix}/local/bin|\1%{_bindir}|'
grep -rl '#![ \t]*\./ruby' . | \
xargs sed -i -e '1s|\(#![ \t]*\)\./ruby|%{_bindir}/ruby|'
# Fix encoding
# Suppress message
set +x
find . -type f | while read f ; do
file $f | grep -q 'text' || continue
iconv -f UTF-8 -t UTF-8 $f &> /dev/null && continue
for encoding in \
EUC-JP ISO-8859-1
do
iconv -f $encoding -t UTF-8 $f -o $f.tmp 2>/dev/null && \
{ touch -r $f $f.tmp ; mv $f.tmp $f ; \
echo -e "$f\t: converted from $encoding -t UTF-8" ; continue 2; } || \
rm -f $f.tmp
done
done
# Enable message
set -x
# irb
mv ruby-libs/doc/irb/* irb
rm -rf ruby-libs/doc/irb
# done w/ docs
popd
# installing binaries ...
make \
-C $RPM_BUILD_DIR/%{name}-%{version}/%{name}-%{arcver} \
DESTDIR=$RPM_BUILD_ROOT \
install
# install ri doc
cp -a ./%{name}-%{arcver}/RI_TMPDIR/* $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{sitelibbase}/%{rubyxver}
mkdir -p $RPM_BUILD_ROOT%{sitearchbase}/%{rubyxver}/%{_normalized_cpu}-%{_target_os}
# remove shebang
for i in \
$RPM_BUILD_ROOT%{vendorlibbase}/%{rubyxver}/{abbrev,generator,irb/{cmd/subirb,ext/save-history},matrix,rdoc/{markup/sample/rdoc2latex,parsers/parse_rb},set,tsort}.rb; \
do
sed -i -e '/^#!.*/,1D' $i
done
# The following can be executable
chmod 0644 $RPM_BUILD_ROOT%{vendorarchbase}/%{rubyxver}/%{_normalized_cpu}-%{_target_os}/*.h
find $RPM_BUILD_ROOT/ -name "*.so" -exec chmod 755 {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(-, root, root, -)
%doc %{name}-%{arcver}/COPYING*
%doc %{name}-%{arcver}/ChangeLog
%doc %{name}-%{arcver}/GPL
%doc %{name}-%{arcver}/LEGAL
%doc %{name}-%{arcver}/LGPL
%doc %{name}-%{arcver}/NEWS
%doc %{name}-%{arcver}/README
%lang(ja) %doc %{name}-%{arcver}/README.ja
%doc %{name}-%{arcver}/ToDo
%doc tmp-ruby-docs/ruby/*
%{_bindir}/ruby
%{_bindir}/erb
%{_bindir}/testrb
%{_mandir}/man1/ruby.1*
%files devel
%defattr(-, root, root, -)
%doc %{name}-%{arcver}/COPYING*
%doc %{name}-%{arcver}/ChangeLog
%doc %{name}-%{arcver}/GPL
%doc %{name}-%{arcver}/LEGAL
%doc %{name}-%{arcver}/LGPL
%doc %{name}-%{arcver}/README.EXT
%lang(ja) %doc %{name}-%{arcver}/README.EXT.ja
%{_libdir}/libruby.so
%{vendorarchbase}/%{rubyxver}/%{_normalized_cpu}-%{_target_os}/*.h
%files static
%defattr(-, root, root, -)
%{_libdir}/libruby-static.a
%files libs
%defattr(-, root, root, -)
%doc %{name}-%{arcver}/README
%lang(ja) %doc %{name}-%{arcver}/README.ja
%doc %{name}-%{arcver}/COPYING*
%doc %{name}-%{arcver}/ChangeLog
%doc %{name}-%{arcver}/GPL
%doc %{name}-%{arcver}/LEGAL
%doc %{name}-%{arcver}/LGPL
%doc tmp-ruby-docs/ruby-libs/*
%dir %{vendorlibbase}
%dir %{vendorlibbase}/%{rubyxver}
%{sitelibbase}
%ifarch ppc64 s390x sparc64 x86_64
%dir %{vendorarchbase}
%dir %{vendorarchbase}/%{rubyxver}
%{sitearchbase}
%endif
## the following files should goes into ruby-rdoc package.
%exclude %{vendorlibbase}/%{rubyxver}/rdoc
## the following files should goes into ruby-irb package.
%exclude %{vendorlibbase}/%{rubyxver}/irb.rb
%exclude %{vendorlibbase}/%{rubyxver}/irb
## files in ruby-libs from here
%{vendorlibbase}/%{rubyxver}/*.rb
%{vendorlibbase}/%{rubyxver}/bigdecimal
%{vendorlibbase}/%{rubyxver}/cgi
%{vendorlibbase}/%{rubyxver}/date
%{vendorlibbase}/%{rubyxver}/digest
%{vendorlibbase}/%{rubyxver}/dl
%{vendorlibbase}/%{rubyxver}/drb
%{vendorlibbase}/%{rubyxver}/io
%{vendorlibbase}/%{rubyxver}/net
%{vendorlibbase}/%{rubyxver}/openssl
%{vendorlibbase}/%{rubyxver}/optparse
%{vendorlibbase}/%{rubyxver}/racc
%{vendorlibbase}/%{rubyxver}/rexml
%{vendorlibbase}/%{rubyxver}/rinda
%{vendorlibbase}/%{rubyxver}/rss
%{vendorlibbase}/%{rubyxver}/runit
%{vendorlibbase}/%{rubyxver}/shell
%{vendorlibbase}/%{rubyxver}/soap
%{vendorlibbase}/%{rubyxver}/test
%{vendorlibbase}/%{rubyxver}/uri
%{vendorlibbase}/%{rubyxver}/webrick
%{vendorlibbase}/%{rubyxver}/wsdl
%{vendorlibbase}/%{rubyxver}/xmlrpc
%{vendorlibbase}/%{rubyxver}/xsd
%{vendorlibbase}/%{rubyxver}/yaml
%{_libdir}/libruby.so.*
%{vendorarchbase}/%{rubyxver}/%{_normalized_cpu}-%{_target_os}/*.so
%{vendorarchbase}/%{rubyxver}/%{_normalized_cpu}-%{_target_os}/digest
%{vendorarchbase}/%{rubyxver}/%{_normalized_cpu}-%{_target_os}/io
%{vendorarchbase}/%{rubyxver}/%{_normalized_cpu}-%{_target_os}/racc
%{vendorarchbase}/%{rubyxver}/%{_normalized_cpu}-%{_target_os}/rbconfig.rb
%files rdoc
%defattr(-, root, root, -)
%doc %{name}-%{arcver}/COPYING*
%doc %{name}-%{arcver}/ChangeLog
%doc %{name}-%{arcver}/GPL
%doc %{name}-%{arcver}/LEGAL
%doc %{name}-%{arcver}/LGPL
%{_bindir}/rdoc
%{vendorlibbase}/%{rubyxver}/rdoc
%files irb
%defattr(-, root, root, -)
%doc %{name}-%{arcver}/COPYING*
%doc %{name}-%{arcver}/ChangeLog
%doc %{name}-%{arcver}/GPL
%doc %{name}-%{arcver}/LEGAL
%doc %{name}-%{arcver}/LGPL
%doc tmp-ruby-docs/irb/*
%{_bindir}/irb
%{vendorlibbase}/%{rubyxver}/irb.rb
%{vendorlibbase}/%{rubyxver}/irb
%files ri
%defattr(-, root, root, -)
%doc %{name}-%{arcver}/COPYING*
%doc %{name}-%{arcver}/ChangeLog
%doc %{name}-%{arcver}/GPL
%doc %{name}-%{arcver}/LEGAL
%doc %{name}-%{arcver}/LGPL
%{_bindir}/ri
%{_datadir}/ri
%changelog
* Fri Aug 19 2011 Sergio Rubio <[email protected]> - 1.8.7.352-5
- remove TCL/TK
- --disable-pthreads --without-X11
* Mon Aug 08 2011 Sergio Rubio <[email protected]> - 1.8.7.352-3
- Test new build flags
* Wed Aug 03 2011 Sergio Rubio <[email protected]> - 1.8.7.352-2
- Test new build flags
* Tue Jul 12 2011 Sergio Rubio <[email protected]> - 1.8.7.352-1
- new upstream release
* Tue Apr 26 2011 Sergio Rubio <[email protected]> - 1.8.7.334-3
- Do not depend on AutoConf >= 2.60
* Thu Apr 7 2011 Erik Sabowski <[email protected]> - 1.8.7.334-2
- Update to build on CentOS 5.5:
- 'compat-readline5-devel' only used for >=fc13, rhel5 just needs 'readline5-devel'
- add 'BuildRoot:' line since rpmbuild on CentOS 5.5 still requires it
- don't use "noarch" on subpackages for certain distros
* Sat Feb 19 2011 Mamoru Tasaka <[email protected]> - 1.8.7.334-1
- Update to 1.8.7 p334
* Wed Feb 09 2011 Fedora Release Engineering <[email protected]> - 1.8.7.330-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sun Jan 02 2011 Dennis Gilmore <[email protected]> - 1.8.7.330-2
- nomalise the 32 bit sparc archs to sparc
* Sun Dec 26 2010 Mamoru Tasaka <[email protected]> - 1.8.7.330-1
- Update to 1.8.7 p330
- ext/tk updated to the newest header
* Thu Nov 4 2010 Mamoru Tasaka <[email protected]> - 1.8.7.302-2
- Avoid multilib conflict on -libs subpackage (bug 649174)
* Mon Aug 23 2010 Mamoru Tasaka <[email protected]> - 1.8.7.302-1
- Update to 1.8.7.302
- CVE-2010-0541 (bug 587731) is fixed in this version
- Update ext/tk to the latest head
* Mon Aug 2 2010 Mamoru Tasaka <[email protected]> - 1.8.7.299-5
- More cleanup of spec file, expecially for rpmlint issue
- build ri files in %%build
* Mon Jul 26 2010 Mamoru Tasaka <[email protected]> - 1.8.7.299-4
- Cleanup spec file
- Make -irb, -rdoc subpackage noarch
- Make dependencies between arch-dependent subpackages isa specific
- Improve sample documentation gathering
* Mon Jul 12 2010 Mohammed Morsi <[email protected]> - 1.8.7.299-3
- updated packaged based on feedback (from mtasaka)
- added comments to all patches / sources
- obsoleted ruby-mode, as it's now provided by the emacs package itself
- readded missing documentation
- various small compatability/regression fixes
* Tue Jul 06 2010 Mohammed Morsi <[email protected]> - 1.8.7.299-2
- readded bits to pull tk package from upstream source branch
- removed unecessary .tk.old dir
- renamed macros which may cause confusion, removed unused ones
* Thu Jun 24 2010 Mohammed Morsi <[email protected]> - 1.8.7.299-1
- integrate more of jmeyering's and mtaska's feedback
- removed emacs bits that are now shipped with the emacs package
- various patch and spec cleanup
- rebased to ruby 1.8.7 patch 299, removed patches no longer needed:
ruby-1.8.7-openssl-1.0.patch, ruby-1.8.7-rb_gc_guard_ptr-optimization.patch
* Wed Jun 23 2010 Mohammed Morsi <[email protected]> - 1.8.7.249-5
- Various fixes
* Wed Jun 23 2010 Mohammed Morsi <[email protected]> - 1.8.7.249-4
- Fixed incorrect paths in 1.8.7 rpm
* Tue Jun 22 2010 Mohammed Morsi <[email protected]> - 1.8.7.249-3
- Integrated Jim Meyering's feedback and changes in to:
- remove trailing blanks
- placate rpmlint
- ruby_* definitions: do not use trailing slashes in directory names
- _normalized_cpu: simplify definition
* Mon Jun 21 2010 Mohammed Morsi <[email protected]> - 1.8.7.249-2
- Integrate mtasaka's feedback and changes
- patch101 ruby_1_8_7-rb_gc_guard_ptr-optimization.patch
* Tue Jun 15 2010 Mohammed Morsi <[email protected]> - 1.8.7.249-1
- Initial Ruby 1.8.7 specfile
* Wed May 19 2010 Mamoru Tasaka <[email protected]> - 1.8.6.399-5
- Retry for bug 559158, Simplify the OpenSSL::Digest class
pull more change commits from ruby_1_8 branch
* Mon May 17 2010 Mamoru Tasaka <[email protected]> - 1.8.6.399-4
- Patch36 (ruby-1.8.x-RHASH_SIZE-rb_hash_lookup-def.patch)
also backport rb_hash_lookup definition (bug 592936)
* Thu May 13 2010 Mamoru Tasaka <[email protected]> - 1.8.6.399-3
- ruby-1.8.x-null-class-must-be-Qnil.patch (bug 530407)
- Recreate some patches using upstream svn when available, and
add some comments for patches
* Tue May 11 2010 Mamoru Tasaka <[email protected]> - 1.8.6.399-2
- tcltk: Give up using potentially unmaintained ruby_1_8_6 branch
and instead completely replace with ruby_1_8 branch head
(at this time, using rev 27738)
(seems to fix 560053, 590503)
- Fix Japanese encoding strings under ruby-tcltk/ext/tk/sample/
* Tue Apr 27 2010 Mamoru Tasaka <[email protected]> - 1.8.6.399-1
- Update to 1.8.6 p 399 (bug 579675)
- Patch to fix gc bug causing open4 crash (bug 580993)
* Fri Mar 12 2010 Mamoru Tasaka <[email protected]> - 1.8.6.388-9
- F-14: rebuild against new gdbm
* Thu Jan 28 2010 Mamoru Tasaka <[email protected]>
- Once revert the previous change (patch34)
* Wed Jan 27 2010 Jeroen van Meeuwen <[email protected]> - 1.8.6.388-8
- Backport openssl/digest functions providing digest and hexdigest functions
directly in OpenSSL::Digest.methods
- Make sure that Red Hat people version their changelog entries
- This is actually release #1, but now needs to be release #7
* Mon Jan 18 2010 Akira TAGOH <[email protected]> - 1.8.6.388-1
- Add conditional for RHEL.
* Wed Jan 13 2010 Mamoru Tasaka <[email protected]> - 1.8.6.383-6
- CVE-2009-4492 ruby WEBrick log escape sequence (bug 554485)
* Wed Dec 9 2009 Mamoru Tasaka <[email protected]> - 1.8.6.383-5
- Change mkmf.rb to use LIBRUBYARG_SHARED so that have_library() works
without libruby-static.a (bug 428384)
- And move libruby-static.a to -static subpackage
* Thu Oct 29 2009 Mamoru Tasaka <[email protected]> - 1.8.6.383-4
- Use bison to regenerate parse.c to keep the original format of error
messages (bug 530275 comment 4)
* Sun Oct 25 2009 Mamoru Tasaka <[email protected]> - 1.8.6.383-3
- Patch so that irb saves its history (bug 518584, ruby issue 1556)
* Sat Oct 24 2009 Mamoru Tasaka <[email protected]> - 1.8.6.383-2
- Update to 1.8.6 patchlevel 383 (bug 520063)
* Wed Oct 14 2009 Mamoru Tasaka <[email protected]> - 1.8.6.369-5
- Much better idea for Patch31 provided by Akira TAGOH <[email protected]>
* Wed Oct 14 2009 Mamoru Tasaka <[email protected]> - 1.8.6.369-4
- Fix the search path of ri command for ri manuals installed with gem
(bug 528787)
* Wed Aug 26 2009 Tomas Mraz <[email protected]> - 1.8.6.369-3
- Rebuild against new openssl
* Thu Jul 23 2009 Mamoru Tasaka <[email protected]> - 1.8.6.369-2
- Make sure that readline.so is linked against readline 5 because
Ruby is under GPLv2
* Sat Jun 20 2009 Jeroen van Meeuwen <[email protected]> - 1.8.6.369-1
- New patchlevel fixing CVE-2009-1904
- Fix directory on ARM (#506233, Kedar Sovani)
* Sun May 31 2009 Jeroen van Meeuwen <[email protected]> - 1.8.6.368-1
- New upstream release (p368)
* Sat Apr 11 2009 Mamoru Tasaka <[email protected]> - 1.8.6.287-8
- Merge Review fix (#226381)
* Wed Mar 18 2009 Jeroen van Meeuwen <[email protected]> - 1.8.6.287-7
- Fix regression in CVE-2008-3790 (#485383)
* Mon Mar 16 2009 Mamoru Tasaka <[email protected]> - 1.8.6.287-6
- Again use -O2 optimization level
- i586 should search i386-linux directory (on <= F-11)
* Thu Mar 05 2009 Jeroen van Meeuwen <[email protected]> - 1.8.6.287-5
- Rebuild for gcc4.4
* Fri Feb 27 2009 Jeroen van Meeuwen <[email protected]> - 1.8.6.287-3
- CVE-2008-5189: CGI header injection.
* Wed Oct 8 2008 Akira TAGOH <[email protected]> - 1.8.6.287-2
- CVE-2008-3790: DoS vulnerability in the REXML module.
* Sat Aug 23 2008 Akira TAGOH <[email protected]> - 1.8.6.287-1
- New upstream release.
- Security fixes.
- CVE-2008-3655: Ruby does not properly restrict access to critical
variables and methods at various safe levels.
- CVE-2008-3656: DoS vulnerability in WEBrick.
- CVE-2008-3657: Lack of taintness check in dl.
- CVE-2008-1447: DNS spoofing vulnerability in resolv.rb.
- CVE-2008-3443: Memory allocation failure in Ruby regex engine.
- Remove the unnecessary backported patches.
* Thu Jul 10 2008 Tom "spot" Callaway <[email protected]> - 1.8.6.230-5
- rebuild against db4-4.7
* Tue Jul 1 2008 Akira TAGOH <[email protected]> - 1.8.6.230-4
- Backported from upstream SVN to fix a segfault issue with Array#fill.
* Mon Jun 30 2008 Akira TAGOH <[email protected]> - 1.8.6.230-3
- Backported from upstream SVN to fix a segfault issue. (#452825)
- Backported from upstream SVN to fix an integer overflow in rb_ary_fill.
* Wed Jun 25 2008 Akira TAGOH <[email protected]> - 1.8.6.230-2
- Fix a segfault issue. (#452810)
* Tue Jun 24 2008 Akira TAGOH <[email protected]> - 1.8.6.230-1
- New upstream release.
- Security fixes. (#452295)
- CVE-2008-1891: WEBrick CGI source disclosure.
- CVE-2008-2662: Integer overflow in rb_str_buf_append().
- CVE-2008-2663: Integer overflow in rb_ary_store().
- CVE-2008-2664: Unsafe use of alloca in rb_str_format().
- CVE-2008-2725: Integer overflow in rb_ary_splice().
- CVE-2008-2726: Integer overflow in rb_ary_splice().
- ruby-1.8.6.111-CVE-2007-5162.patch: removed.
- Build ruby-mode package for all archtectures.
* Tue Mar 4 2008 Akira TAGOH <[email protected]> - 1.8.6.114-1
- Security fix for CVE-2008-1145.
- Improve a spec file. (#226381)
- Correct License tag.
- Fix a timestamp issue.
- Own a arch-specific directory.
* Tue Feb 19 2008 Fedora Release Engineering <[email protected]> - 1.8.6.111-9
- Autorebuild for GCC 4.3
* Tue Feb 19 2008 Akira TAGOH <[email protected]> - 1.8.6.111-8
- Rebuild for gcc-4.3.
* Tue Jan 15 2008 Akira TAGOH <[email protected]> - 1.8.6.111-7
- Revert the change of libruby-static.a. (#428384)
* Fri Jan 11 2008 Akira TAGOH <[email protected]> - 1.8.6.111-6
- Fix an unnecessary replacement for shebang. (#426835)
* Fri Jan 4 2008 Akira TAGOH <[email protected]> - 1.8.6.111-5
- Rebuild.
* Fri Dec 28 2007 Akira TAGOH <[email protected]> - 1.8.6.111-4
- Clean up again.
* Fri Dec 21 2007 Akira TAGOH <[email protected]> - 1.8.6.111-3
- Clean up the spec file.
- Remove ruby-man-1.4.6 stuff. this is entirely the out-dated document.
this could be replaced by ri.
- Disable the static library building.
* Tue Dec 04 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.8.6.111-2
- Rebuild for openssl bump
* Wed Oct 31 2007 Akira TAGOH <[email protected]>
- Fix the dead link.
* Mon Oct 29 2007 Akira TAGOH <[email protected]> - 1.8.6.111-1
- New upstream release.
- ruby-1.8.6.111-CVE-2007-5162.patch: Update a bit with backporting the changes
at trunk to enable the fix without any modifications on the users' scripts.
Note that Net::HTTP#enable_post_connection_check isn't available anymore.
If you want to disable this post-check, you should give OpenSSL::SSL::VERIFY_NONE
to Net::HTTP#verify_mode= instead of.
* Mon Oct 15 2007 Akira TAGOH <[email protected]> - 1.8.6.110-2
- Enable pthread support for ppc too. (#201452)
- Fix unexpected dependencies appears in ruby-libs. (#253325)
* Wed Oct 10 2007 Akira TAGOH <[email protected]> - 1.8.6.110-1
- New upstream release.
- ruby-r12567.patch: removed.
- ruby-1.8.6-CVE-2007-5162.patch: security fix for Net::HTTP that is
insufficient verification of SSL certificate.
* Thu Aug 23 2007 Akira TAGOH <[email protected]> - 1.8.6.36-4
- Rebuild
* Fri Aug 10 2007 Akira TAGOH <[email protected]>
- Update License tag.
* Mon Jul 25 2007 Akira TAGOH <[email protected]> - 1.8.6.36-3
- ruby-r12567.patch: backport patch from upstream svn to get rid of
the unnecessary declarations. (#245446)
* Wed Jul 20 2007 Akira TAGOH <[email protected]> - 1.8.6.36-2
- New upstream release.
- Fix Etc::getgrgid to get the correct gid as requested. (#236647)
* Wed Mar 28 2007 Akira TAGOH <[email protected]> - 1.8.6-2
- Fix search path breakage. (#234029)
* Thu Mar 15 2007 Akira TAGOH <[email protected]> - 1.8.6-1
- New upstream release.
- clean up a spec file.
* Tue Feb 13 2007 Akira TAGOH <[email protected]> - 1.8.5.12-2
- Rebuild
* Mon Feb 5 2007 Akira TAGOH <[email protected]> - 1.8.5.12-1
- New upstream release.
* Mon Dec 11 2006 Akira TAGOH <[email protected]> - 1.8.5.2-1
- security fix release.
* Fri Oct 27 2006 Akira TAGOH <[email protected]> - 1.8.5-4
- security fix release.
- ruby-1.8.5-cgi-CVE-2006-5467.patch: fix a CGI multipart parsing bug that
causes the denial of service. (#212396)
* Sun Oct 01 2006 Jesse Keating <[email protected]> - 1.8.5-3
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
* Tue Sep 26 2006 Akira TAGOH <[email protected]> - 1.8.5-2
- fixed rbconfig.rb to refer to DESTDIR for sitearchdir. (#207311)
* Mon Aug 28 2006 Akira TAGOH <[email protected]> - 1.8.5-1
- New upstream release.
- removed the unnecessary patches:
- ruby-1.8.4-no-eaccess.patch
- ruby-1.8.4-64bit-pack.patch
- ruby-1.8.4-fix-insecure-dir-operation.patch
- ruby-1.8.4-fix-insecure-regexp-modification.patch
- ruby-1.8.4-fix-alias-safe-level.patch
- build with --enable-pthread except on ppc.
- ruby-1.8.5-hash-memory-leak.patch: backported from CVS to fix a memory leak
on Hash. [ruby-talk:211233]
* Mon Aug 7 2006 Akira TAGOH <[email protected]> - 1.8.4-12
- owns sitearchdir. (#201208)
* Thu Jul 20 2006 Akira TAGOH <[email protected]> - 1.8.4-11
- security fixes [CVE-2006-3694]
- ruby-1.8.4-fix-insecure-dir-operation.patch:
- ruby-1.8.4-fix-insecure-regexp-modification.patch: fixed the insecure
operations in the certain safe-level restrictions. (#199538)
- ruby-1.8.4-fix-alias-safe-level.patch: fixed to not bypass the certain
safe-level restrictions. (#199543)
* Wed Jul 12 2006 Jesse Keating <[email protected]> - 1.8.4-10.fc6.1
- rebuild
* Mon Jun 19 2006 Akira TAGOH <[email protected]> - 1.8.4-10
- fixed the wrong file list again. moved tcltk library into ruby-tcltk.
(#195872)
* Thu Jun 8 2006 Akira TAGOH <[email protected]> - 1.8.4-8
- ruby-deprecated-sitelib-search-path.patch: correct the order of search path.
* Wed Jun 7 2006 Akira TAGOH <[email protected]> - 1.8.4-7
- exclude ppc64 to make ruby-mode package. right now emacs.ppc64 isn't provided
and buildsys became much stricter.
- ruby-deprecated-sitelib-search-path.patch: applied to add more search path
for backward compatiblity.
- added byacc to BuildReq. (#194161)
* Wed May 17 2006 Akira TAGOH <[email protected]> - 1.8.4-6
- ruby-deprecated-search-path.patch: added the deprecated installation paths
to the search path for the backward compatibility.
- added a Provides: ruby(abi) to ruby-libs.
- ruby-1.8.4-64bit-pack.patch: backport patch from upstream to fix unpack("l")
not working on 64bit arch and integer overflow on template "w". (#189350)
- updated License tag to be more comfortable, and with a pointer to get more
details, like Python package does. (#179933)
- clean up.
* Wed Apr 19 2006 Akira TAGOH <[email protected]>
- ruby-rubyprefix.patch: moved all arch-independent modules under /usr/lib/ruby
and keep arch-dependent modules under /usr/lib64/ruby for 64bit archs.
so 'rubylibdir', 'sitelibdir' and 'sitedir' in Config::CONFIG points to
the kind of /usr/lib/ruby now. (#184199)
* Mon Apr 17 2006 Akira TAGOH <[email protected]> - 1.8.4-4
- correct sitelibdir. (#184198)
* Fri Feb 10 2006 Jesse Keating <[email protected]> - 1.8.4-3.2
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <[email protected]> - 1.8.4-3.1
- rebuilt for new gcc4.1 snapshot and glibc changes
* Mon Feb 6 2006 Akira TAGOH <[email protected]> - 1.8.4-3
- ruby-1.8.4-no-eaccess.patch: backported from ruby CVS to avoid conflict
between newer glibc. (#179835)
* Wed Jan 4 2006 Akira TAGOH <[email protected]> - 1.8.4-2
- ruby-tcltk-multilib.patch: fixed a typo.
* Tue Dec 27 2005 Akira TAGOH <[email protected]> - 1.8.4-1
- New upstream release.
- fixed a missing return statement. (#140833)
- fixed an use of uninitialized variable. (#144890)
* Fri Dec 16 2005 Akira TAGOH <[email protected]> - 1.8.4-0.4.preview2
- updates to 1.8.4-preview2.
- renamed the packages to ruby-* (#175765)
- irb -> ruby-irb
- rdoc -> ruby-rdoc
- ri -> ruby-ri
- added tcl-devel and tk-devel into BuildRequires.
* Fri Dec 09 2005 Jesse Keating <[email protected]>
- rebuilt
* Thu Nov 10 2005 Akira TAGOH <[email protected]> - 1.8.4-0.3.preview1
- rebuilt against the latest openssl.
* Tue Nov 1 2005 Akira TAGOH <[email protected]> - 1.8.4-0.2.preview1
- build-deps libX11-devel instead of xorg-x11-devel.
* Mon Oct 31 2005 Akira TAGOH <[email protected]> - 1.8.4-0.1.preview1
- New upstream release.
- ruby-1.8.2-strscan-memset.patch: removed because it's no longer needed.
* Tue Oct 4 2005 Akira TAGOH <[email protected]> - 1.8.3-4
- moved the documents from ruby-libs to ruby-docs, which contains the arch
specific thing and to be multilib support. (#168826)
* Mon Oct 3 2005 Akira TAGOH <[email protected]> - 1.8.3-3
- fixed the wrong file list. the external library for tcl/tk was included
in ruby-libs unexpectedly.
* Mon Sep 26 2005 Akira TAGOH <[email protected]> - 1.8.3-2
- ruby-multilib.patch: added another chunk for multilib. (#169127)
* Wed Sep 21 2005 Akira TAGOH <[email protected]> - 1.8.3-1
- New upstream release.
- Build-Requires xorg-x11-devel instead of XFree86-devel.
- ruby-multilib.patch: applied for only 64-bit archs.
- ruby-1.8.2-xmlrpc-CAN-2005-1992.patch: removed. it has already been in upstream.
* Tue Jun 21 2005 Akira TAGOH <[email protected]> - 1.8.2-9
- ruby-1.8.2-xmlrpc-CAN-2005-1992.patch: fixed the arbitrary command execution
on XMLRPC server. (#161096)
* Thu Jun 16 2005 Akira TAGOH <[email protected]> - 1.8.2-8
- ruby-1.8.2-tcltk-multilib.patch: applied to get tcltklib.so built. (#160194)
* Thu Apr 7 2005 Akira TAGOH <[email protected]> - 1.8.2-7
- ruby-1.8.2-deadcode.patch: removed the dead code from the source. (#146108)
- make sure that all documentation files in ruby-docs are the world-
readable. (#147279)
* Tue Mar 22 2005 Akira TAGOH <[email protected]> - 1.8.2-6
- ruby-1.8.2-strscan-memset.patch: fixed an wrong usage of memset(3).
* Tue Mar 15 2005 Akira TAGOH <[email protected]> - 1.8.2-5
- rebuilt
* Tue Jan 25 2005 Akira TAGOH <[email protected]> - 1.8.2-4
- fixed the wrong generation of file manifest. (#146055)
- spec file clean up.
* Mon Jan 24 2005 Akira TAGOH <[email protected]> - 1.8.2-3
- separated out to rdoc package.
- make the dependency of irb for rdoc. (#144708)
* Wed Jan 12 2005 Tim Waugh <[email protected]> - 1.8.2-2
- Rebuilt for new readline.
* Wed Jan 5 2005 Akira TAGOH <[email protected]> - 1.8.2-1
- New upstream release.
- ruby-1.8.1-ia64-stack-limit.patch: removed - it's no longer needed.
- ruby-1.8.1-cgi_session_perms.patch: likewise.
- ruby-1.8.1-cgi-dos.patch: likewise.
- generated Ruby interactive documentation - senarated package.
it's now provided as ri package. (#141806)
* Thu Nov 11 2004 Jeff Johnson <[email protected]> 1.8.1-10
- rebuild against db-4.3.21.
* Wed Nov 10 2004 Akira TAGOH <[email protected]> - 1.8.1-9
- ruby-1.8.1-cgi-dos.patch: security fix [CAN-2004-0983]
- ruby-1.8.1-cgi_session_perms.patch: security fix [CAN-2004-0755]
* Fri Oct 29 2004 Akira TAGOH <[email protected]> - 1.8.1-8
- added openssl-devel and db4-devel into BuildRequires (#137479)
* Wed Oct 6 2004 Akira TAGOH <[email protected]> - 1.8.1-7
- require emacs-common instead of emacs.
* Wed Jun 23 2004 Akira TAGOH <[email protected]> 1.8.1-4
- updated the documentation.
* Tue Jun 15 2004 Elliot Lee <[email protected]>
- rebuilt
* Tue Mar 02 2004 Elliot Lee <[email protected]>
- rebuilt
* Fri Feb 13 2004 Elliot Lee <[email protected]>
- rebuilt
* Wed Feb 04 2004 Akira TAGOH <[email protected]> 1.8.1-1
- New upstream release.
- don't use any optimization for ia64 to avoid the build failure.
- ruby-1.8.1-ia64-stack-limit.patch: applied to fix SystemStackError when the optimization is disabled.
* Sat Dec 13 2003 Jeff Johnson <[email protected]> 1.8.0-3
- rebuild against db-4.2.52.
* Thu Sep 25 2003 Jeff Johnson <[email protected]> 1.8.0-2
- rebuild against db-4.2.42.
* Tue Aug 5 2003 Akira TAGOH <[email protected]> 1.8.0-1
- New upstream release.
* Thu Jul 24 2003 Akira TAGOH <[email protected]> 1.6.8-9.1
- rebuilt
* Thu Jul 24 2003 Akira TAGOH <[email protected]> 1.6.8-9
- ruby-1.6.8-castnode.patch: handling the nodes with correct cast.
use this patch now instead of ruby-1.6.8-fix-x86_64.patch.
* Fri Jul 04 2003 Akira TAGOH <[email protected]> 1.6.8-8
- rebuilt
* Fri Jul 04 2003 Akira TAGOH <[email protected]> 1.6.8-7
- fix the gcc warnings. (#82192)
- ruby-1.6.8-fix-x86_64.patch: correct a patch.
NOTE: DON'T USE THIS PATCH FOR BIG ENDIAN ARCHITECTURE.
- ruby-1.6.7-long2int.patch: removed.