|
|
@ -1,37 +1,35 @@
|
|
|
|
# Generated from haml-2.2.14.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
# Generated from haml-2.2.14.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
%global gem_name haml
|
|
|
|
%global gemname haml
|
|
|
|
|
|
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: An elegant, structured XHTML/XML templating engine
|
|
|
|
Summary: An elegant, structured XHTML/XML templating engine
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 3.1.2
|
|
|
|
Version: 3.1.2
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?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/%{gemname}-%{version}.gem
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
|
|
|
|
# interim fix for https://github.com/nex3/haml/issues/403
|
|
|
|
# interim fix for https://github.com/nex3/haml/issues/403
|
|
|
|
Patch0: haml-issue-403-bugfix.patch
|
|
|
|
Patch0: haml-issue-403-bugfix.patch
|
|
|
|
|
|
|
|
|
|
|
|
Requires: rubygems
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
Requires: ruby(abi) = 1.9.1
|
|
|
|
# for html2haml
|
|
|
|
# for html2haml
|
|
|
|
Requires: rubygem(hpricot)
|
|
|
|
Requires: rubygem(hpricot)
|
|
|
|
Requires: rubygem(yard) >= 0.5.3
|
|
|
|
Requires: rubygem(yard) >= 0.5.3
|
|
|
|
Requires: rubygem(maruku) >= 0.5.9
|
|
|
|
Requires: rubygem(maruku) >= 0.5.9
|
|
|
|
Requires: rubygem(sass)
|
|
|
|
Requires: rubygem(sass)
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rubygems
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
|
|
|
BuildRequires: rubygem(rails)
|
|
|
|
BuildRequires: rubygem(rails)
|
|
|
|
BuildRequires: rubygem(hpricot)
|
|
|
|
BuildRequires: rubygem(hpricot)
|
|
|
|
BuildRequires: rubygem(erubis)
|
|
|
|
BuildRequires: rubygem(erubis)
|
|
|
|
BuildRequires: rubygem(ruby_parser)
|
|
|
|
BuildRequires: rubygem(ruby_parser)
|
|
|
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML
|
|
|
|
Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML
|
|
|
@ -44,17 +42,17 @@ function as a stand-alone templating engine.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%setup -q -c -T
|
|
|
|
%{__mkdir_p} .%{gemdir}
|
|
|
|
%{__mkdir_p} .%{gem_dir}
|
|
|
|
gem install --local --install-dir .%{gemdir} --force -V --rdoc %{SOURCE0}
|
|
|
|
gem install --local --install-dir .%{gem_dir} --force -V --rdoc %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
|
|
pushd .%{geminstdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
%patch0
|
|
|
|
%patch0
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd %{buildroot}%{geminstdir}
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
# The following -path list is from Rakefile
|
|
|
|
# The following -path list is from Rakefile
|
|
|
|
find * \
|
|
|
|
find * \
|
|
|
|
-path 'test/*/*_test.rb' \
|
|
|
|
-path 'test/*/*_test.rb' \
|
|
|
@ -63,66 +61,69 @@ find * \
|
|
|
|
-not -path 'test/haml/spec/*' | \
|
|
|
|
-not -path 'test/haml/spec/*' | \
|
|
|
|
while read f
|
|
|
|
while read f
|
|
|
|
do
|
|
|
|
do
|
|
|
|
ruby $f
|
|
|
|
ruby -I. $f
|
|
|
|
done
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
mv .%{gemdir}/* %{buildroot}%{gemdir}
|
|
|
|
mv .%{gem_dir}/* %{buildroot}%{gem_dir}
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
|
|
|
|
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
|
|
|
|
rmdir %{buildroot}%{gemdir}/bin
|
|
|
|
rmdir %{buildroot}%{gem_dir}/bin
|
|
|
|
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
|
|
|
|
|
|
|
rm %{buildroot}%{geminstdir}/.yardopts
|
|
|
|
rm %{buildroot}%{gem_instdir}/.yardopts
|
|
|
|
|
|
|
|
|
|
|
|
# Fix anything executable that does not have a shebang
|
|
|
|
# Fix anything executable that does not have a shebang
|
|
|
|
for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
|
|
|
|
for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
|
|
|
|
[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
|
|
|
|
[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Find files with a shebang that do not have executable permissions
|
|
|
|
# Find files with a shebang that do not have executable permissions
|
|
|
|
for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
|
|
|
|
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
|
|
|
|
[ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Find files that have non-standard-executable-perm
|
|
|
|
# Find files that have non-standard-executable-perm
|
|
|
|
find %{buildroot}/%{geminstdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
|
|
|
|
find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
|
|
|
|
|
|
|
|
|
|
|
|
# Find files that are not readable
|
|
|
|
# Find files that are not readable
|
|
|
|
find %{buildroot}/%{geminstdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
|
|
|
|
find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
|
|
|
|
|
|
|
|
|
|
|
|
# Don't search env - use the expected ruby
|
|
|
|
# Don't search env - use the expected ruby
|
|
|
|
find %{buildroot}%{geminstdir}/bin -type f | \
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | \
|
|
|
|
xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"'
|
|
|
|
xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"'
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%{_bindir}/haml
|
|
|
|
%{_bindir}/haml
|
|
|
|
%{_bindir}/html2haml
|
|
|
|
%{_bindir}/html2haml
|
|
|
|
%dir %{geminstdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{geminstdir}/Rakefile
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{geminstdir}/bin
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
%{geminstdir}/extra
|
|
|
|
%{gem_instdir}/extra
|
|
|
|
%{geminstdir}/init.rb
|
|
|
|
%{gem_instdir}/init.rb
|
|
|
|
%{geminstdir}/lib
|
|
|
|
%{gem_libdir}
|
|
|
|
%{geminstdir}/rails
|
|
|
|
%{gem_instdir}/rails
|
|
|
|
%{geminstdir}/test
|
|
|
|
%{gem_instdir}/test
|
|
|
|
%{geminstdir}/VERSION
|
|
|
|
%{gem_instdir}/VERSION
|
|
|
|
%{geminstdir}/VERSION_NAME
|
|
|
|
%{gem_instdir}/VERSION_NAME
|
|
|
|
# No vendored libraries thanks
|
|
|
|
# No vendored libraries thanks
|
|
|
|
%exclude %{geminstdir}/vendor
|
|
|
|
%exclude %{gem_instdir}/vendor
|
|
|
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{geminstdir}/MIT-LICENSE
|
|
|
|
%doc %{gem_instdir}/MIT-LICENSE
|
|
|
|
%doc %{geminstdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{geminstdir}/REVISION
|
|
|
|
%doc %{gem_instdir}/REVISION
|
|
|
|
%doc %{geminstdir}/CONTRIBUTING
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTING
|
|
|
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
%{gem_cache}
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.1.2-5
|
|
|
|
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-4
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
@ -171,7 +172,7 @@ find %{buildroot}%{geminstdir}/bin -type f | \
|
|
|
|
- change %%define to %%global
|
|
|
|
- change %%define to %%global
|
|
|
|
- change license to "MIT and WTFPL" (test/haml/spec/README.md)
|
|
|
|
- change license to "MIT and WTFPL" (test/haml/spec/README.md)
|
|
|
|
- add Requires on hpricot for html2haml
|
|
|
|
- add Requires on hpricot for html2haml
|
|
|
|
- change %%gemdir to %%geminstdir where appropriate
|
|
|
|
- change %%gem_dir to %%gem_instdir where appropriate
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Dec 02 2009 Michal Babej <mbabej@redhat.com> - 2.2.15-1
|
|
|
|
* Wed Dec 02 2009 Michal Babej <mbabej@redhat.com> - 2.2.15-1
|
|
|
|
- Update to new upstream release
|
|
|
|
- Update to new upstream release
|
|
|
|