forked from theforeman/foreman_api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rubygem-foreman_api.spec
182 lines (141 loc) · 5.78 KB
/
rubygem-foreman_api.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
%global gem_name foreman_api
# we are using this gem also as non-SCL in RHEL6
%if !("%{?scl}" == "ruby193" || 0%{?rhel} > 6 || 0%{?fedora} > 16)
%define gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
%define gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
%define gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
%endif
Summary: Ruby bindings for Forman's rest API
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 0.1.6
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/theforeman/foreman_api
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
%if 0%{?fedora} > 18
Requires: %{?scl_prefix}ruby(release)
%else
Requires: %{?scl_prefix}ruby(abi)
%endif
Requires: %{?scl_prefix}ruby(rubygems)
Requires: %{?scl_prefix}rubygem(json)
Requires: %{?scl_prefix}rubygem(rest-client) >= 1.6.1
Requires: %{?scl_prefix}rubygem(oauth)
%if 0%{?fedora} > 18
BuildRequires: %{?scl_prefix}ruby(release)
%else
BuildRequires: %{?scl_prefix}ruby(abi)
%endif
BuildRequires: %{?scl_prefix}ruby(rubygems)
%if "%{?scl}" == "ruby193" || 0%{?rhel} > 6 || 0%{?fedora} > 16
BuildRequires: %{?scl_prefix}rubygems-devel
%endif
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
%description
Helps you to use Foreman's API calls from your app.
%package doc
BuildArch: noarch
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
Summary: Documentation for rubygem-%{gem_name}
%description doc
This package contains documentation for rubygem-%{gem_name}.
%prep
%setup -q -c -T -n %{gem_name}-%{version}
%build
mkdir -p .%{gem_dir}
%{?scl:scl enable %{scl} "}
gem install --local --install-dir .%{gem_dir} \
--force --no-rdoc --no-ri %{SOURCE0}
%{?scl:"}
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mv %{buildroot}%{gem_instdir}/{MIT-LICENSE,README.rdoc} ./
mkdir -p %{buildroot}%{gem_docdir}
mv %{buildroot}%{gem_instdir}/doc %{buildroot}%{gem_docdir}
rm -f %{buildroot}%{gem_instdir}/%{gem_name}.gemspec
rm -f %{buildroot}%{gem_instdir}/.yardopts
rm -f %{buildroot}%{gem_instdir}/.gitignore
%files
%dir %{gem_instdir}
%{gem_instdir}/lib
%exclude %{gem_cache}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%doc MIT-LICENSE README.rdoc
%files doc
%doc %{gem_docdir}
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%changelog
* Mon Aug 26 2013 Martin Bačovský <[email protected]> 0.1.6-1
- Version bump to 0.1.7 ([email protected])
- updated api for hosts and media
* Tue Jul 30 2013 Martin Bačovský <[email protected]> 0.1.5-2
- Fixed deps for F19 ([email protected])
* Tue Jul 30 2013 Martin Bačovský <[email protected]> 0.1.5-1
- Version bump to 0.1.5 ([email protected])
- fixed issue 8: Remove escaped character from generated documentation in rb file
- updated to latest API
* Thu Jun 27 2013 Lukas Zapletal <[email protected]> 0.1.4-3
- adding non-SCL RHEL6 support ([email protected])
* Thu Jun 27 2013 Lukas Zapletal <[email protected]> 0.1.4-2
- removing hard Rubi ABI requirement ([email protected])
* Thu Jun 20 2013 Martin Bačovský <[email protected]> 0.1.4-1
- Updated to 0.1.4 ([email protected])
- updated API (Foreman 1.2)
- fixed docs ([email protected])
- fixed headers options handling ([email protected])
* Tue Apr 09 2013 Ivan Necas <[email protected]> 0.1.3-1
- Update to new version ([email protected])
- require ruby193-build for tagging ([email protected])
* Tue Feb 26 2013 Miroslav Suchý <[email protected]> 0.1.1-2
- new package built with tito
* Wed Feb 13 2013 Martin Bačovský <[email protected]> 0.1.1-1
- Bump to 0.1.1 ([email protected])
- Added support for extra options for restclient resource
* Wed Feb 06 2013 Martin Bačovský <[email protected]> 0.1.0-1
- Updated to 0.1.0 ([email protected])
- Added support for API V2
- Removed unnecessary dependency on apipie-rails
* Thu Jan 24 2013 Martin Bačovský <[email protected]> 0.0.11-1
- Updated to 0.0.11 ([email protected])
- generator is part of the package
- yard docs
* Tue Jan 15 2013 Martin Bačovský <[email protected]> 0.0.10-1
- Fixed params handeling ([email protected])
* Fri Jan 11 2013 Martin Bačovský <[email protected]> 0.0.9-1
- Bump to 0.0.9 ([email protected]) ( compute_resource domain environment host
common_parameter hostgroup image medium operating_system ptable
puppetclass role template_kind )
* Thu Nov 22 2012 Martin Bačovský <[email protected]> 0.0.8-1
- Updated to 0.0.8 ([email protected])
* Thu Nov 22 2012 Martin Bacovsky <[email protected]> 0.0.8-1
- support for full foreman API
* Wed Oct 17 2012 Ivan Necas <[email protected]> 0.0.7-2
- Fix apipie-rails dependency ([email protected])
* Tue Oct 09 2012 Martin Bačovský <[email protected]> 0.0.7-1
- Rebuilt with apipie 0.0.12 ([email protected])
* Tue Sep 11 2012 Martin Bačovský <[email protected]> 0.0.6-1
- Updated to 0.0.6 ([email protected])
- support for subnets
* Tue Aug 28 2012 Martin Bačovský <[email protected]> 0.0.5-1
- Updated bindings to 0.0.5 ([email protected])
* Tue Aug 14 2012 Martin Bačovský <[email protected]> 0.0.4-2
- Updated to v 0.0.4 ([email protected])
- added domains, config_templates
* Tue Aug 14 2012 Martin Bačovský <[email protected]> 0.0.2-1
- Updated gem to 0.0.2 ([email protected])
* Mon Aug 13 2012 Miroslav Suchý <[email protected]> 0.0.1-4
- for rubyabi do s/1.9/1.9.1/ ([email protected])
* Mon Aug 13 2012 Martin Bačovský <[email protected]> 0.0.1-3
- Fixed failing spec removal ([email protected])
* Mon Aug 13 2012 Martin Bačovský <[email protected]> 0.0.1-2
- new package built with tito
* Wed Aug 08 2012 Martin Bacovsky <[email protected]> - 0.0.1-1
- Initial package