To prevent some of the bugs that we have due to conflicts in requirements, upper versions from Kilo's global requirements were used. RPM spec was also updated. Change-Id: I37253e700bd6c7c1b409f20f4c422056eac2bf13 Closes-Bug: #1483203
67 lines
1.6 KiB
RPMSpec
67 lines
1.6 KiB
RPMSpec
%define name python-fuelclient
|
|
%{!?version: %define version 7.0.0}
|
|
%{!?release: %define release 1}
|
|
|
|
Summary: Console utility for working with fuel rest api
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: %{release}
|
|
Source0: %{name}-%{version}.tar.gz
|
|
License: Apache
|
|
Group: Development/Libraries
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
Prefix: %{_prefix}
|
|
BuildArch: noarch
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-pbr > 0.7
|
|
BuildRequires: python-pbr < 1.0
|
|
|
|
Requires: python >= 2.6
|
|
Requires: python <= 2.7
|
|
|
|
Requires: python-argparse == 1.2.1
|
|
|
|
Requires: PyYAML >= 3.1.0
|
|
Requires: PyYAML <= 3.10
|
|
|
|
Requires: python-requests >= 2.1.0
|
|
Requires: python-requests <= 2.2.1
|
|
|
|
Requires: python-keystoneclient >= 1:0.10.0
|
|
Requires: python-keystoneclient < 1:1.4.0
|
|
|
|
Requires: python-cliff >= 1.7.0
|
|
Requires: python-cliff <= 1.9.0
|
|
|
|
Requires: python-six >= 1.7.0
|
|
Requires: python-six <= 1.9.0
|
|
|
|
Requires: python-oslo-serialization >= 1.0.0
|
|
Requires: python-oslo-serialization < 1.5.0
|
|
|
|
Requires: python-oslo-i18n >= 1.3.0
|
|
Requires: python-oslo-i18n < 1.6.0
|
|
|
|
Requires: python-oslo-utils < 1:1.5.0
|
|
|
|
Requires: python-oslo-config < 1:1.10.0
|
|
|
|
%description
|
|
Summary: Console utility for working with fuel rest api
|
|
|
|
%prep
|
|
%setup -cq -n %{name}-%{version}
|
|
|
|
%build
|
|
cd %{_builddir}/%{name}-%{version} && python setup.py build
|
|
|
|
%install
|
|
cd %{_builddir}/%{name}-%{version} && python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/INSTALLED_FILES
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{_builddir}/%{name}-%{version}/INSTALLED_FILES
|
|
%defattr(-,root,root)
|