rubygem-mustache: Package init
This commit is contained in:
parent
702f78de2d
commit
1a4e589495
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# rubygem-mustache
|
||||
|
||||
#### Description
|
||||
Mustache is a framework-agnostic way to render logic-free views
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# rubygem-mustache
|
||||
|
||||
#### 介绍
|
||||
Mustache is a framework-agnostic way to render logic-free views
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
BIN
mustache-1.0.2.gem
Normal file
BIN
mustache-1.0.2.gem
Normal file
Binary file not shown.
72
rubygem-mustache.spec
Normal file
72
rubygem-mustache.spec
Normal file
@ -0,0 +1,72 @@
|
||||
%global gem_name mustache
|
||||
|
||||
Name: rubygem-mustache
|
||||
Version: 1.0.2
|
||||
Release: 7
|
||||
Summary: A framework-agnostic way to render logic-free views
|
||||
License: MIT
|
||||
URL: https://github.com/mustache/mustache
|
||||
Source0: https://rubygems.org/gems/mustache-%{version}.gem
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Inspired by ctemplate and et, Mustache is a framework-agnostic way to render logic-free views.
|
||||
As ctemplates says, "It emphasizes separating logic from presentation: it is impossible to embed
|
||||
application logic in this template language."
|
||||
|
||||
%package help
|
||||
Summary: Help documentation for rubygem-mustache
|
||||
Requires: rubygem-mustache = %{version}-%{release}
|
||||
Provides: rubygem-mustache-doc = %{version}-%{release}
|
||||
Obsoletes: rubygem-mustache-doc < %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description help
|
||||
Documentation for rubygem-mustache.
|
||||
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
%gem_install -n %{SOURCE0}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||||
install -d %{buildroot}%{_bindir}
|
||||
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||
install -d %{buildroot}%{_mandir}/man5
|
||||
cp -a .%{gem_instdir}/man/mustache.5 %{buildroot}%{_mandir}/man5
|
||||
install -d %{buildroot}%{_mandir}/man1
|
||||
cp -a .%{gem_instdir}/man/mustache.1 %{buildroot}%{_mandir}/man1
|
||||
cp -a .%{gem_instdir}/man/*.html .
|
||||
|
||||
%check
|
||||
cd .%{gem_instdir}
|
||||
sed -r -i '/[Cc]ode[Cc]limate/ s/^/#/' test/helper.rb
|
||||
LANG=en_US.utf8 ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
cd -
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%{_bindir}/mustache
|
||||
%doc %{gem_instdir}/LICENSE
|
||||
%{gem_instdir}/bin
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_instdir}/man
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files help
|
||||
%doc *.html
|
||||
%doc %{_mandir}/man1/*
|
||||
%doc %{_mandir}/man5/*
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/{Rakefile,test}
|
||||
|
||||
%changelog
|
||||
* Sat Mar 14 2020 Ling Yang <lingyang2@huawei.com> - 1.0.2-7
|
||||
- Package Init
|
||||
Loading…
x
Reference in New Issue
Block a user