Install patch files to proper path

Patches are being installed to incorrect hardcoded path.
Change the path to be dependent on the version of python in the RPM
spec.

Change-Id: Ieb967f95318e19e616fd96459c3bfb28cbb8730c
Closes-bug: 1557734
This commit is contained in:
Oleg Gelbukh 2016-03-15 19:28:08 +00:00
parent 61cdc15a72
commit fd880d34eb
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
include AUTHORS
include ChangeLog
include octane/patches/*
exclude .gitignore
global-exclude *.pyc

View File

@ -37,7 +37,7 @@ installations to version 9.0.
cd %{_builddir}/%{name}-%{version} && OSLO_PACKAGE_VERSION=%{version} python setup.py egg_info && cp octane.egg-info/PKG-INFO . && 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 && cp -vr octane/patches ${RPM_BUILD_ROOT}/usr/lib/python2.6/site-packages/octane/ && echo /usr/lib/python2.6/site-packages/octane/patches >> %{_builddir}/%{name}-%{version}/INSTALLED_FILES
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