SPECS: ruby-Nitro.spec - unified examplesdir, missing defattr

glen glen at pld-linux.org
Mon Jan 30 07:59:09 CET 2006


Author: glen                         Date: Mon Jan 30 06:59:09 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unified examplesdir, missing defattr

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

---- Diffs:

================================================================
Index: SPECS/ruby-Nitro.spec
diff -u SPECS/ruby-Nitro.spec:1.19 SPECS/ruby-Nitro.spec:1.20
--- SPECS/ruby-Nitro.spec:1.19	Mon Jan 30 05:49:34 2006
+++ SPECS/ruby-Nitro.spec	Mon Jan 30 07:59:03 2006
@@ -43,12 +43,12 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{_datadir}/%{name},%{_examplesdir}/%{name}}
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{_datadir}/%{name},%{_examplesdir}/%{name}-%{version}}
 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}
+cp -a examples-%{version}/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -60,6 +60,7 @@
 %{_datadir}/%{name}
 
 %files examples
+%defattr(644,root,root,755)
 %{_examplesdir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -68,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20  2006/01/30 06:59:03  glen
+- unified examplesdir, missing defattr
+
 Revision 1.19  2006/01/30 04:49:34  aredridel
 - add examples
 
@@ -78,12 +82,12 @@
 - up to 0.27.0
 
 Revision 1.16  2005/12/31 10:36:33  twittner
-- change %%ruby_mod_ver_requires_eq to %%{?ruby_mod_ver_requires_eq} -
+- change %ruby_mod_ver_requires_eq to %{?ruby_mod_ver_requires_eq} -
   expand this macro only if defined to avoid parse error when appropriate
   BRs is not installed yet (solution provided by glen)
 
 Revision 1.15  2005/12/29 16:59:48  twittner
-- replace R: ruby-modules with %%ruby_mod_ver_requires_eq macro
+- replace R: ruby-modules with %ruby_mod_ver_requires_eq macro
   defined as `Requires: ruby-modules(ver) = 1.8' where `1.8' is
   major ruby version taken from rbconfig
 - add BR: rpmbuild(macros) >= 1.277 with aforementioned macros
================================================================

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



More information about the pld-cvs-commit mailing list