SPECS: ruby.spec - main change: split ruby main package into separ...
twittner
twittner at pld-linux.org
Mon Dec 26 02:35:16 CET 2005
Author: twittner Date: Mon Dec 26 01:35:15 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- main change: split ruby main package into separate subpackages:
- ruby - contains only ruby shared library and interpreter
- ruby-modules - contains ruby boundled libraries and utilities: irb,
rdoc, ri. Utilities and their libraries are rather small so it isn't
worth to release them into separate subpkg. and for complicating
requires - for this reason ri doc empty directories belong to this pkg.
- ri docs from ruby extension packages go here.
- ruby-doc - contains html documentation: FAQ, Guide, Core and Stdlib
- ruby-examples - contains what is in sample directory
- ruby-doc-ri - ruby bundled(?) and generated documentation during ruby
building in ri format.
- added manpages from Debian for rdoc(1), ri(1), testrb(1); updated irb(1)
with Debian version.
- rel. 1.1 (please test it and raise objections)
---- Files affected:
SPECS:
ruby.spec (1.116 -> 1.117)
---- Diffs:
================================================================
Index: SPECS/ruby.spec
diff -u SPECS/ruby.spec:1.116 SPECS/ruby.spec:1.117
--- SPECS/ruby.spec:1.116 Sun Dec 25 00:42:48 2005
+++ SPECS/ruby.spec Mon Dec 26 02:35:10 2005
@@ -7,7 +7,7 @@
Summary(zh_CN): ruby - ŇťÖÖżěËٸßЧľÄĂćĎňśÔĎó˝ĹąžąŕłĚÓďŃÔ
Name: ruby
Version: 1.8.4
-Release: 1
+Release: 1.1
Epoch: 1
License: The Ruby License
Group: Development/Languages
@@ -29,6 +29,10 @@
Source7: http://www.ruby-doc.org/downloads/Ruby-1.8.1_ri_data.zip
# Source7-md5: 96e97cdfa55ed197e0e6c39159394c82
Source8: macros.%{name}
+Source9: erb.1
+Source10: rdoc.1
+Source11: ri.1
+Source12: testrb.1
Patch0: %{name}-info.patch
Patch1: %{name}-LIB_PREFIX.patch
#Patch3: %{name}-mkmf-shared.patch
@@ -60,6 +64,9 @@
files and to do system management tasks (as in Perl). It is simple,
straight-forward, extensible, and portable.
+This package contains only shared library and ruby interpreter. To get
+full-functional ruby environment install ruby-modules package.
+
%description -l ja
Ruby¤ĎĽˇĽóĽ×Ľë¤Ť¤ÄśŻÎĎ¤ĘĽŞĽÖĽ¸Ľ§ĽŻĽČťŘ¸ţĽšĽŻĽęĽ×ĽČ¸Ŕ¸ě¤Ç¤šĄĽRuby¤ĎşÇ˝é
¤Ť¤é˝ăżč¤ĘĽŞĽÖĽ¸Ľ§ĽŻĽČťŘ¸ţ¸Ŕ¸ě¤Č¤ˇ¤ĆŔߡפľ¤ě¤Ć¤¤¤Ţ¤š¤Ť¤éĄ¤ĽŞĽÖĽ¸Ľ§ĽŻĽČ
@@ -73,11 +80,36 @@
związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty,
rozszerzalny i przenośny.
+Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby.
+Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni
+funkcjonalnego środowiska ruby.
+
%description -l pt_BR
Ruby é uma linguagem de script interpretada de programaçăo orientada a
objeto. Possui diversas características para processamento de texto. É
simples, extensível e direta.
+%package modules
+Summary: Ruby standard modules and utilities
+Group: Development/Languages
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description modules
+Ruby standard modules and utilities:
+- erb - Tiny eRuby
+- rdoc - documentation tool for source code
+- irb - interactive Ruby
+- ri - Ruby interactive reference
+- testrb - automatic runnter for Test::Unit of Ruby
+
+%description modules -l pl
+Standardowe moduły i narzędzia Ruby:
+- erb - mały eRuby
+- rdoc - narzędzie do dokumentowania kodu źródłowego
+- irb - interaktywny Ruby
+- ri - interaktywna dokumentacja Ruby
+- testrb - automatyczny runnter dla Ruby Test::Unit
+
%package tk
Summary: Ruby/Tk bindings
Summary(pl): Wiązania Ruby/Tk
@@ -94,7 +126,7 @@
Summary: Ruby development libraries
Summary(pl): Biblioteki programistyczne interpretera języka Ruby
Group: Development/Languages
-Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: %{name}-modules = %{epoch}:%{version}-%{release}
%description devel
Ruby development libraries.
@@ -111,9 +143,36 @@
%description static
Ruby static libraries.
-%description devel -l pl
+%description static -l pl
Biblioteki statyczne Ruby.
+%package doc
+Summary: Ruby HTML documentation
+Group: Documentation
+
+%description doc
+Ruby HTML documentation: FAQ, guide, core and standard library.
+
+%package doc-ri
+Summary: Ruby ri documentation
+Group: Documentation
+
+%description doc-ri
+Ruby ri documentation.
+
+%description doc-ri -l pl
+Dokumentacja Ruby w formacie ri.
+
+%package examples
+Summary: Ruby examples
+Group: Development/Languages
+
+%description examples
+Ruby examples.
+
+%description examples -l pl
+Przykłady programów Ruby.
+
%prep
%setup -q -a1 -a2 -a3 -a5 -a6 -a7
%patch0 -p1
@@ -159,7 +218,6 @@
lib/time.rb lib/yaml.rb
mv ruby-doc-stdlib-%{stdlibdoc_version}/stdlib rdoc/stdlib
-
mv ri/1.8/site ri/1.8/system
LD_LIBRARY_PATH=. ./ruby bin/rdoc --ri -o ri/1.8/system \
@@ -181,14 +239,18 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
install %{name}-texi-1.4-en/ruby.info* $RPM_BUILD_ROOT%{_infodir}
install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1
+install %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man1
+install %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man1
+install %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1
+install %{SOURCE12} $RPM_BUILD_ROOT%{_mandir}/man1
mv -f ruby-uguide guide
mv -f rubyfaq faq
-cp -a ri/1.8/system/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -Rf ri/1.8/system/* $RPM_BUILD_ROOT%{ruby_ridir}
install %{SOURCE8} $RPM_BUILD_ROOT%{_libdir}/rpm
@@ -205,11 +267,39 @@
%files
%defattr(644,root,root,755)
-%doc guide faq misc README README.EXT ChangeLog ToDo
-%doc rdoc
-%attr(755,root,root) %{_bindir}/*
+%doc README README.EXT ChangeLog ToDo
+%attr(755,root,root) %{_bindir}/ruby
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
-%dir %{_datadir}/%{name}
+# below - what's for? (empty)
+#%%dir %{_datadir}/%{name}
+%{_mandir}/man1/ruby.1*
+%{_infodir}/*.info*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/%{name}/1.8/*/*.h
+%{_libdir}/rpm/macros.ruby
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
+%files tk
+%defattr(644,root,root,755)
+%{_libdir}/%{name}/1.8/tcltk.rb
+%{_libdir}/%{name}/1.8/tk*.rb
+%{_libdir}/%{name}/1.8/tk
+%{_libdir}/%{name}/1.8/tkextlib
+%attr(755,root,root) %{_libdir}/%{name}/1.8/*-linux*/t*.so
+
+%files modules
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/erb
+%attr(755,root,root) %{_bindir}/irb
+%attr(755,root,root) %{_bindir}/rdoc
+%attr(755,root,root) %{_bindir}/ri
+%attr(755,root,root) %{_bindir}/testrb
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/1.8
%{_libdir}/%{name}/1.8/bigdecimal
@@ -260,28 +350,26 @@
%dir %{_ulibdir}/%{name}/site_ruby
%dir %{_ulibdir}/%{name}/site_ruby/1.8
%dir %{_ulibdir}/%{name}/site_ruby/1.8/*-linux*
-%{_datadir}/ri
-%{_mandir}/*/*
-%{_infodir}/*.info*
-%{_examplesdir}/%{name}-%{version}
+%{_mandir}/man1/erb.1*
+%{_mandir}/man1/irb.1*
+%{_mandir}/man1/rdoc.1*
+%{_mandir}/man1/ri.1*
+%{_mandir}/man1/testrb.1*
+%dir %{_datadir}/ri
+%dir %{_datadir}/ri/1.8
+%dir %{_datadir}/ri/1.8/system
-%files devel
+%files doc
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/%{name}/1.8/*/*.h
-%{_libdir}/rpm/macros.ruby
+%doc faq guide misc rdoc
-%files static
+%files doc-ri
%defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_datadir}/ri/1.8/system/*
-%files tk
+%files examples
%defattr(644,root,root,755)
-%{_libdir}/%{name}/1.8/tcltk.rb
-%{_libdir}/%{name}/1.8/tk*.rb
-%{_libdir}/%{name}/1.8/tk
-%{_libdir}/%{name}/1.8/tkextlib
-%attr(755,root,root) %{_libdir}/%{name}/1.8/*-linux*/t*.so
+%{_examplesdir}/%{name}-%{version}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -289,6 +377,22 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.117 2005/12/26 01:35:10 twittner
+- main change: split ruby main package into separate subpackages:
+ - ruby - contains only ruby shared library and interpreter
+ - ruby-modules - contains ruby boundled libraries and utilities: irb,
+ rdoc, ri. Utilities and their libraries are rather small so it isn't
+ worth to release them into separate subpkg. and for complicating
+ requires - for this reason ri doc empty directories belong to this pkg.
+ - ri docs from ruby extension packages go here.
+ - ruby-doc - contains html documentation: FAQ, Guide, Core and Stdlib
+ - ruby-examples - contains what is in sample directory
+ - ruby-doc-ri - ruby bundled(?) and generated documentation during ruby
+ building in ri format.
+- added manpages from Debian for rdoc(1), ri(1), testrb(1); updated irb(1)
+ with Debian version.
+- rel. 1.1 (please test it and raise objections)
+
Revision 1.116 2005/12/24 23:42:48 aredridel
- up to 1.8.4
- Merry Christmas!
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ruby.spec?r1=1.116&r2=1.117&f=u
More information about the pld-cvs-commit
mailing list