github.com/x-oss-byte/git-lfs@v2.5.2+incompatible/rpm/SPECS/rubygem-ronn.spec (about) 1 #global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) 2 %global gemdir %(IFS=: R=($(gem env gempath)); echo ${R[${#R[@]}-1]}) 3 %define gem_name ronn 4 5 Name: rubygem-%{gem_name} 6 Version: 0.7.3 7 Release: 1%{?dist} 8 Summary: Builds manuals 9 10 Group: Applications/Programming 11 License: N/A 12 URL: https://rubygems.org/gems/%{gem_name} 13 Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem 14 BuildRoot: %(echo %{_topdir}/BUILDROOT/%{gem_name}-%{version}) 15 BuildRequires: gem 16 Requires: ruby 17 Requires: rubygem-hpricot >= 0.8.2 18 Requires: rubygem-mustache >= 0.7.0 19 Requires: rubygem-rdiscount >= 1.5.8 20 BuildArch: noarch 21 22 %description 23 Builds Manuals 24 25 %prep 26 %setup -q -c -T 27 gem install -V --local --force --install-dir ./%{gemdir} %{SOURCE0} 28 mv ./%{gemdir}/bin ./usr/local 29 30 %build 31 32 %install 33 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 34 mkdir -p ${RPM_BUILD_ROOT} 35 cp -a ./usr ${RPM_BUILD_ROOT}/usr 36 37 %clean 38 rm -rf %{buildroot} 39 40 %files 41 %defattr(-,root,root,-) 42 %{gemdir} 43 /usr/local/bin/%{gem_name} 44 45 %changelog 46 * Wed May 20 2015 Andrew Neff <andyneff@users.noreply.github.com> - 2.1.8 47 - Initial Spec