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 3)

Currently displaying revision 3, 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.9
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
BuildRequires:  rubygem-backports
37
Requires:   rubygem-backports
38
#
39
Url:            http://sinatra.rubyforge.org
40
Source:         %{mod_name}-%{version}.gem
41
#
42
Summary:        Classy web-development dressed in a DSL
43
%description
44
Classy web-development dressed in a DSL
45
46
%package doc
47
Summary:        RDoc documentation for %{mod_name}
48
Group:          Development/Languages/Ruby
49
License:        X11/MIT
50
Requires:       %{name} = %{version}
51
%description doc
52
Documentation generated at gem installation time.
53
Usually in RDoc and RI formats.
54
55
56
%package testsuite
57
Summary:        Test suite for %{mod_name}
58
Group:          Development/Languages/Ruby
59
License:        X11/MIT
60
Requires:       %{name} = %{version}
61
%description testsuite
62
Test::Unit or RSpec files, useful for developers.
63
64
65
%prep
66
%build
67
%install
68
%gem_install %{S:0}
69
70
%clean
71
%{__rm} -rf %{buildroot}
72
73
%files
74
%defattr(-,root,root,-)
75
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem
76
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
77
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/test
78
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec
79
80
%files doc
81
%defattr(-,root,root,-)
82
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/
83
84
%files testsuite
85
%defattr(-,root,root,-)
86
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/test
87
88
%changelog
89