%global debug_package %{nil} %global gemdir %(IFS=: R=($(gem env gempath)); echo ${R[${#R[@]}-1]}) %define gem_name zip Name: rubygem-zip Version: 2.0.2 Release: 3%{?dist} Summary: Ruby library for reading and writing Zip files Group: Applications/Programming License: BSD URL: https://rubygems.org/gems/%{gem_name} Source0: https://rubygems.org/downloads/zip-%{version}.gem %define sha1 zip=6fabc32da123f7013b2db804273df428a50bc6a4 BuildRequires: ruby Requires: ruby %description Ruby library for reading and writing Zip files %prep %setup -q -c -T %build %install gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0} %check pushd /usr/src/photon/BUILDROOT/rubygem-zip-%{version}-%{release}.x86_64/usr/lib/ruby/gems/2.3.0/gems/zip-%{version}/ gem install jeweler rake test popd %files %defattr(-,root,root,-) %{gemdir} %changelog * Wed Oct 05 2016 ChangLee <changlee@vmware.com> 2.0.2-3 - Modified %check * Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.0.2-2 - GA - Bump release of all rpms * Wed Nov 11 2015 Anish Swaminathan <anishs@vmware.com> 2.0.2-1 - Initial build