package init
This commit is contained in:
parent
b45b58a396
commit
bac729993a
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# rubygem-rack
|
||||
|
||||
#### Description
|
||||
A modular Ruby webserver interface
|
||||
|
||||
#### 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-rack
|
||||
|
||||
#### 介绍
|
||||
A modular Ruby webserver interface
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
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
rack-2.0.4.gem
Normal file
BIN
rack-2.0.4.gem
Normal file
Binary file not shown.
79
rubygem-rack.spec
Normal file
79
rubygem-rack.spec
Normal file
@ -0,0 +1,79 @@
|
||||
%global gem_name rack
|
||||
Name: rubygem-rack
|
||||
Version: 2.0.4
|
||||
Epoch: 1
|
||||
Release: 1
|
||||
Summary: A modular Ruby webserver interface
|
||||
License: MIT and BSD
|
||||
URL: https://github.com/rack/rack
|
||||
Source0: https://github.com/rack/rack/archive/rack-%{version}.gem
|
||||
|
||||
BuildRequires: rubygems-devel ruby
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Rack provides a minimal, modular, and adaptable interface for developing
|
||||
web applications in Ruby. By wrapping HTTP requests and responses in the
|
||||
simplest way possible, it unifies and distills the API for web servers,
|
||||
web frameworks, and software in between (the so-called middleware) into
|
||||
a single method call.
|
||||
|
||||
%package help
|
||||
Summary: Documents for %{name}
|
||||
Buildarch: noarch
|
||||
Requires: man info %{name} = %{epoch}:%{version}-%{release}
|
||||
Provides: %{name}-doc = %{epoch}:%{version}-%{release}
|
||||
Obsoletes: %{name}-doc < %{epoch}:%{version}-%{release}
|
||||
|
||||
%description help
|
||||
Man pages and other related documents for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
%gem_install -n %{SOURCE0}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d 0755 %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||||
install -d 0755 %{buildroot}%{_bindir}
|
||||
cp -pa .%{_bindir}/* %{buildroot}%{_bindir}/
|
||||
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||
find %{buildroot}%{gem_instdir}/{bin,test/cgi} -type f | \
|
||||
xargs sed -i 's|^#!/usr/bin/env ruby$|#!/usr/bin/ruby|'
|
||||
|
||||
for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
|
||||
[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
|
||||
done
|
||||
|
||||
for file in `find %{buildroot}%{gem_instdir} -type f`; do
|
||||
[ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod -v 755 $file
|
||||
done
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license %{gem_instdir}/COPYING
|
||||
%{_bindir}/rackup
|
||||
%dir %{gem_instdir}
|
||||
%{gem_libdir}
|
||||
%{gem_instdir}/bin
|
||||
%{gem_spec}
|
||||
%exclude %{gem_cache}
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/example
|
||||
%doc %{gem_instdir}/contrib
|
||||
%doc %{gem_instdir}/HISTORY.md
|
||||
%doc %{gem_instdir}/README.rdoc
|
||||
%{gem_instdir}/SPEC
|
||||
%{gem_instdir}/test
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/%{gem_name}.gemspec
|
||||
|
||||
%changelog
|
||||
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:2.0.4-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user