[rubygem-coderay] Move %gem_install into %prep section.
Vít Ondruch
vondruch at fedoraproject.org
Tue Mar 5 12:14:01 UTC 2013
commit 74424d8e54647040a58c55552cddee4e68bee51f
Author: Vít Ondruch <vondruch at redhat.com>
Date: Tue Mar 5 13:13:50 2013 +0100
Move %gem_install into %prep section.
rubygem-coderay.spec | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
---
diff --git a/rubygem-coderay.spec b/rubygem-coderay.spec
index 8182576..80d8aa7 100644
--- a/rubygem-coderay.spec
+++ b/rubygem-coderay.spec
@@ -23,25 +23,27 @@ efficient.
%prep
+%setup -q -c -T
+%gem_install -n %{SOURCE0}
%build
%install
-rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
-%gem_install -n %{SOURCE0}
-mkdir -p %{buildroot}/%{_bindir}
-mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
-rmdir %{buildroot}%{gem_dir}/bin
+cp -pa .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+
+mkdir -p %{buildroot}%{_bindir}
+cp -pa .%{_bindir}/* \
+ %{buildroot}%{_bindir}/
+
rm -rf %{buildroot}/%{gem_libdir}/term
+
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
find %{buildroot}/%{gem_instdir}/bin -type f | xargs sed -i 's/\r//' $FILES
-%clean
-rm -rf %{buildroot}
-
%files
-%defattr(-, root, root, -)
%{_bindir}/coderay
%dir %{gem_instdir}/
%dir %{gem_libdir}
@@ -53,7 +55,7 @@ rm -rf %{buildroot}
%doc %{gem_instdir}/LICENSE
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/README_INDEX.rdoc
-%{gem_cache}
+%exclude %{gem_cache}
%{gem_spec}
More information about the scm-commits
mailing list