Change install prefix

This commit is contained in:
Ryabin Sergey 2015-08-05 13:13:18 +03:00
parent 81f4e8ca64
commit 2652eb7240

View File

@ -6,15 +6,12 @@ Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Summary: Fuel upgrade tool
URL: http://mirantis.com
Summary: MOS upgrade tool
URL: https://github.com/Mirantis/octane
License: Apache
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Prefix: %{_prefix}
BuildRequires: git
BuildRequires: python-setuptools
BuildRequires: python-pbr
Prefix: /opt
BuildArch: noarch
Requires: python
@ -22,20 +19,23 @@ Requires: patch
Requires: pip
Requires: tar
Requires: pssh
Requires: python-pbr
Requires: python-setuoptools
%define _prefix /opt/
%description
Project is aimed to validate if more or less simple upgrade of MOS 5.1+
%prep
%setup -cq -n %{name}-%{version}
%setup
%build
cd %{_builddir}/%{name}-%{version} && python setup.py build
%install
cd %{_builddir}/%{name}-%{version}
# stub
install -d -m 755 %{buildroot}%{_sysconfdir}/octane
install -d -m 755 $RPM_BUILD_ROOT/opt/%{name}
cp -rf * $RPM_BUILD_ROOT/opt/%{name}
%clean
rm -rf $RPM_BUILD_ROOT