# Generated from haml-5.1.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name haml Name: rubygem-%{gem_name} Version: 5.1.1 Release: 1%{?dist} Summary: An elegant, structured (X)HTML/XML templating engine License: MIT URL: http://haml.info/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0.0 # BuildRequires: rubygem(rails) >= 4.0.0 # BuildRequires: rubygem(rbench) # BuildRequires: rubygem(minitest) >= 4.0 # BuildRequires: rubygem(nokogiri) BuildArch: noarch %description Haml (HTML Abstraction Markup Language) is a layer on top of HTML or XML that's designed to express the structure of documents in a non-repetitive, elegant, and easy way by using indentation rather than closing tags and allowing Ruby to be embedded with ease. It was originally envisioned as a plugin for Ruby on Rails, but it can function as a stand-alone templating engine. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # 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 %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %{_bindir}/haml %exclude %{gem_instdir}/.gitignore %{gem_instdir}/.gitmodules %exclude %{gem_instdir}/.travis.yml %exclude %{gem_instdir}/.yardopts %{gem_instdir}/FAQ.md %license %{gem_instdir}/MIT-LICENSE %{gem_instdir}/REFERENCE.md %{gem_instdir}/TODO %{gem_instdir}/benchmark.rb %{gem_instdir}/bin %exclude %{gem_instdir}/haml.gemspec %{gem_libdir} %{gem_instdir}/yard %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %changelog * Sat May 25 2019 mockbuilder - 5.1.1-1 - Initial package