[packages/ruby] fix version in examples package (version macro comes from last package (json))

glen glen at pld-linux.org
Wed Mar 19 17:25:39 CET 2014


commit 8f46e138ae2a74e5e9e3b42fc10cb8c31c15770a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 19 18:22:09 2014 +0200

    fix version in examples package (version macro comes from last package (json))

 ruby.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index 5da5092..764e058 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -490,7 +490,7 @@ install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{_examplesdir}/%{oname}-%{version}}
 %{__make} install %{?with_doc:install-doc} \
 	DESTDIR=$RPM_BUILD_ROOT
 
-cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{version}
+cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{basever}.%{patchlevel}
 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/rdoc%{ruby_suffix}.1
 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/testrb%{ruby_suffix}.1
 
@@ -724,4 +724,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files examples
 %defattr(644,root,root,755)
-%{_examplesdir}/%{oname}-%{version}
+%{_examplesdir}/%{oname}-*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby.git/commitdiff/8f46e138ae2a74e5e9e3b42fc10cb8c31c15770a



More information about the pld-cvs-commit mailing list