package init
This commit is contained in:
parent
a0bf172aef
commit
9ebc66c5f9
61
rubygem-temple.spec
Normal file
61
rubygem-temple.spec
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
%global gem_name temple
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 0.8.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Template compilation framework in Ruby
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/judofyr/temple
|
||||||
|
Source0: https://rubygems.org/gems/temple-%{version}.gem
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem-bacon rubygem(erubis) rubygem(tilt)
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Temple is an abstraction and a framework for compiling templates to pure Ruby.
|
||||||
|
It's all about making it easier to experiment, implement and optimize template
|
||||||
|
languages. If you're interested in implementing your own template language,
|
||||||
|
or anything else related to the internals of a template engine: You've come
|
||||||
|
to the right place.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c -T
|
||||||
|
%gem_install -n %{SOURCE0}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
bacon -Itest -a
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%exclude %{gem_instdir}/.*
|
||||||
|
%license %{gem_instdir}/LICENSE
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/CHANGES
|
||||||
|
%doc %{gem_instdir}/EXPRESSIONS.md
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/temple.gemspec
|
||||||
|
%{gem_instdir}/test
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 0.8.0-1
|
||||||
|
- Package init
|
||||||
5
rubygem-temple.yaml
Normal file
5
rubygem-temple.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/judofyr/temple.git
|
||||||
|
version_control: github
|
||||||
|
src_repo: judofyr/temple
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
temple-0.8.0.gem
Normal file
BIN
temple-0.8.0.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user