Files
python-fuelclient/specs/python-fuelclient.spec
Roman Prykhodchenko 3bc4a9e613 Synchronized RPM spec with Python requiremensts
Since Python requirements were changed several times
there is a need to update RPM spec to match both
requirements.txt and Mirantis mirror.

Closes-bug: #1477127
Change-Id: I1d5d50f8f9d593c40b76489f5482b4ac6642a6fb
2015-07-28 11:48:48 +00:00

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.1.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.2.0
Requires: python-oslo-i18n >= 1.3.0
Requires: python-oslo-i18n <= 1.7.0
Requires: python-oslo-utils < 1:2.0.0
Requires: python-oslo-config < 1:2.0.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)