forked from kimchi-project/ginger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ginger.spec.in
98 lines (77 loc) · 2.78 KB
/
ginger.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
Name: ginger
Version: @PACKAGE_VERSION@
Release: @PACKAGE_RELEASE@%{?dist}
Summary: Host management plugin for Wok - Webserver Originated from Kimchi
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}
Group: System Environment/Base
License: LGPL/ASL2
Source0: %{name}-%{version}.tar.gz
BuildRequires: gettext-devel >= 0.17
BuildRequires: python-cheetah
Requires: gettext >= 0.17
Requires: wok
Requires: tuned
Requires: libuser-python
Requires: lm_sensors
Requires: hddtemp
%ifarch ppc64 ppc
Requires: powerpc-utils
Requires: serviceable.event.provider
%endif
%description
Ginger is a host management plugin for Wok (Webserver Originated from Kimchi),
that provides an intuitive web panel with common tools for configuring and
operating Linux systems. Kimchi is a Wok plugin for managing KVM/Qemu virtual
machines.
%prep
%setup
%build
%configure
make
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
%clean
rm -rf $RPM_BUILD_ROOT
%post
%if 0%{?with_systemd}
install -dm 0755 /usr/lib/systemd/system/wokd.service.requires
ln -sf ../tuned.service /usr/lib/systemd/system/wokd.service.requires
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
service wokd restart
%endif
%postun
%if 0%{?with_systemd}
rm -f /usr/lib/systemd/system/wokd.service.requires/tuned.service
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
service wokd restart
%endif
%files
%attr(-,root,root)
%{python_sitelib}/wok/plugins/ginger/*.py*
%{python_sitelib}/wok/plugins/ginger/API.json
%{python_sitelib}/wok/plugins/ginger/controls/*.py*
%{python_sitelib}/wok/plugins/ginger/models/*.py*
%{_prefix}/share/locale/*/LC_MESSAGES/ginger.mo
%{_datadir}/wok/plugins/ginger/ui/config/tab-ext.xml
%{_datadir}/wok/plugins/ginger/ui/css/base/images/*.gif
%{_datadir}/wok/plugins/ginger/ui/css/base/images/*.png
%{_datadir}/wok/plugins/ginger/ui/css/ginger.css
%{_datadir}/wok/plugins/ginger/ui/css/host-admin.css
%{_datadir}/wok/plugins/ginger/ui/js/host-admin.js
%{_datadir}/wok/plugins/ginger/ui/js/util.js
%{_datadir}/wok/plugins/ginger/ui/pages/help/ginger-help.css
%{_datadir}/wok/plugins/ginger/ui/pages/help/en_US/host-admin.html
%{_datadir}/wok/plugins/ginger/ui/pages/help/pt_BR/host-admin.html
%{_datadir}/wok/plugins/ginger/ui/pages/help/zh_CN/host-admin.html
%{_datadir}/wok/plugins/ginger/ui/pages/host-admin.html.tmpl
%{_datadir}/wok/plugins/ginger/ui/pages/i18n.json.tmpl
%{_sysconfdir}/wok/plugins.d/ginger.conf
%changelog
* Thu Oct 2 2014 Rodrigo Trujillo <[email protected]>
- Add Help pages for Ginger
- Change build system to enable and release Help pages
* Wed Jul 2 2014 Paulo Vital <[email protected]> 1.2.1
- Changed the package name from kimchi-ginger to ginger.
* Wed Apr 16 2014 Zhou Zheng Sheng <[email protected]> 1.2.0
- Initial release of Kimchi-ginger dedicated RPM package.