Project

General

Profile

« Previous | Next » 

Revision 35e40bba

Added by Dominic Cleal over 8 years ago

Fix build errors and modernise specs

Mostly importing latest changes from Fedora and using gem_install macro
to ensure specs build using standard settings under newer Ruby packages.

View differences:

rubygem-rest-client/rest-client.spec
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
%if 0%{?el6} && 0%{!?scl:1}
%{?scl:scl enable %{scl} "}
gem install --local --install-dir %{buildroot}%{gem_dir} \
--force --rdoc %{SOURCE0}
gem install --local --install-dir .%{gem_dir} \
--force --rdoc --bindir .%{_bindir} %{SOURCE0}
%{?scl:"}
%else
%{?scl:scl enable %{scl} - <<EOF}
%gem_install -n %{SOURCE0}
%{?scl:EOF}
%endif
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
%{buildroot}%{_bindir}/
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gem_dir}/bin
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%clean

Also available in: Unified diff