/
torquebox-rubygem-rack-10.spec
60 lines (43 loc) · 1.53 KB
/
torquebox-rubygem-rack-10.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%global tree_prefix torquebox-
%global ruby_sitelib /opt/jruby/lib/ruby/site_ruby/1.8
%global gem_dir /opt/jruby/lib/ruby/gems/1.8
%global bin_dir /opt/jruby/bin
%global gem_name rack
%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
%global ruby_abi 1.8-java
Name: torquebox-rubygem-rack-10
Version: 1.1.0
Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
BuildArch: noarch
Summary: a modular Ruby webserver interface
URL: http://rack.rubyforge.org
Source0: http://rubygems.org/gems/rack-1.1.0.gem
Provides: %{tree_prefix}rubygem(%{gem_name}) = %{version}
Requires: ruby(abi) = %{ruby_abi}
%description
Rack provides 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.
Also see http://rack.rubyforge.org.
%prep
%build
%install
rm -rf %{buildroot}
install -m 755 -d %{buildroot}%{bin_dir}
install -m 755 -d %{buildroot}%{gem_dir}
install -m 755 -d %{buildroot}%{gem_dir}/gems/rack-1.1.0/lib
gem install --local --bindir %{buildroot}%{bin_dir} --install-dir %{buildroot}%{gem_dir} --force --ignore-dependencies --platform ruby %{SOURCE0}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%{bin_dir}/
%{gem_dir}/gems/rack-1.1.0/
%{gem_dir}/cache/rack-1.1.0.gem
%{gem_dir}/specifications/rack-1.1.0.gemspec
%doc %{gem_dir}/doc/rack-1.1.0
%changelog