# Generated from haml-2.2.14.gem by gem2rpm -*- rpm-spec -*- %global gem_name haml Summary: An elegant, structured XHTML/XML templating engine Name: rubygem-%{gem_name} Version: 3.1.2 Release: 6%{?dist} Group: Development/Languages License: MIT and WTFPL URL: http://haml-lang.com/ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # interim fix for https://github.com/nex3/haml/issues/403 Patch0: haml-issue-403-bugfix.patch Requires: ruby(rubygems) Requires: ruby(abi) = 1.9.1 # for html2haml Requires: rubygem(hpricot) Requires: rubygem(yard) >= 0.5.3 Requires: rubygem(maruku) >= 0.5.9 Requires: rubygem(sass) BuildRequires: rubygems-devel BuildRequires: rubygem(rails) BuildRequires: rubygem(hpricot) BuildRequires: rubygem(erubis) BuildRequires: rubygem(ruby_parser) BuildRequires: rubygem(minitest) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML that's designed to express the structure of XHTML or XML documents in a non-repetitive, elegant, easy way, 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. %prep %setup -q -c -T %{__mkdir_p} .%{gem_dir} gem install --local --install-dir .%{gem_dir} --force -V --rdoc %{SOURCE0} pushd .%{gem_instdir} %patch0 popd %build %check pushd %{buildroot}%{gem_instdir} # The following -path list is from Rakefile find * \ -path 'test/*/*_test.rb' \ -not -path 'test/rails/*' \ -not -path 'test/plugins/*' \ -not -path 'test/haml/spec/*' | \ while read f do ruby -I. $f done popd %install mkdir -p %{buildroot}%{gem_dir} mv .%{gem_dir}/* %{buildroot}%{gem_dir} mkdir -p %{buildroot}/%{_bindir} mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir} rmdir %{buildroot}%{gem_dir}/bin find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x rm %{buildroot}%{gem_instdir}/.yardopts # Fix anything executable that does not have a shebang for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file done # Find files with a shebang that do not have executable permissions for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file done # Find files that have non-standard-executable-perm find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \; # Find files that are not readable find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \; # Don't search env - use the expected ruby find %{buildroot}%{gem_instdir}/bin -type f | \ xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"' %files %{_bindir}/haml %{_bindir}/html2haml %dir %{gem_instdir} %{gem_instdir}/Rakefile %{gem_instdir}/bin %{gem_instdir}/extra %{gem_instdir}/init.rb %{gem_libdir} %{gem_instdir}/rails %{gem_instdir}/test %{gem_instdir}/VERSION %{gem_instdir}/VERSION_NAME # No vendored libraries thanks %exclude %{gem_instdir}/vendor %doc %{gem_docdir} %doc %{gem_instdir}/MIT-LICENSE %doc %{gem_instdir}/README.md %doc %{gem_instdir}/REVISION %doc %{gem_instdir}/CONTRIBUTING %{gem_cache} %{gem_spec} %changelog * Sat Jul 21 2012 Fedora Release Engineering - 3.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Feb 01 2012 Bohuslav Kabrda - 3.1.2-5 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 3.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 20 2011 Mo Morsi - 3.1.2-3 - remove fssm dependency as upstream project no longer bundles it (sass, which is vendored by haml upstream, still depends on it) * Fri Jul 22 2011 Chris Lalancette - 3.1.2-2 - Fix up the sass includes * Mon Jul 11 2011 Mo Morsi - 3.1.2-1 - updated to latest upstream release * Tue Mar 29 2011 Mo Morsi - 3.0.25-1 - updated to latest upstream release * Wed Feb 09 2011 Fedora Release Engineering - 3.0.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Aug 26 2010 Matthew Kent - 3.0.17-1 - New upstream version. - Include VERSION and VERSION_NAME in main package (#627454). - Exclude vendored copy of fssm. * Thu Aug 12 2010 Matthew Kent - 3.0.15-2 - New BR on rubygem-erubis and ruby_parser. * Wed Jul 28 2010 Matthew Kent - 3.0.15-1 - New upstream version. - New dependencies on yard/maruku. * Tue May 4 2010 Matthew Kent - 2.2.24-1 - New upstream version - minor bugfixes and improvements. - Drop unused sitelib macro. - No backup files to cleanup now. * Mon Jan 04 2010 Michal Babej - 2.2.20-1 - update to new upstream release * Mon Jan 04 2010 Michal Babej - 2.2.16-1 - update to new upstream release - get rid of test_files macro - add shebang/permission handling from Jeroen van Meeuwen * Fri Dec 04 2009 Michal Babej - 2.2.15-2 - change %%define to %%global - change license to "MIT and WTFPL" (test/haml/spec/README.md) - add Requires on hpricot for html2haml - change %%gem_dir to %%gem_instdir where appropriate * Wed Dec 02 2009 Michal Babej - 2.2.15-1 - Update to new upstream release - URL changed by upstream * Wed Dec 02 2009 Michal Babej - 2.2.14-1 - Initial package