github.com/x-oss-byte/git-lfs@v2.5.2+incompatible/rpm/SPECS/rubygem-hpricot.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 hpricot
     4  Name:           rubygem-%{gem_name}
     5  Version:        0.8.6
     6  Release:	1%{?dist}
     7  Summary:        a swift, liberal HTML parser with a fantastic library
     8  
     9  Group:          Applications/Programming
    10  License:        N/A
    11  URL:		https://rubygems.org/gems/%{gem_name}
    12  Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
    13  BuildRoot:      %(echo %{_topdir}/BUILDROOT/%{gem_name}-%{version})
    14  BuildRequires:	gem
    15  Requires:       ruby
    16  
    17  %description
    18  a swift, liberal HTML parser with a fantastic library
    19  
    20  %prep
    21  %setup -q -c -T
    22  gem install -V --local --force --install-dir ./%{gemdir} %{SOURCE0}
    23  #mv ./%{gemdir}/bin ./usr/local
    24  
    25  %build
    26  
    27  %install
    28  [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
    29  mkdir -p ${RPM_BUILD_ROOT}
    30  cp -a ./usr ${RPM_BUILD_ROOT}/usr
    31  
    32  %clean
    33  rm -rf %{buildroot}
    34  
    35  %files
    36  %defattr(-,root,root,-)
    37  %{gemdir}
    38  
    39  %changelog
    40  * Wed May 20 2015 Andrew Neff <andyneff@users.noreply.github.com> - 2.1.8
    41  - Initial Spec