Fix rpm requirements
Use version var instead hardcode Change-Id: I96423be016d26602718ffb1423bd616cb9d5d0d9 Conflicts: specs/octane.spec
This commit is contained in:
parent
730fc2c747
commit
8c93b2f06c
@ -12,30 +12,33 @@ License: Apache
|
||||
Group: Applications/System
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||
Prefix: /opt
|
||||
BuildRequires: git
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-pbr
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: git
|
||||
Requires: python
|
||||
Requires: patch
|
||||
Requires: pip
|
||||
Requires: tar
|
||||
Requires: pssh
|
||||
Requires: python-pbr
|
||||
Requires: python-setuoptools
|
||||
|
||||
|
||||
%define _prefix /opt/
|
||||
Requires: python-paramiko
|
||||
Requires: python-stevedore
|
||||
Requires: python-fuelclient
|
||||
Requires: python-cliff
|
||||
|
||||
%description
|
||||
Project is aimed to validate if more or less simple upgrade of MOS 5.1+
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%setup -cq -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
cd %{_builddir}/%{name}-%{version} && OSLO_PACKAGE_VERSION=%{version} python setup.py egg_info && cp octane.egg-info/PKG-INFO . && python setup.py build
|
||||
|
||||
%install
|
||||
install -d -m 755 $RPM_BUILD_ROOT/opt/%{name}
|
||||
cp -rf * $RPM_BUILD_ROOT/opt/%{name}
|
||||
cd %{_builddir}/%{name}-%{version} && python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/INSTALLED_FILES
|
||||
|
||||
%files -f %{_builddir}/%{name}-%{version}/INSTALLED_FILES
|
||||
%defattr(-,root,root)
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
Loading…
Reference in New Issue
Block a user