[rubygem-haml] Updated to Haml 3.1.6.

Bohuslav Kabrda bkabrda at fedoraproject.org
Fri Jul 27 12:46:01 UTC 2012


commit 715e51428ae34268e7418bff9d67a7e51a8c63c4
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Jul 27 14:45:43 2012 +0200

    Updated to Haml 3.1.6.
    
    - Removed patch that is included in this upstream release.
    - Introduced -doc subpackage.
    - Simplified the test running.
    - Adjusted Requires accordingly.

 .gitignore                  |    1 +
 haml-issue-403-bugfix.patch |   45 -------------------
 rubygem-haml.spec           |  101 +++++++++++++++++--------------------------
 sources                     |    2 +-
 4 files changed, 42 insertions(+), 107 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 54a9c34..0e4ec03 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ haml-2.2.24.gem
 haml-3.0.17.gem
 /haml-3.0.25.gem
 /haml-3.1.2.gem
+/haml-3.1.6.gem
diff --git a/rubygem-haml.spec b/rubygem-haml.spec
index 449bbd6..aa9a08c 100644
--- a/rubygem-haml.spec
+++ b/rubygem-haml.spec
@@ -3,30 +3,28 @@
 
 Summary: An elegant, structured XHTML/XML templating engine
 Name: rubygem-%{gem_name}
-Version: 3.1.2
-Release: 6%{?dist}
+Version: 3.1.6
+Release: 1%{?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(erubis)
 Requires: rubygem(hpricot)
-Requires: rubygem(yard) >= 0.5.3
-Requires: rubygem(maruku) >= 0.5.9
+Requires: rubygem(ruby_parser)
 Requires: rubygem(sass)
 
 BuildRequires: rubygems-devel
-BuildRequires: rubygem(rails)
-BuildRequires: rubygem(hpricot)
 BuildRequires: rubygem(erubis)
-BuildRequires: rubygem(ruby_parser)
+BuildRequires: rubygem(hpricot)
 BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(rails)
+BuildRequires: rubygem(ruby_parser)
+BuildRequires: rubygem(sass)
 
 BuildArch: noarch
 Provides: rubygem(%{gem_name}) = %{version}
@@ -39,88 +37,69 @@ 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}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
 
 %prep
 %setup -q -c -T
-%{__mkdir_p} .%{gem_dir}
+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}
+cp -a .%{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"'
+%check
+pushd %{buildroot}%{gem_instdir}
+ruby -I. -e "Dir.glob('test/**/*_test.rb').each {|t| require t}"
+popd
 
 %files
 %{_bindir}/haml
 %{_bindir}/html2haml
 %dir %{gem_instdir}
-%{gem_instdir}/Rakefile
+%{gem_libdir}
 %{gem_instdir}/bin
-%{gem_instdir}/extra
 %{gem_instdir}/init.rb
-%{gem_libdir}
 %{gem_instdir}/rails
-%{gem_instdir}/test
+%{gem_instdir}/REVISION
 %{gem_instdir}/VERSION
 %{gem_instdir}/VERSION_NAME
+%exclude %{gem_instdir}/.*
 # 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}
+%exclude %{gem_cache}
 %{gem_spec}
 
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/CONTRIBUTING
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/extra
+%{gem_instdir}/Rakefile
+%{gem_instdir}/test
 
 %changelog
+* Fri Jul 27 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 3.1.6-1
+- Updated to Haml 3.1.6.
+- Removed patch that is included in this upstream release.
+- Introduced -doc subpackage.
+- Simplified the test running.
+- Adjusted Requires accordingly.
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.2-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
diff --git a/sources b/sources
index e6fcf68..1232e99 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f702720d62ec4138827abb1533f885ba  haml-3.1.2.gem
+c73b2755a56cf5461f6a5e430052f436  haml-3.1.6.gem


More information about the scm-commits mailing list