package init
This commit is contained in:
parent
3e0445a1dc
commit
a2b93af4bc
BIN
haml-5.0.4.gem
Normal file
BIN
haml-5.0.4.gem
Normal file
Binary file not shown.
81
rubygem-haml.spec
Normal file
81
rubygem-haml.spec
Normal file
@ -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 <tushenmei@huawei.com> - 5.0.4-1
|
||||
- package init
|
||||
4
rubygem-haml.yaml
Normal file
4
rubygem-haml.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: haml/haml
|
||||
tag_prefix: "haml-"
|
||||
separator: "."
|
||||
BIN
v5.0.4.tar.gz
Normal file
BIN
v5.0.4.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user