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-hirb/rubygem-hirb.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}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}

Also available in: Unified diff