[rubygem-hoe] ... and same for hoe

Mamoru Tasaka mtasaka at fedoraproject.org
Tue Mar 5 08:40:17 UTC 2013


commit dbf57f6556a8a6b5ac48149ba27e5aa3049b41b8
Author: TASAKA Mamoru <mtasaka at localhost.localdomain>
Date:   Tue Mar 5 17:40:05 2013 +0900

    ... and same for hoe

 rubygem-hoe.spec |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/rubygem-hoe.spec b/rubygem-hoe.spec
index 7d257ff..9270a65 100644
--- a/rubygem-hoe.spec
+++ b/rubygem-hoe.spec
@@ -114,15 +114,13 @@ popd
 
 %install
 mkdir -p %{buildroot}%{gemdir}
-cp -a .%{gemdir}/* \
-	%{buildroot}%{gemdir}/
+cp -a .%{_prefix}/* \
+	%{buildroot}%{_prefix}/
 
 chmod 0644 %{buildroot}%{gemdir}/cache/*gem
 
-mkdir -p %{buildroot}/%{_bindir}
-mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
-rmdir %{buildroot}/%{gemdir}/bin
 find %{buildroot}/%{geminstdir}/bin -type f | xargs chmod 0755
+find %{buildroot}/%{_bindir} -type f | xargs chmod 0755
 
 chmod 0755 %{buildroot}/%{geminstdir}/template/bin/file_name.erb
 # Don't remove template files


More information about the scm-commits mailing list