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}