github.com/x-oss-byte/git-lfs@v2.5.2+incompatible/rpm/SPECS/rubygem-mustache.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 mustache
     4  
     5  Name:           rubygem-%{gem_name}
     6  Version:        1.0.1
     7  Release:	1%{?dist}
     8  Summary:        A framework-agnostic way to render logic-free views
     9  
    10  Group:          Applications/Programming
    11  License:        MIT
    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 > 2.0
    16  Requires:       ruby > 2.0
    17  BuildArch:      noarch
    18  
    19  %description
    20  Inspired by ctemplate, Mustache is a framework-agnostic way to render logic-free views. As ctemplates says, "It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. Think of Mustache as a replacement for your views. Instead of views consisting of ERB or HAML with random helpers and arbitrary logic, your views are broken into two parts: a Ruby class and an HTML template.
    21  
    22  %prep
    23  %setup -q -c -T
    24  gem install -V --local --force --install-dir ./%{gemdir} %{SOURCE0}
    25  mv ./%{gemdir}/bin ./usr/local
    26  
    27  %build
    28  
    29  %install
    30  [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
    31  mkdir -p ${RPM_BUILD_ROOT}
    32  cp -a ./usr ${RPM_BUILD_ROOT}/usr
    33  
    34  %clean
    35  rm -rf %{buildroot}
    36  
    37  %files
    38  %defattr(-,root,root,-)
    39  %{gemdir}
    40  /usr/local/bin/%{gem_name}
    41  
    42  %changelog
    43  * Wed May 20 2015 Andrew Neff <andyneff@users.noreply.github.com> - 2.1.8
    44  - Initial Spec