-
Notifications
You must be signed in to change notification settings - Fork 0
/
openstack-tuskar-ui-extras.spec
64 lines (50 loc) · 2.35 KB
/
openstack-tuskar-ui-extras.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
%global srcname tuskar-ui-extras
Name: openstack-tuskar-ui-extras
Version: XXX
Release: XXX{?dist}
Summary: Additional plugins for Tuskar-ui
License: ASL 2.0
# URL: https://github.com/stackforge/%{srcname}/
# FIXME: tarball generated (the one provided by github fails to build)
# git clone https://github.com/stackforge/tuskar-ui-extras
# make source
# Source0: %{srcname}-%{version}.tar.gz
URL: https://github.com/rdo-management/%{srcname}
Source0: https://github.com/rdo-management/%{srcname}/archive/%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-pbr
Requires: openstack-tuskar-ui
Requires: python-oauthlib
Requires: python-requests-oauthlib
%description
Additional plugins for Tuskar-ui
- Tuskar-UI Boxes is a plugin for the Tuskar-UI application
that improves the looks of the deployment overview page, by
visualising the nodes to be deployed in a form of small colored boxes.
- Tuskar-UI Sat6 is a plugin for the Tuskar-UI application
that adds integration with Red Hat's Satellite 6 service.7
%prep
%setup -q -n %{srcname}-%{upstream_version}
rm requirements.txt test-requirements.txt
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
# Enable tuskar_boxes and tuskar_sat_ui panels in Infrastructure dashboard
mkdir -p %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/enabled
cp _60_tuskar_boxes.py.example %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/enabled/_60_tuskar_boxes.py
cp _60_tuskar_sat_ui.py.example %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/enabled/_60_tuskar_sat_ui.py
%files
%doc README.rst ChangeLog
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{python2_sitelib}/*
%{_datadir}/openstack-dashboard/openstack_dashboard/local/enabled/_60_tuskar_boxes.py*
%{_datadir}/openstack-dashboard/openstack_dashboard/local/enabled/_60_tuskar_sat_ui.py*
%changelog
* Tue Apr 21 2015 Jiri Tomasek <[email protected]> - 0.0.1-2
- Remove %post compression and copying static files to openstack-dashboard (it is done automatically by Horizon's systemd scriptlet when httpd restarts)
* Mon Mar 16 2015 Jiri Tomasek <[email protected]> - 0.0.1-1
- Initial package