github.com/x-oss-byte/git-lfs@v2.5.2+incompatible/rpm/SPECS/rubygem-rdiscount.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 rdiscount
     4  Name:           rubygem-%{gem_name}
     5  Version:        2.1.8
     6  Release:	1%{?dist}
     7  Summary:        Fast Implementation of Gruber's Markdown in C
     8  
     9  Group:          Applications/Programming
    10  License:        BSD
    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 > 1.9.2
    15  Requires:       ruby > 1.9.2
    16  
    17  %description
    18  Fast Implementation of Gruber's Markdown in C
    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  /usr/local/bin/%{gem_name}
    39  
    40  %changelog
    41  * Wed May 20 2015 Andrew Neff <andyneff@users.noreply.github.com> - 2.1.8
    42  - Initial Spec