|
|
|
@ -2,14 +2,14 @@
|
|
|
|
|
%global gem_name haml
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 5.0.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 5.0.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: An elegant, structured (X)HTML/XML templating engine
|
|
|
|
|
License: MIT and WTFPL
|
|
|
|
|
URL: http://haml.info/
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
# git clone https://github.com/haml/haml.git && cd haml
|
|
|
|
|
# git checkout v5.0.1 && tar czvf haml-5.0.1-tests.tgz test/
|
|
|
|
|
# git checkout v5.0.4 && tar czvf haml-5.0.4-tests.tgz test/
|
|
|
|
|
Source1: %{gem_name}-%{version}-tests.tgz
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
@ -38,14 +38,10 @@ BuildArch: noarch
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
|
|
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
@ -63,11 +59,11 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
# Move test into the place.
|
|
|
|
|
tar xzvf %{SOURCE1}
|
|
|
|
|
# Link test suite into the place.
|
|
|
|
|
ln -s %{_builddir}/test test
|
|
|
|
|
|
|
|
|
|
# Get rid of Bundler.
|
|
|
|
|
sed -i '/bundler/ s/^/#/' test/test_helper.rb
|
|
|
|
|
sed -i '/[bB]undler/ s/^/#/' test/test_helper.rb
|
|
|
|
|
|
|
|
|
|
# options_test.rb must be executed in isolation in order to prevent load
|
|
|
|
|
# order issues.
|
|
|
|
@ -82,8 +78,8 @@ popd
|
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
|
%license %{gem_instdir}/MIT-LICENSE
|
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
|
%exclude %{gem_instdir}/haml.gemspec
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_libdir}/haml/.gitattributes
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
@ -97,10 +93,14 @@ popd
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%doc %{gem_instdir}/TODO
|
|
|
|
|
%{gem_instdir}/benchmark.rb
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
%{gem_instdir}/haml.gemspec
|
|
|
|
|
%{gem_instdir}/yard
|
|
|
|
|
%exclude %{gem_instdir}/yard/default/.gitignore
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed May 23 2018 Vít Ondruch <vondruch@redhat.com> - 5.0.4-1
|
|
|
|
|
- Update to Haml 5.0.4.
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|