Logoj0ke.net Open Build Service > Projects > virtualization:Cloud:OpenNebula > rubygem-sinatra > rubygem-sinatra.spec
Sign Up | Log In

File rubygem-sinatra.spec of Package rubygem-sinatra (Revision 7f16121a2dc0dff92a58623390bc5fa8)

Currently displaying revision 7f16121a2dc0dff92a58623390bc5fa8, show latest

x
 
1
#
2
# spec file for package rubygem-sinatra
3
#
4
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via http://bugs.opensuse.org/
16
#
17
18
# norootforbuild
19
Name:           rubygem-sinatra
20
Version:        1.2.0
21
Release:        0
22
%define mod_name sinatra
23
#
24
Group:          Development/Languages/Ruby
25
License:        X11/MIT
26
#
27
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
28
BuildRequires:  rubygems_with_buildroot_patch
29
%rubygems_requires
30
BuildRequires:  rubygem-rack >= 1.1
31
Requires:       rubygem-rack >= 1.1
32
BuildRequires:  rubygem-tilt >= 1.2.2
33
Requires:       rubygem-tilt >= 1.2.2
34
BuildRequires:  rubygem-tilt < 2.0
35
Requires:       rubygem-tilt < 2.0
36
#
37
Url:            http://sinatra.rubyforge.org
38
Source:         %{mod_name}-%{version}.gem
39
#
40
Summary:        Classy web-development dressed in a DSL
41
%description
42
Classy web-development dressed in a DSL
43
44
%package doc
45
Summary:        RDoc documentation for %{mod_name}
46
Group:          Development/Languages/Ruby
47
License:        X11/MIT
48
Requires:       %{name} = %{version}
49
%description doc
50
Documentation generated at gem installation time.
51
Usually in RDoc and RI formats.
52
53
54
%package testsuite
55
Summary:        Test suite for %{mod_name}
56
Group:          Development/Languages/Ruby
57
License:        X11/MIT
58
Requires:       %{name} = %{version}
59
%description testsuite
60
Test::Unit or RSpec files, useful for developers.
61
62
63
%prep
64
%build
65
%install
66
%gem_install %{S:0}
67
68
%clean
69
%{__rm} -rf %{buildroot}
70
71
%files
72
%defattr(-,root,root,-)
73
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem
74
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
75
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/test
76
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec
77
78
%files doc
79
%defattr(-,root,root,-)
80
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/
81
82
%files testsuite
83
%defattr(-,root,root,-)
84
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/test
85
86
%changelog
87