git-lfs/rpm/SPECS/rubygem-hpricot.spec
Andy Neff 4a71627779 RPMs for Centos 5/6/7
Currently uses the the internal golang linker, so
git-lfs has no build-id. The debug pacakges will
not work out of the box until this is fixed.
2015-05-28 23:34:18 -04:00

42 lines
1.1 KiB
RPMSpec

#global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemdir %(IFS=: R=($(gem env gempath)); echo ${R[${#R[@]}-1]})
%define gem_name hpricot
Name: rubygem-%{gem_name}
Version: 0.8.6
Release: 1%{?dist}
Summary: a swift, liberal HTML parser with a fantastic library
Group: Applications/Programming
License: N/A
URL: https://rubygems.org/gems/%{gem_name}
Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRoot: %(echo %{_topdir}/BUILDROOT/%{gem_name}-%{version})
BuildRequires: gem
Requires: ruby
%description
a swift, liberal HTML parser with a fantastic library
%prep
%setup -q -c -T
gem install -V --local --force --install-dir ./%{gemdir} %{SOURCE0}
#mv ./%{gemdir}/bin ./usr/local
%build
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}
cp -a ./usr ${RPM_BUILD_ROOT}/usr
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{gemdir}
%changelog
* Wed May 20 2015 Andrew Neff <andyneff@users.noreply.github.com> - 2.1.8
- Initial Spec