diff --git a/haml-5.0.4.gem b/haml-5.0.4.gem new file mode 100644 index 0000000..b6730e2 Binary files /dev/null and b/haml-5.0.4.gem differ diff --git a/rubygem-haml.spec b/rubygem-haml.spec new file mode 100644 index 0000000..eb2fe5a --- /dev/null +++ b/rubygem-haml.spec @@ -0,0 +1,81 @@ +%global gem_name haml +Name: rubygem-%{gem_name} +Version: 5.0.4 +Release: 3 +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 +Source1: https://github.com/%{gem_name}/%{gem_name}/archive/v%{version}.tar.gz +BuildRequires: ruby(release) rubygems-devel ruby rubygem(activemodel) rubygem(minitest) +BuildRequires: rubygem(railties) rubygem(temple) rubygem(tilt) +BuildArch: noarch +%description +Haml (HTML Abstraction Markup Language) is a layer on top of HTML or XML +that's designed to express the structure documents in a non-repetitive, +elegant, easy way by 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. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + + +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{gem_name}-%{version} -b 1 + +%build +gem build ../%{gem_name}-%{version}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +mkdir -p %{buildroot}%{_bindir} +cp -a .%{_bindir}/* \ + %{buildroot}%{_bindir}/ +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x + +%check +pushd .%{gem_instdir} +ln -s %{_builddir}/haml-5.0.4/test test +sed -i '/[bB]undler/ s/^/#/' test/test_helper.rb +ruby -Ilib:test -e '(Dir.glob("./test/*_test.rb") - %w[./test/options_test.rb]).each {|f| require f }' +ruby -Ilib:test -e 'require "./test/options_test.rb"' +popd + +%files +%dir %{gem_instdir} +%{_bindir}/haml +%exclude %{gem_instdir}/.* +%license %{gem_instdir}/MIT-LICENSE +%{gem_instdir}/bin +%{gem_libdir} +%exclude %{gem_libdir}/haml/.gitattributes +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/FAQ.md +%{gem_instdir}/Gemfile +%doc %{gem_instdir}/README.md +%doc %{gem_instdir}/REFERENCE.md +%{gem_instdir}/Rakefile +%doc %{gem_instdir}/TODO +%{gem_instdir}/benchmark.rb +%{gem_instdir}/haml.gemspec +%{gem_instdir}/yard +%exclude %{gem_instdir}/yard/default/.gitignore + +%changelog +* Fri Aug 21 2020 tuShenmei - 5.0.4-1 +- package init diff --git a/rubygem-haml.yaml b/rubygem-haml.yaml new file mode 100644 index 0000000..06917f9 --- /dev/null +++ b/rubygem-haml.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: haml/haml +tag_prefix: "haml-" +separator: "." diff --git a/v5.0.4.tar.gz b/v5.0.4.tar.gz new file mode 100644 index 0000000..3146c82 Binary files /dev/null and b/v5.0.4.tar.gz differ