Project

General

Profile

« Previous | Next » 

Revision f5bc2cee

Added by Dominic Cleal about 8 years ago

Use gem_install macro

Fixes build errors on F24 where macro has documentation enabled, but
rubygems now has it disabled by default.

Modernises some use of directory macros.

View differences:

rubygem-foremancli/rubygem-foremancli.spec
This package contains documentation for rubygem-%{gem_name}.
%prep
%setup -n %{pkg_name}-%{version} -T -c
%setup -n %{pkg_name}-%{version} -q -c -T
%{?scl:scl enable %{scl} - <<EOF}
%gem_install -n %{SOURCE0}
%{?scl:EOF}
%build
%install
mkdir -p %{gembuilddir}
%{?scl:scl enable %{scl} "}
gem install --local --install-dir %{gembuilddir} --force %{SOURCE0}
%{?scl:"}
mkdir -p %{buildroot}/%{_bindir}
mv %{gembuilddir}/bin/* %{buildroot}/%{_bindir}
rmdir %{gembuilddir}/bin
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{_bindir}
cp -pa .%{_bindir}/* \
%{buildroot}%{_bindir}/
rm -rf %{buildroot}%{gem_instdir}/.yardoc
%files

Also available in: Unified diff