packages: ruby-rails/ruby-rails.spec - rel 1 - added rdoc and ri packages -...

baggins baggins at pld-linux.org
Tue Mar 2 23:49:40 CET 2010


Author: baggins                      Date: Tue Mar  2 22:49:40 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 1
- added rdoc and ri packages
- install to rubylibdir

---- Files affected:
packages/ruby-rails:
   ruby-rails.spec (1.31 -> 1.32) 

---- Diffs:

================================================================
Index: packages/ruby-rails/ruby-rails.spec
diff -u packages/ruby-rails/ruby-rails.spec:1.31 packages/ruby-rails/ruby-rails.spec:1.32
--- packages/ruby-rails/ruby-rails.spec:1.31	Mon Mar  1 21:44:51 2010
+++ packages/ruby-rails/ruby-rails.spec	Tue Mar  2 23:49:34 2010
@@ -3,7 +3,7 @@
 Summary:	Web-application framework with template engine, control-flow layer, and ORM
 Name:		ruby-%{pkgname}
 Version:	2.3.5
-Release:	0.1
+Release:	1
 License:	MIT
 Group:		Development/Languages
 Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
@@ -53,6 +53,30 @@
 
 This package contains railties module.
 
+%package rdoc
+Summary:	HTML documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{pkgname}
+Group:		Documentation
+Requires:	ruby >= 1:1.8.7-4
+
+%description rdoc
+HTML documentation for %{pkgname}.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{pkgname}.
+
+%package ri
+Summary:	ri documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie ri dla %{pkgname}
+Group:		Documentation
+Requires:	ruby
+
+%description ri
+ri documentation for %{pkgname}.
+
+%description ri -l pl.UTF-8
+Dokumentacji w formacie ri dla %{pkgname}.
+
 %prep
 %setup -qcT
 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
@@ -68,15 +92,26 @@
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
+%build
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
+rm -r ri/{\<,ActiveSupport,CGI,CodeStatistics,Dir,DispatchServlet} \
+	ri/{Gem,Object,Plugin,RecursiveHTTPFetcher,RemoteCGI} \
+	ri/{SourceAnnotationExtractor,Tracker}
+rm ri/created.rid
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{pkgname},%{ruby_sitelibdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{pkgname}} \
+	$RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
 
-cp -a lib/* $RPM_BUILD_ROOT%{ruby_sitelibdir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
 cp -a bin builtin configs dispatches doc environments helpers html fresh_rakefile README $RPM_BUILD_ROOT%{_datadir}/%{pkgname}
 install -p bin/rails $RPM_BUILD_ROOT%{_bindir}/rails
 
-cat <<'EOF' > $RPM_BUILD_ROOT%{ruby_sitelibdir}/railties_path.rb
+cat <<'EOF' > $RPM_BUILD_ROOT%{ruby_rubylibdir}/railties_path.rb
 RAILTIES_PATH = "%{_datadir}/%{pkgname}"
 EOF
 
@@ -87,18 +122,30 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
 %{_datadir}/%{pkgname}
-%{ruby_sitelibdir}/commands*
-%{ruby_sitelibdir}/tasks*
-%{ruby_sitelibdir}/console_*.rb
-%{ruby_sitelibdir}/*_server.rb
+%{ruby_rubylibdir}/commands*
+%{ruby_rubylibdir}/tasks/*
+%{ruby_rubylibdir}/console_*.rb
+%{ruby_rubylibdir}/*_server.rb
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+
+%files ri
+%defattr(644,root,root,755)
+%{ruby_ridir}/*Generator
+%{ruby_ridir}/Commands
+%{ruby_ridir}/Listener
+%{ruby_ridir}/Rails*
+%{ruby_ridir}/Repositor*
 
 %files -n ruby-railties
 %defattr(644,root,root,755)
-%{ruby_sitelibdir}/*
-%exclude %{ruby_sitelibdir}/commands*
-%exclude %{ruby_sitelibdir}/tasks*
-%exclude %{ruby_sitelibdir}/console_*.rb
-%exclude %{ruby_sitelibdir}/*_server.rb
+%{ruby_rubylibdir}/*
+%exclude %{ruby_rubylibdir}/commands*
+%exclude %{ruby_rubylibdir}/tasks*
+%exclude %{ruby_rubylibdir}/console_*.rb
+%exclude %{ruby_rubylibdir}/*_server.rb
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -106,6 +153,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.32  2010/03/02 22:49:34  baggins
+- rel 1
+- added rdoc and ri packages
+- install to rubylibdir
+
 Revision 1.31  2010/03/01 20:44:51  baggins
 - updated Reqs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ruby-rails/ruby-rails.spec?r1=1.31&r2=1.32&f=u



More information about the pld-cvs-commit mailing list