File rubygem-haml_lint.spec of Package rubygem-haml_lint

# Generated from haml_lint-0.27.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name haml_lint

Name: rubygem-%{gem_name}
Version: 0.37.1
Release: 1%{?dist}
Summary: HAML lint tool
License: MIT
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 2.1.0
BuildArch: noarch

Configurable tool for writing clean and consistent HAML.

%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

gem unpack %{SOURCE0}

%setup -q -D -T -n  %{gem_name}-%{version}

gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec

# Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \

mkdir -p %{buildroot}%{_bindir}
cp -pa .%{_bindir}/* \

find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x

pushd .%{gem_instdir}
# Run the test suite.

%dir %{gem_instdir}
%exclude %{gem_cache}

%files doc
%doc %{gem_docdir}