|
|
|
@ -4,14 +4,14 @@
|
|
|
|
|
Summary: An elegant, structured XHTML/XML templating engine
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 3.1.7
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT and WTFPL
|
|
|
|
|
URL: http://haml-lang.com/
|
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
Requires: ruby(abi) = 1.9.1
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
# for html2haml
|
|
|
|
|
Requires: rubygem(erubis)
|
|
|
|
|
Requires: rubygem(hpricot)
|
|
|
|
@ -48,21 +48,27 @@ Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c -T
|
|
|
|
|
mkdir -p .%{gem_dir}
|
|
|
|
|
gem install --local --install-dir .%{gem_dir} --force -V --rdoc %{SOURCE0}
|
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
|
|
|
|
|
cp -pa .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
|
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
|
|
|
|
|
rmdir %{buildroot}%{gem_dir}/bin
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
cp -pa .%{_bindir}/* \
|
|
|
|
|
%{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
|
# Test error due to change in newer sass.
|
|
|
|
|
# https://github.com/haml/haml/issues/623
|
|
|
|
|
sed -i "s/fuchsia/magenta/" test/haml/results/filters.xhtml
|
|
|
|
|
testrb -Ilib test/haml/*_test.rb
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
@ -93,6 +99,9 @@ popd
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Mar 12 2013 Vít Ondruch <vondruch@redhat.com> - 3.1.7-3
|
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|