54 lines
1.6 KiB
RPMSpec
54 lines
1.6 KiB
RPMSpec
%global full_release cloudkitty-dashboard-%{version}
|
|
|
|
Name: cloudkitty-dashboard
|
|
Summary: OpenStack Rating (cloudkitty) - Dashboard
|
|
Version: @VERSION@
|
|
Release: 1%{?dist}
|
|
License: ASL 2.0
|
|
Group: System Environment/Base
|
|
URL: http://github.com/openstack/cloudkitty-dashboard
|
|
Source0: %{full_release}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: git
|
|
BuildRequires: python-cloudkittyclient
|
|
BuildRequires: python-keystoneclient
|
|
BuildRequires: python-sphinx
|
|
BuildRequires: python-pbr
|
|
|
|
Requires: openstack-dashboard
|
|
Requires: python-cloudkittyclient
|
|
|
|
%prep
|
|
%setup -q -n %{full_release}
|
|
|
|
# make doc build compatible with python-oslo-sphinx RPM
|
|
sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py
|
|
|
|
# Remove the requirements file so that pbr hooks don't add it
|
|
# to distutils requires_dist config
|
|
rm -rf {test-,}requirements.txt tools/{pip,test}-requires
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
|
|
mkdir -p %{buildroot}/usr/share/openstack-dashboard/openstack_dashboard/enabled/
|
|
ln -s %{python_sitelib}/cloudkittydashboard/enabled/_[0-9]*.py \
|
|
%{buildroot}/usr/share/openstack-dashboard/openstack_dashboard/enabled/
|
|
|
|
%files
|
|
%{python_sitelib}/*
|
|
/usr/share/openstack-dashboard/openstack_dashboard/enabled/*
|
|
|
|
%description
|
|
OpenStack Rating-as-a-Service - Dashboard
|
|
|
|
%changelog
|
|
* Mon Oct 19 2015 Stéphane Albert <stephane.albert@objectif-libre.com> - @VERSION@
|
|
- Updated with new enabled files
|
|
* Wed May 20 2015 Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> - @VERSION@
|
|
- Initial release
|