forked from kimchi-project/ginger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ginger.spec.in
128 lines (100 loc) · 4.02 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
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
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
BuildArch: noarch
BuildRequires: gettext-devel >= 0.17
Requires: gettext >= 0.17
Requires: wok >= 2.1.0
Requires: ginger-base
Requires: libuser-python
Requires: libvirt
Requires: python-ethtool
Requires: python-ipaddr
Requires: python-magic
Requires: python-netaddr
Requires: python-augeas
Requires: libvirt-python
%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/control/*.py*
%{python_sitelib}/wok/plugins/ginger/model/*.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/images/*.svg
%{_datadir}/wok/plugins/ginger/ui/js/*.js
%{_datadir}/wok/plugins/ginger/ui/pages/*.html.tmpl
%{_datadir}/wok/plugins/ginger/ui/pages/help/ginger-help.css
%{_datadir}/wok/plugins/ginger/ui/pages/help/*/*.html
%{_datadir}/wok/plugins/ginger/ui/pages/tabs/*.html.tmpl
%{_datadir}/wok/plugins/ginger/ui/pages/i18n.json.tmpl
%{_sysconfdir}/wok/plugins.d/ginger.conf
%{_sysconfdir}/systemd/system/wokd.service.d/ginger.conf
%changelog
* Wed Mar 23 2016 Daniel Henrique Barboza <dhbarboza82@gmail.com>
- Removed 'pyparted' from dependencies because it is a Ginger-base dependency
- Removed 'python-cheetah' from build dependencies
- Added wok version restriction >= 2.1.0
* Tue Mar 1 2016 Daniel Henrique Barboza <dhbarboza82@gmail.com>
- added ui/images/*.svg in %files
* Sat Feb 6 2016 Chandra Shekhar Reddy Potula <chandra@linux.vnet.ibm.com>
- Add libvirt service dependencies to Ginger
* Mon Jan 25 2016 Daniel Henrique Barboza <dhbarboza82@gmail.com>
- Changed 'controls' dir to 'control' in %files
- Added %{_datadir}/wok/plugins/ginger/ui/pages/*.html.tmpl to %files
- Changed 'models' dir to 'model' in %files
* Fri Dec 25 2015 Daniel Henrique Barboza <dhbarboza82@gmail.com>
- Changed %files to include all ui/js/*.js js files
- Changed %files to include all ui/pages/help/*/*.html help files
- Changed %files to include all ui/pages/tabs/*.html.tmpl tabs
* Wed Dec 16 2015 Daniel Henrique Barboza <dhbarboza82@gmail.com>
- Removed 'host-admin.css' from %files
- added 'ui/js/ginger-bootgrid.js' in %files
* Fri Dec 11 2015 Daniel Henrique Barboza <dhbarboza82@gmail.com>
- Added ui/pages/tabs/host-admin.html.tmpl to %files
* Fri Nov 27 2015 Chandra Shekhar Reddy Potula <chandra@linux.vnet.ibm.com>
- Add missing dependencies for Ginger
* Thu Oct 2 2014 Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>
- Add Help pages for Ginger
- Change build system to enable and release Help pages
* Wed Jul 2 2014 Paulo Vital <pvital@linux.vnet.ibm.com> 1.2.1
- Changed the package name from kimchi-ginger to ginger.
* Wed Apr 16 2014 Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com> 1.2.0
- Initial release of Kimchi-ginger dedicated RPM package.