python is python2
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Nov 2019 10:56:00 +0000 (11:56 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Nov 2019 10:56:00 +0000 (11:56 +0100)
pypcilib.spec
pypcimap.py

index 895e2d6..6d24a9b 100644 (file)
@@ -1,6 +1,3 @@
-#
-# $Id$
-#
 %define url $URL$
 
 %define name pypcilib
 %define url $URL$
 
 %define name pypcilib
@@ -9,8 +6,8 @@
 
 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
 
 
 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
 
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%{!?python_sitelib: %define python_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitearch: %define python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 Summary: Python library for doing PCI stuff
 Name: %{name}
 
 Summary: Python library for doing PCI stuff
 Name: %{name}
@@ -40,12 +37,12 @@ libpci from pciutils, and to parse the modules.pcimap file.
 
 
 %build
 
 
 %build
-%{__python} setup.py build
+%{__python2} setup.py build
 
 
 %install
 rm -fr "%{buildroot}"
 
 
 %install
 rm -fr "%{buildroot}"
-%{__python} setup.py install -O1 --skip-build --root "%{buildroot}"
+%{__python2} setup.py install -O1 --skip-build --root "%{buildroot}"
 touch %{buildroot}%{python_sitelib}/pypcimap.py{c,o}
 touch %{buildroot}%{python_sitelib}/pypci.py{c,o}
 
 touch %{buildroot}%{python_sitelib}/pypcimap.py{c,o}
 touch %{buildroot}%{python_sitelib}/pypci.py{c,o}
 
index 5f81e17..fd3dd2d 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python -tt
+#!/usr/bin/python2 -tt
 # Copyright 2007 The Trustees of Princeton University
 # Author: Daniel Hokka Zakrisson
 # $Id$
 # Copyright 2007 The Trustees of Princeton University
 # Author: Daniel Hokka Zakrisson
 # $Id$