-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrubygem-studio_api.spec.template
89 lines (77 loc) · 2.95 KB
/
rubygem-studio_api.spec.template
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
# spec file for package rubygem-studio_api
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: rubygem-studio_api
Version: <VERSION>
Release: 0
%define mod_name studio_api
#
Group: Development/Languages/Ruby
License: GPLv2 or The Ruby License
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: rubygems_with_buildroot_patch
%rubygems_requires
BuildRequires: rubygem-activeresource >= 2.3.8
Requires: rubygem-activeresource >= 2.3.8
BuildRequires: rubygem-xml-simple >= 1.0.0
Requires: rubygem-xml-simple >= 1.0.0
#
Url: http://github.com/jreidinger/studio_api
Source: %{mod_name}-%{version}.gem
#
Summary: Intuitive ruby bindings to Studio Api Interface
%description
Studio Api makes it easier to use SuSE Studio (http://susestudio.com) via API.
Instead of adapting each ActiveResource to its behavior and
manually adding multipart file upload it wrapp in in Active
Resource like interface. It is possible to define credentials
for whole api, or use it per partes, so it allow using it for
different studio users together.
%package doc
Summary: RDoc documentation for %{mod_name}
Group: Development/Languages/Ruby
License: GPLv2 or The Ruby License
Requires: %{name} = %{version}
%description doc
Documentation generated at gem installation time.
Usually in RDoc and RI formats.
%package testsuite
Summary: Test suite for %{mod_name}
Group: Development/Languages/Ruby
License: GPLv2 or The Ruby License
Requires: %{name} = %{version}
%description testsuite
Test::Unit or RSpec files, useful for developers.
%prep
%build
%install
%gem_install %{S:0}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/test
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec
%files doc
%defattr(-,root,root,-)
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/
%files testsuite
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/test
%changelog