SPECS: ruby-Nitro.spec - add examples

aredridel aredridel at pld-linux.org
Mon Jan 30 05:49:40 CET 2006


Author: aredridel                    Date: Mon Jan 30 04:49:40 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add examples

---- Files affected:
SPECS:
   ruby-Nitro.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/ruby-Nitro.spec
diff -u SPECS/ruby-Nitro.spec:1.18 SPECS/ruby-Nitro.spec:1.19
--- SPECS/ruby-Nitro.spec:1.18	Tue Jan 24 12:10:09 2006
+++ SPECS/ruby-Nitro.spec	Mon Jan 30 05:49:34 2006
@@ -9,6 +9,8 @@
 Group:		Development/Languages
 Source0:	http://rubyforge.org/download.php/8081/%{tarname}-%{version}.tgz
 # Source0-md5:	2a69ca49a776d066c377136e380312f2
+Source1:	http://rubyforge.org/download.php/8092/examples-%{version}.tgz
+# Source1-md5:	9593a995f5e53e19b2f0d7c8fe91e8c2
 URL:		http://rubyforge.org/projects/nitro/
 BuildRequires:	rpmbuild(macros) >= 1.277
 BuildRequires:	ruby-modules
@@ -25,8 +27,15 @@
 Nitro to szkielet do tworzenia WWW podobny do Java Struts, z
 narzędziami do renderowania, stronami serwerowymi XHTML itd.
 
+%package examples
+Summary:	examples of Nitro's use
+Group:		Development/Languages
+
+%description examples
+examples of Nitro's use
+
 %prep
-%setup -q -n %{tarname}-%{version}
+%setup -q -n %{tarname}-%{version} -a1
 
 %build
 rdoc --ri --op ri lib
@@ -34,11 +43,12 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{_datadir}/%{name}}
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{_datadir}/%{name},%{_examplesdir}/%{name}}
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
 cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
 cp -a src/part $RPM_BUILD_ROOT%{ruby_rubylibdir}
 cp -a proto $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -a examples-%{version}/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -49,12 +59,18 @@
 %{ruby_rubylibdir}/*
 %{_datadir}/%{name}
 
+%files examples
+%{_examplesdir}/*
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2006/01/30 04:49:34  aredridel
+- add examples
+
 Revision 1.18  2006/01/24 11:10:09  qboosh
 - FHS patch doesn't exist in CVS
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ruby-Nitro.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list