X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pypcilib.spec;h=22009c2a0bf00f4eb73a3bc5548b1f116f862a75;hb=872b2ec5b6bd23444a599512e2569a744acd7b7f;hp=d943b9b0c192fe2fd0e5224cd7538499bf546a9b;hpb=ad830bf8924a78a04280df24277c31b77f73bfee;p=pypcilib.git diff --git a/pypcilib.spec b/pypcilib.spec index d943b9b..22009c2 100644 --- a/pypcilib.spec +++ b/pypcilib.spec @@ -1,16 +1,17 @@ -# -# $Id$ -# %define url $URL$ %define name pypcilib %define version 0.2 -%define taglevel 10 +%define taglevel 11 %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)")} + +# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation +# Turn off the brp-python-bytecompile automagic +%global _python_bytecompile_extra 0 Summary: Python library for doing PCI stuff Name: %{name} @@ -27,6 +28,7 @@ URL: %(echo %{url} | cut -d ' ' -f 2) Source0: pypcilib-%{version}.tar.bz2 Requires: /sbin/lspci +BuildRequires: python2-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -un) @@ -40,12 +42,14 @@ libpci from pciutils, and to parse the modules.pcimap file. %build -%{__python} setup.py build +%{__python2} setup.py build %install rm -fr "%{buildroot}" -%{__python} setup.py install -O1 --skip-build --root "%{buildroot}" +%{__python2} setup.py install -O1 --skip-build --root "%{buildroot}" +%py_byte_compile %{__python2} %{buildroot}%{_datadir}/pypcimap +%py_byte_compile %{__python2} %{buildroot}%{_datadir}/pypci touch %{buildroot}%{python_sitelib}/pypcimap.py{c,o} touch %{buildroot}%{python_sitelib}/pypci.py{c,o} @@ -69,6 +73,8 @@ rm -fr "%{buildroot}" %changelog +* Mon Feb 11 2013 Stephen Soltesz - pypcilib-0.2-11 + * Fri Mar 11 2011 S.Çağlar Onur - pypcilib-0.2-10 - Supoprt SL6