Vít Ondruch 12 years ago
parent 51f10d48b8
commit c4e5aeaa85

@ -4,14 +4,14 @@
Summary: An elegant, structured XHTML/XML templating engine Summary: An elegant, structured XHTML/XML templating engine
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 3.1.7 Version: 3.1.7
Release: 2%{?dist} Release: 3%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT and WTFPL License: MIT and WTFPL
URL: http://haml-lang.com/ URL: http://haml-lang.com/
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(rubygems) Requires: ruby(rubygems)
Requires: ruby(abi) = 1.9.1 Requires: ruby(release)
# for html2haml # for html2haml
Requires: rubygem(erubis) Requires: rubygem(erubis)
Requires: rubygem(hpricot) Requires: rubygem(hpricot)
@ -48,21 +48,27 @@ Documentation for %{name}
%prep %prep
%setup -q -c -T %setup -q -c -T
mkdir -p .%{gem_dir} %gem_install -n %{SOURCE0}
gem install --local --install-dir .%{gem_dir} --force -V --rdoc %{SOURCE0}
%build %build
%install %install
mkdir -p %{buildroot}%{gem_dir} 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} mkdir -p %{buildroot}%{_bindir}
rmdir %{buildroot}%{gem_dir}/bin cp -pa .%{_bindir}/* \
%{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check %check
pushd %{buildroot}%{gem_instdir} 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 testrb -Ilib test/haml/*_test.rb
popd popd
@ -93,6 +99,9 @@ popd
%{gem_instdir}/test %{gem_instdir}/test
%changelog %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 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

Loading…
Cancel
Save