This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
eucaconsole.spec
304 lines (232 loc) · 10.1 KB
/
eucaconsole.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
293
294
295
296
297
298
299
300
301
302
303
304
# Copyright (c) 2012-2017 Hewlett Packard Enterprise Development LP
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above
# copyright notice, this list of conditions and the
# following disclaimer.
#
# Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the
# following disclaimer in the documentation and/or other
# materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
Name: eucaconsole
Version: 5.0.0
Release: 0%{?build_id:.%build_id}%{?dist}
Summary: Eucalyptus Management Console
# Main code is BSD
# Bundled javascript is BSD and MIT
# Bundled "Play" font is OFL
# various artwork is CC-BY-SA
License: BSD and CC-BY-SA and MIT and OFL
URL: https://github.com/eucalyptus/eucaconsole
Source0: %{tarball_basedir}.tar.xz
# Mark sessions as secure since we put the service behind its own proxy
Patch1: eucaconsole-5.0.0-sessionsecure.patch
# Prepend the beaker 1.8.1 egg to sys.path so it's used in preference to
# the beaker 1.5.4 package provided by RHEL
Patch2: eucaconsole-5.0.0-beaker-1.8.1.patch
BuildArch: noarch
BuildRequires: gettext
BuildRequires: m2crypto
BuildRequires: pycryptopp >= 0.6
BuildRequires: python2-boto >= 2.43.0
BuildRequires: python2-botocore
BuildRequires: python-chameleon >= 2.5.3
BuildRequires: python-dateutil
BuildRequires: python2-devel
BuildRequires: python-eventlet >= 0.15.2
BuildRequires: python-greenlet >= 0.3.1
BuildRequires: python-gunicorn
BuildRequires: python-lxml
BuildRequires: python-nose
BuildRequires: python-pygments
BuildRequires: python-pylibmc
BuildRequires: python-pyramid
BuildRequires: python-setuptools
BuildRequires: python-simplejson
BuildRequires: python-wtforms
BuildRequires: systemd
# Add support for ``dd status=none''
# https://bugzilla.redhat.com/show_bug.cgi?id=965654
Requires: coreutils >= 8.4-22
Requires: eucaconsole-selinux
Requires: m2crypto
Requires: mailcap
Requires: memcached
Requires: nginx
Requires: openssl >= 1.0.1e-16
Requires: pycryptopp >= 0.6
# This is an = because of the path encoded in /usr/bin/eucaconsole
Requires: python-beaker18 = 1.8.1
Requires: python2-boto >= 2.43.0
Requires: python2-botocore
Requires: python-chameleon >= 2.5.3
Requires: python-dateutil
Requires: python-defusedxml
Requires: python-dogpile-cache
Requires: python-eventlet >= 0.15.2
Requires: python2-funcsigs
Requires: python-greenlet >= 0.3.1
Requires: python-gunicorn
Requires: python-lxml
Requires: python-pandas
Requires: python-pylibmc
Requires: python-pyramid
Requires: python-pyramid-beaker
Requires: python-pyramid-chameleon
Requires: python-pyramid-layout
Requires: python-python-magic
Requires: python-simplejson
Requires: python-wtforms
# TODO: patch config to write to syslog
# TODO: ship a syslog config file
# TODO: move static content to /usr/share/%{name}
# TODO: change the nginx config to point to new location for static content
%description
The Eucalyptus Management Console is a web-based interface to a local
Eucalyptus cloud and/or AWS services.
%prep
%autosetup -p1 -n %{tarball_basedir}
%build
%py2_build
%install
# Without the \ the rpm spec parser will treat --init-system as an
# option for the py2_install macro rather than for setup.py.
%py2_install \--init-system=systemd
# Create placeholders
install -d -m 0755 $RPM_BUILD_ROOT/run/eucaconsole
install -D -m 0644 /dev/null $RPM_BUILD_ROOT/var/log/%{name}.log
%find_lang %{name}
#%check
#python2 setup.py test
%files -f %{name}.lang
%license COPYING licenses
%doc README.rst
%config(noreplace) /etc/%{name}
%{_bindir}/*
%{_libexecdir}/%{name}
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/*
%{python_sitelib}/*
/usr/share/%{name}
%attr(-,eucaconsole,eucaconsole) %dir /run/%{name}
%attr(-,eucaconsole,eucaconsole) /var/log/%{name}.log
%pre
getent group eucaconsole >/dev/null || groupadd -r eucaconsole
getent passwd eucaconsole >/dev/null || \
useradd -r -g eucaconsole -d /var/run/eucaconsole \
-c 'Eucalyptus Console' eucaconsole
%post
%systemd_post eucaconsole.service
%preun
%systemd_preun eucaconsole.service
%postun
%systemd_postun_with_restart eucaconsole.service
%changelog
* Mon May 8 2017 Garrett Holmstrom <[email protected]> - 4.4.1
- Version bump (4.4.1)
* Tue Mar 7 2017 Matt Bacchi <[email protected]> - 4.4.0
- Version bump (4.4.0)
* Tue Feb 14 2017 Matt Bacchi <[email protected]> - 5.0.0
- Set permissions of eucaconsole.log in install command
- Require python-pandas
* Fri Feb 10 2017 Garrett Holmstrom <[email protected]> - 5.0.0
- Version bump (5.0.0)
- Ported to systemd (GUI-2869)
- Added license files
* Mon Jan 30 2017 Garrett Holmstrom <[email protected]> - 4.3.0
- Update beaker requirement to 1.8.1 (GUI-2845)
* Wed Jan 18 2017 Garrett Holmstrom <[email protected]> - 5.0.0
- Added python2-botocore dependency (GUI-2862)
* Tue Dec 13 2016 Matt Bacchi <[email protected]> - 4.3.1
- Version bump (4.3.1)
* Mon Nov 7 2016 Kamal Gill <[email protected]> - 4.4.0
- Update python-boto minimum version to 2.43.0 (GUI-2806)
* Fri Sep 9 2016 Garrett Holmstrom <[email protected]> - 4.4.0
- Removed el6 support
- Added python-lxml dependency (GUI-2753)
* Tue Aug 9 2016 Matt Bacchi <[email protected]> - 4.3.0
- Version bump (4.3.0)
* Tue Jul 12 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Added eucaconsole-selinux dependency
* Wed May 4 2016 Matt Bacchi <[email protected]> - 4.3.0
- Update beaker requirement to 1.8 (GUI-2429)
- Add python2-funcsigs requirement (dragged in by beaker 1.8)
- Replace python-crypto with pycryptopp (GUI-1659)
- python-pyramid-layout updated to 1.0 on el7, cannot update on el6 because
- python-pyramid 1.4 is the latest available in epel6 repo
* Tue Apr 12 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Fixed file list and BuildRequires
- Reorganized Requires/BuildRequires
- Removed Obsoletes: eucalyptus-console < 4.0
* Wed Mar 30 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Added tmpfiles.d (GUI-2455)
* Thu Mar 10 2016 Eucalyptus Release Engineering <[email protected]> - 4.2.2
- replace gevent with eventlet
- rename patch files, prefix with eucaconsole
* Fri Feb 5 2016 Eucalyptus Release Engineering <[email protected]> - 4.2.2
- update dependencies for RHEL 7 (but add conditionals to allow building on el6)
* Tue Dec 22 2015 David Kavanagh <[email protected]> - 4.2.1
- Install and manage memcached for use by eucaconsole
* Mon Dec 7 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.1
- Version bump (4.2.1)
* Tue Aug 4 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Install and manage nginx for use by eucaconsole.
* Wed Jul 29 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Version bump (4.2.0)
* Thu Jun 4 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Added /usr/share/eucaconsole
* Fri Apr 17 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.1
- Bumped python-beaker15 dep to 1.5.4-8.4 (GUI-1638)
* Mon Mar 30 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.1
- Version bump (4.1.1)
* Mon Mar 23 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Re-added missing python-boto dependency (GUI-1614)
* Wed Dec 17 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Replaced python-gevent BuildRequires with python-gevent1 as well
* Tue Dec 16 2014 David Kavanagh <[email protected]> - 4.1.0
- Replaced python-gevent dependency with python-gevent1
* Tue Dec 9 2014 David Kavanagh <[email protected]> - 4.1.0
- added memcached config file to package
* Fri Nov 28 2014 David Kavanagh <[email protected]> - 4.1.0
- updated boto version to 2.34.0
* Fri Oct 31 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Replaced python-magic dependency with python-python-magic [GUI-1407]
* Tue Sep 23 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Require python-dogpile-cache
* Mon Sep 22 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.2
- Version bump (4.0.2)
* Fri Aug 29 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Added python-pylibmc dependency [GUI-1083]
- Added python-magic dependency [GUI-1040]
* Tue Jul 8 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.1-0
- Switched to xz-compressed sources
* Mon Jul 7 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0-0
- Updated to 4.1.0
* Mon Jul 7 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.1-0
- Switched to monolithic source tarball naming
* Tue Jun 17 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.1-0
- Updated to 4.0.1
* Wed May 28 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Require coreutils >= 8.4-22 [RH:965654]
* Tue May 27 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Obsolete eucalyptus-console < 4.0
* Fri May 16 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0.1
- Require version of openssl that works for the console
* Fri Jan 17 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0.1
- Created