rpm: make sure /usr/bin/python (not /bin/python) is used

Otherwise rpm will fail to resolve dependencies (no package provides
/bin/python).
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-08 00:44:39 +02:00
parent bf140ae175
commit c34427e264
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -84,7 +84,8 @@ python setup.py build
%install
### Appmenus
python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# force /usr/bin before /bin to have /usr/bin/python instead of /bin/python
PATH="/usr/bin:$PATH" python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/qubes-rpc/policy
cp qubesappmenus/qubes.SyncAppMenus $RPM_BUILD_ROOT/etc/qubes-rpc/