diff --git a/.cvsignore b/.cvsignore index e69de29..b75b685 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +haml-2.2.20.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..fb1057d --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-haml-2_2_20-1_magoazul:HEAD:rubygem-haml-2.2.20-1.magoazul.src.rpm:1269726455 diff --git a/rubygem-haml.spec b/rubygem-haml.spec new file mode 100644 index 0000000..834d6c7 --- /dev/null +++ b/rubygem-haml.spec @@ -0,0 +1,137 @@ +# Generated from haml-2.2.14.gem by gem2rpm -*- rpm-spec -*- +%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname haml +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} + +Summary: An elegant, structured XHTML/XML templating engine +Name: rubygem-%{gemname} +Version: 2.2.20 +Release: 1%{?dist} +Group: Development/Languages +License: MIT and WTFPL +URL: http://haml-lang.com/ +Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires: rubygems +Requires: ruby(abi) = 1.8 +# for html2haml +Requires: rubygem(hpricot) + +BuildRequires: rubygems +BuildRequires: ruby +BuildRequires: rubygem(rails) +BuildRequires: rubygem(hpricot) + +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML +that's designed to express the structure of XHTML or XML documents in a +non-repetitive, elegant, easy way, using indentation rather than closing +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. + + +%prep + +%build + +%check +pushd %{buildroot}%{geminstdir} +# 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 $f +done +popd + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gemdir} +gem install --local --install-dir %{buildroot}%{gemdir} \ + --force --rdoc %{SOURCE0} +mkdir -p %{buildroot}/%{_bindir} +mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} +rmdir %{buildroot}%{gemdir}/bin +find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x + +rm %{buildroot}%{geminstdir}/.yardopts + +# Remove backup files +find %{buildroot}/%{geminstdir} -type f -name "*~" -delete + +# Fix anything executable that does not have a shebang +for file in `find %{buildroot}/%{geminstdir} -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}/%{geminstdir} -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}/%{geminstdir} -type f -perm /g+wx -exec chmod -v g-w {} \; + +# Find files that are not readable +find %{buildroot}/%{geminstdir} -type f ! -perm /go+r -exec chmod -v go+r {} \; + + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%{_bindir}/haml +%{_bindir}/html2haml +%{_bindir}/sass +%{_bindir}/css2sass +%dir %{geminstdir} +%{geminstdir}/Rakefile +%{geminstdir}/bin +%{geminstdir}/extra +%{geminstdir}/init.rb +%{geminstdir}/lib +%{geminstdir}/rails +%{geminstdir}/test +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/VERSION +%doc %{geminstdir}/MIT-LICENSE +%doc %{geminstdir}/README.md +%doc %{geminstdir}/VERSION_NAME +%doc %{geminstdir}/REVISION +%doc %{geminstdir}/CONTRIBUTING +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + + +%changelog +* Mon Jan 04 2010 Michal Babej - 2.2.20-1 +- update to new upstream release + +* Mon Jan 04 2010 Michal Babej - 2.2.16-1 +- update to new upstream release +- get rid of test_files macro +- add shebang/permission handling from Jeroen van Meeuwen + +* Fri Dec 04 2009 Michal Babej - 2.2.15-2 +- change %%define to %%global +- change license to "MIT and WTFPL" (test/haml/spec/README.md) +- add Requires on hpricot for html2haml +- change %%gemdir to %%geminstdir where appropriate + +* Wed Dec 02 2009 Michal Babej - 2.2.15-1 +- Update to new upstream release +- URL changed by upstream + +* Wed Dec 02 2009 Michal Babej - 2.2.14-1 +- Initial package diff --git a/sources b/sources index e69de29..0b8d955 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4b695cc4b9d587baf19112c78dfc3b27 haml-2.2.20.gem