forked from openshift/rhc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.spec
292 lines (257 loc) · 11.4 KB
/
client.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemversion %(echo %{version} | cut -d'.' -f1-3)
Summary: OpenShift client management tools
Name: rhc
Version: 1.23.6
Release: 1%{?dist}
Group: Network/Daemons
License: ASL 2.0
URL: http://openshift.redhat.com
Source0: rhc-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: ruby >= 1.8.5
BuildRequires: rubygems
BuildRequires: rubygem-rdoc
BuildRequires: ruby-irb
Requires: ruby >= 1.8.5
Requires: rubygem-parseconfig
Requires: rubygem-httpclient
Requires: rubygem-test-unit
Requires: rubygem-net-ssh
Requires: rubygem-net-scp
Requires: ruby193-rubygem-net-scp
Requires: rubygem-net-ssh-multi
Requires: rubygem-archive-tar-minitar
Requires: rubygem-commander
Requires: rubygem-open4
Requires: git
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
Requires: rubygem-net-ssh-multi
%endif
Obsoletes: rhc-rest
Provides: rubygem-rhc
BuildArch: noarch
%description
Provides OpenShift client libraries.
%prep
%setup -q
%build
for f in bin/rhc*
do
ruby -c $f
done
for f in lib/*.rb
do
ruby -c $f
done
%install
pwd
rm -rf $RPM_BUILD_ROOT
mkdir -p "$RPM_BUILD_ROOT/usr/share/man/man1/"
mkdir -p "$RPM_BUILD_ROOT/usr/share/man/man5/"
for f in man/*
do
len=`expr length $f`
manSection=`expr substr $f $len $len`
cp $f "$RPM_BUILD_ROOT/usr/share/man/man${manSection}/"
done
mkdir -p $RPM_BUILD_ROOT/etc/openshift
if [ ! -f "$RPM_BUILD_ROOT/etc/openshift/express.conf" ]
then
cp "conf/express.conf" $RPM_BUILD_ROOT/etc/openshift/
fi
# Package the gem
LC_ALL=en_US.UTF-8 gem build rhc.gemspec
mkdir -p .%{gemdir}
# Ignore dependencies here because these will be handled by rpm
gem install --install-dir $RPM_BUILD_ROOT/%{gemdir} --bindir $RPM_BUILD_ROOT/%{_bindir} --local -V --force --rdoc --ignore-dependencies \
rhc-%{version}.gem
# Copy the bash autocompletion script
mkdir -p "$RPM_BUILD_ROOT/etc/bash_completion.d/"
cp autocomplete/rhc_bash $RPM_BUILD_ROOT/etc/bash_completion.d/rhc
cp LICENSE $RPM_BUILD_ROOT/%{gemdir}/gems/rhc-%{version}/LICENSE
cp COPYRIGHT $RPM_BUILD_ROOT/%{gemdir}/gems/rhc-%{version}/COPYRIGHT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%doc COPYRIGHT
%{_bindir}/rhc
%{_mandir}/man1/rhc*
%{_mandir}/man5/express*
%{gemdir}/gems/rhc-%{version}/
%{gemdir}/cache/rhc-%{version}.gem
%{gemdir}/doc/rhc-%{version}
%{gemdir}/specifications/rhc-%{version}.gemspec
%config(noreplace) %{_sysconfdir}/openshift/express.conf
%attr(0644,-,-) /etc/bash_completion.d/rhc
%changelog
* Thu Apr 17 2014 Troy Dawson <[email protected]> 1.23.6-1
- Skip forking output for jruby ([email protected])
* Thu Apr 17 2014 Troy Dawson <[email protected]> 1.23.5-1
- Merge pull request #578 from pravisankar/dev/ravi/fix-rhc-tests
- Fix cucumber support script: Pick user_register_script_format based on auth
plugin ([email protected])
* Wed Apr 16 2014 Troy Dawson <[email protected]> 1.23.4-1
- Merge pull request #579 from liggitt/always_show_owner
- Always show the domain or application owner in member list
* Tue Apr 15 2014 Troy Dawson <[email protected]> 1.23.3-1
- Merge pull request #577 from liggitt/bug_1086567_handle_implicit_leaving
- Improve message when searching member teams ([email protected])
- Bug 1086567: Handle implicit members leaving ([email protected])
* Mon Apr 14 2014 Troy Dawson <[email protected]> 1.23.2-1
- Merge pull request #576 from liggitt/fabianofranz-dev/174
- Improve documentation, sample usage, grammar, and type validation
- Bug 1086698: Improve examples for update to say that user logins or team ids
can add members ([email protected])
- Complete spec coverage of members command ([email protected])
- Bug 1086227: Improve message when a team cannot be found while adding
- Add spec tests to make sure we use an exact match, handle multiple exact
matches, use a single case-insensitive match, suggest when there are multiple
matches, and handle special Regexp characters correctly ([email protected])
- Update spec tests for member list output ([email protected])
- Bug 1086138: Show info message when there are no members, reformat member
output, add --all option to show team members ([email protected])
- Bug 1086127: update autocomplete script ([email protected])
- Bug 1086128: Improve syntax to include --type and login,team name,id
- [origin-ui-174] add/remove/update/list teams as members
* Wed Apr 09 2014 Adam Miller <[email protected]> 1.23.1-1
- Merge pull request #573 from jwforres/latest_rake_breaks_on_ruby18
- Merge pull request #574 from fabianofranz/master
- Merge pull request #572 from ShalomPisteuo/fixScpMisspelling
- bump_minor_versions for sprint 43 ([email protected])
- Fixes failing test in rhc/features/core_feature.rb:178
- Latest version of rake breaks bundle install on ruby 1.8.x
- Fixing a misspelling. ([email protected])
* Tue Mar 25 2014 Adam Miller <[email protected]> 1.22.5-1
- [origin-ui-162] surface more information in the UI for external cartridges
- Merge pull request #571 from fabianofranz/master
- Merge pull request #570 from fabianofranz/bugs/1078684
- Fixes failing test (was reaching the 3 gears limit)
- Bug 1078684 - fixes rhc help options ([email protected])
* Mon Mar 24 2014 Adam Miller <[email protected]> 1.22.4-1
- Bug 1079584: Fix scp option conflict with global option ([email protected])
- Fix failing test ([email protected])
- Merge pull request #566 from fabianofranz/dev/163
- [origin-ui-163] Add support to filter apps you own - 'rhc apps --mine'
- Bug 1073108 - fixes case check when removing cartridges by url
* Tue Mar 18 2014 Adam Miller <[email protected]> 1.22.3-1
- Merge pull request #553 from fabianofranz/dev/160
- Updates autocomplete ([email protected])
- Improved message about scaling when creating --from-app
- Creating --from-app will no longer copy aliases, still warns about it
- Moved check for options dns and git to previous logic
- Changes rhc create-app --from to --from-app ([email protected])
- [origin-dev-ui-160] Add support to clone app on create: 'rhc create-app
<clone> --from <existing>' ([email protected])
* Mon Mar 17 2014 Troy Dawson <[email protected]> 1.22.2-1
- Merge pull request #564 from nhr/fix_for_origin
- Merge pull request #563 from liggitt/require_tmpdir
- Add SCL dependency for client.spec-based RPM builds ([email protected])
- Require tmpdir ([email protected])
* Fri Mar 14 2014 Adam Miller <[email protected]> 1.22.1-1
- Update scp.rb ([email protected])
- Update scp.rb ([email protected])
- Bug 1073852 fixing traceback with authentication failed message
- Bug 1073307: Make error message on download failure more generic
- Bug 1073326: Add scp to rhc autocomplete ([email protected])
- Bug 1073283: Fix scp when app name is empty or . ([email protected])
- bump_minor_versions for sprint 42 ([email protected])
* Wed Mar 05 2014 Adam Miller <[email protected]> 1.21.3-1
- Bug 1072721: Fix divide by zero and duplicate messages in rhc scp command
* Mon Mar 03 2014 Adam Miller <[email protected]> 1.21.2-1
- fix cucumber test cartridge index files ([email protected])
- Use more than 1 word ([email protected])
* Thu Feb 27 2014 Adam Miller <[email protected]> 1.21.1-1
- Fixing tests ([email protected])
- Merge pull request #550 from smarterclayton/add_more_debugging_to_dns_output
- Report more info about DNS resolution ([email protected])
- fix feature test - remove obsolete php/ dir ([email protected])
- Bug 1066850 - Fixing urls ([email protected])
- bump_minor_versions for sprint 41 ([email protected])
* Sun Feb 16 2014 Adam Miller <[email protected]> 1.20.3-1
- Explain automatic updates ([email protected])
* Mon Feb 10 2014 Adam Miller <[email protected]> 1.20.2-1
- Cleanup formatting ([email protected])
- Cleaning spec ([email protected])
- Merge pull request #539 from jhadvig/mongo_update
- Merge pull request #536 from fabianofranz/dev/441
- Removed references to OpenShift forums in several places
- Fix infinite retry logic ([email protected])
- Merge pull request #488 from developercorey/rhc_scp
- adding Requires:rubygem-net-scp to client.spec ([email protected])
- Net::SSH 2.8.0 raises a different exception on fingerprint errors
- Stop using sort_by! for ruby 1.8.7 ([email protected])
- Add test for domain with more than 5 members ([email protected])
- Merge pull request #541 from smarterclayton/show_automatic_updates
- Show automatic updates if available ([email protected])
- MongoDB version update to 2.4 ([email protected])
- fixing issues identified by clayton ([email protected])
- adding rhc scp command for transferring files to and from gears, along with
associated tests ([email protected])
* Thu Jan 30 2014 Adam Miller <[email protected]> 1.20.1-1
- Use verbose logging in Net::SSH when in debug mode ([email protected])
- Merge pull request #537 from fabianofranz/bugs/1058251
- Bug 1058251 - gear activate requires --all to be applied to all gears
- Bug 1048392 - remove workaround for travis CI failures ([email protected])
- bump_minor_versions for sprint 40 ([email protected])
* Thu Jan 09 2014 Troy Dawson <[email protected]> 1.19.4-1
- Merge pull request #524 from smarterclayton/authorization_tests
- Bug 1048392 - force gem to version 2.11.1 so travis CI can run
- Merge pull request #532 from liggitt/bug_1046443_stderr_redirect
- Bug 991250 - changed the behavior of the 'rhc' command called alone to
display help instead of the wizard if it's not configured
- Review: test 'rhc authorization' directly ([email protected])
- Fix bug 1046443: Incorrect stderr redirect ([email protected])
- Bug 991250 - 'rhc' must call wizard with the same context as 'rhc setup'
- Bug 1043291 - using ruby to snapshot restore on mac (tar --wildcards not
supported) ([email protected])
- Bug 1041313 - allow all rhc catridge commands to accept a url
- Authorization tests ([email protected])
- net-multi-ssh made it to master ([email protected])