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

File rubygem-dm-serializer.spec of Package rubygem-dm-serializer

x
 
1
#
2
# spec file for package rubygem-dm-serializer
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-dm-serializer
20
Version:        1.2.0
21
Release:        0
22
%define mod_name dm-serializer
23
%define mod_full_name %{mod_name}-%{version}
24
#
25
Group:          Development/Languages/Ruby
26
License:        MIT
27
#
28
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
29
BuildRequires:  rubygems_with_buildroot_patch
30
Provides:       rubygem-%{mod_name}-1_2 = %{version}
31
%rubygems_requires
32
# dm-core ~> 1.2.0
33
BuildRequires:  rubygem-dm-core-1_2 >= 1.2.0
34
Requires:       rubygem-dm-core-1_2 >= 1.2.0
35
# fastercsv ~> 1.5.4
36
BuildRequires:  rubygem-fastercsv-1_5 >= 1.5.4
37
Requires:       rubygem-fastercsv-1_5 >= 1.5.4
38
# multi_json ~> 1.0.3
39
BuildRequires:  rubygem-multi_json-1_0 >= 1.0.3
40
Requires:       rubygem-multi_json-1_0 >= 1.0.3
41
# json ~> 1.5.4
42
BuildRequires:  rubygem-json-1_5 >= 1.5.4
43
Requires:       rubygem-json-1_5 >= 1.5.4
44
# json_pure ~> 1.5.4
45
BuildRequires:  rubygem-json_pure-1_5 >= 1.5.4
46
Requires:       rubygem-json_pure-1_5 >= 1.5.4
47
#
48
Url:            http://github.com/datamapper/dm-serializer
49
Source:         %{mod_full_name}.gem
50
#
51
Summary:        DataMapper plugin for serializing Resources and Collections
52
%description
53
DataMapper plugin for serializing Resources and Collections
54
55
%package doc
56
Summary:        RDoc documentation for %{mod_name}
57
Group:          Development/Languages/Ruby
58
Requires:       %{name} = %{version}
59
%description doc
60
Documentation generated at gem installation time.
61
Usually in RDoc and RI formats.
62
63
%package testsuite
64
Summary:        Test suite for %{mod_name}
65
Group:          Development/Languages/Ruby
66
Requires:       %{name} = %{version}
67
%description testsuite
68
Test::Unit or RSpec files, useful for developers.
69
70
%prep
71
%build
72
%install
73
%gem_install %{S:0}
74
75
%clean
76
%{__rm} -rf %{buildroot}
77
78
%files
79
%defattr(-,root,root,-)
80
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
81
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
82
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
83
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec
84
85
%files doc
86
%defattr(-,root,root,-)
87
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/
88
89
%files testsuite
90
%defattr(-,root,root,-)
91
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
92
93
%changelog
94