-
Notifications
You must be signed in to change notification settings - Fork 18
/
cockpit-ovirt.spec.in
186 lines (137 loc) · 5.44 KB
/
cockpit-ovirt.spec.in
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
# Used for rpm-packaging of pre-bundled application with already resolved JS dependencies
%global _plugindir %{_datarootdir}/cockpit/
%global _ovirtenginedir %{_datarootdir}/ovirt-engine
%global product oVirt
%global use_rhev %(test -z @RHEV@ && echo 1 || echo 0)
%global yarn_install @YARNINSTALL@
%define debug_package %{nil}
%global source_basename @PACKAGE_TARNAME@-@PACKAGE_VERSION@
Name: cockpit-ovirt
Version: @PACKAGE_RPM_VERSION@
Release: @PACKAGE_RPM_RELEASE@%{?release_suffix}%{?checkout}%{?dist}
Summary: Dashboard for Cockpit based on %{product}
License: ASL 2.0
URL: https://gerrit.ovirt.org/gitweb?p=cockpit-ovirt.git;a=summary
Source0: http://resources.ovirt.org/pub/src/%{name}/%{source_basename}.tar.gz
%if 0%{?rhel}
ExclusiveArch: x86_64
%else
BuildRequires: nodejs-packaging
ExclusiveArch: %{nodejs_arches} noarch
%endif
# nodejs-modules embeds yarn and requires nodejs
BuildRequires: ovirt-engine-nodejs-modules >= 2.2.0
%if 0%{?enable_autotools}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
%endif
%package dashboard
Summary: Dashboard for Cockpit based on %{product}
BuildArch: noarch
Requires: cockpit
Requires: cockpit-storaged
Requires: ovirt-hosted-engine-setup >= 2.6.1
Requires: otopi >= 1.10.0
Requires: ansible-core
Requires: gluster-ansible-roles
%description
This package provides a Cockpit dashboard for use with %{product}.
%description dashboard
This package provides a Cockpit dashboard for use with %{product}.
%prep
%setup -q -n %{source_basename}
%if "%{yarn_install}" == "yes"
%{warn:Building the rpm with a yarn online install is dangerous, use of ovirt-engine-nodejs-modules is highly recommended.}
%else
# Setup yarn and the nodejs-modules via ovirt-engine-nodejs-modules
pushd dashboard
source %{_datadir}/ovirt-engine-nodejs-modules/setup-env.sh
popd
%endif
%build
%if 0%{?enable_autotools}
autoreconf -ivf
%endif
export PATH="%{_datadir}/ovirt-engine-nodejs-modules/bin:${PATH}"
%if "%{yarn_install}" == "yes"
%configure --with-yarn-install
%else
%configure
%endif
make
%install
make install DESTDIR=%{buildroot}
# Create /var/lib/ovirt-hosted-engine-setup/cockpit
install -dm 700 %{buildroot}%{_sharedstatedir}/ovirt-hosted-engine-setup/cockpit
# Create cockpit conf file to disable inactivity timeout
mkdir -p %{buildroot}/etc/cockpit/
cat <<__EOF__ >%{buildroot}/etc/cockpit/cockpit.conf
[Session]
IdleTimeout=0
__EOF__
%files dashboard
%doc README.md
%license LICENSE
%config /etc/cockpit/cockpit.conf
%{_plugindir}/ovirt-dashboard
%dir %attr(700, root, root) %{_sharedstatedir}/ovirt-hosted-engine-setup/cockpit
%changelog
* Thu Dec 08 2022 Shubha Kulkarni <shubha.kulkarni@oracle.com> - 0.16.2-1
- Updated deps for gluster-ansible-roles
* Mon Aug 08 2022 Asaf Rachmani <arachman@redhat.com> - 0.16.2-1
- Updated deps
* Thu Jul 14 2022 Asaf Rachmani <arachman@redhat.com> - 0.16.1-1
- Hosted Engine deployment fixes
* Mon Mar 21 2022 Sandro Bonazzola <sbonazzo@redhat.com> - 0.16.0-1
- Updated nodejs build deps
- Updated deps for oVirt 4.5.0
* Tue Aug 03 2021 Aviv Turgeman <aturgema@redhat.com> - 0.15.1-1
- Bump to 0.15.1
* Tue May 04 2021 Sandro Bonazzola <sbonazzo@redhat.com> - 0.15.0-1
- Javascript dependencies updates
- Fixes for cockpit changes in RHEL 8.4
* Thu Feb 25 2021 Aviv Turgeman <aturgema@redhat.com> - 0.14.20-1
- Gluster storage deployment fixes
* Tue Jan 19 2021 Aviv Turgeman <aturgema@redhat.com> - 0.14.19-1
- Gluster storage deployment fixes
* Tue Dec 29 2020 Aviv Turgeman <aturgema@redhat.com> - 0.14.18-1
- Gluster storage deployment fixes
* Wed Dec 16 2020 Aviv Turgeman <aturgema@redhat.com> - 0.14.17-1
- Gluster storage deployment fixes
* Thu Dec 10 2020 Aviv Turgeman <aturgema@redhat.com> - 0.14.16-1
- Gluster storage deployment fixes
* Sun Nov 29 2020 Aviv Turgeman <aturgema@redhat.com> - 0.14.15-1
- Gluster storage deployment fixes
* Thu Nov 12 2020 Aviv Turgeman <aturgema@redhat.com> - 0.14.14-1
- Gluster storage deployment fixes
* Tue Nov 3 2020 Aviv Turgeman <aturgema@redhat.com> - 0.14.13-1
- Gluster storage deployment fixes
* Wed Oct 14 2020 Gal Zaidman <gzaidman@redhat.com> - 0.14.12-1
- Gluster storage deployment fixes
* Tue Aug 18 2020 Aviv Turgeman <aturgema@redhat.com> - 0.14.11-1
- Gluster storage deployment fixes
* Sat Jun 20 2020 Aviv Turgeman <aturgema@redhat.com> - 0.14.10-1
- Gluster storage deployment fixes
* Tue Jun 09 2020 Gal Zaidman <gzaidman@redhat.com> - 0.14.9-1
- Gluster storage deployment fixes
* Tue Jun 09 2020 Gal Zaidman <gzaidman@redhat.com> - 0.14.8-1
- Gluster storage deployment fixes
* Tue May 26 2020 Gal Zaidman <gzaidman@redhat.com> - 0.14.7-1
- Gluster storage deployment fixes
* Tue May 05 2020 Gal Zaidman <gzaidman@redhat.com> - 0.14.6-1
- Gluster storage deployment fixes
* Fri Apr 17 2020 Sandro Bonazzola <sbonazzo@redhat.com> - 0.14.5-1
- Gluster storage deployment fixes
- Cockpit timeout configuration fixes
* Wed Apr 08 2020 Sandro Bonazzola <sbonazzo@redhat.com> - 0.14.4-1
- Gluster storage deployment fixes
* Fri Mar 20 2020 Sandro Bonazzola <sbonazzo@redhat.com> - 0.14.3-1
- Gluster storage deployment fixes
* Wed Mar 04 2020 Gal Zaidman <gzaidman@redhat.com> - 0.14.2-1
- Gluster storage deployment fixes
* Tue Jan 21 2020 Evgeny Slutsky <eslutsky@redhat.com> - 0.14.1-1
- Gluster storage deployment fixes
* Fri Nov 22 2019 Sandro Bonazzola <sbonazzo@redhat.com> - 0.14.0-1
- Rebase on upstream 0.14.0
- Initial release on el8