X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pypcilib.spec;h=8e58828cc0ffe19d9c143a5dcc12f57f9d141ec0;hb=d15a7dd87af440474e3fffeb8d8d45bdd5e139af;hp=3426a41f720a638911df859ce6c2a32a7765054f;hpb=2e7627a37a5b6a7a82d48a1d5ee9c9ccd3e9964d;p=pypcilib.git diff --git a/pypcilib.spec b/pypcilib.spec index 3426a41..8e58828 100644 --- a/pypcilib.spec +++ b/pypcilib.spec @@ -1,16 +1,17 @@ -# -# $Id$ -# %define url $URL$ %define name pypcilib %define version 0.2 -%define taglevel 7 +%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} @@ -40,12 +41,12 @@ 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}" touch %{buildroot}%{python_sitelib}/pypcimap.py{c,o} touch %{buildroot}%{python_sitelib}/pypci.py{c,o} @@ -63,12 +64,23 @@ rm -fr "%{buildroot}" %ghost %{python_sitelib}/pypci.pyc %ghost %{python_sitelib}/pypci.pyo # xxx - quick'n dirty -%if "%{distroname}" == "f9" || "%{distroname}" == "f10" || "%{distroname}" == "f11" +%if ("%{distro}" == "Fedora" && %{distrorelease} >= 9) || ("%{distro}" == "SL" && %{distrorelease} >= 6) || ("%{distro}" == "CentOS") %{python_sitelib}/pypciscan*.egg-info %endif %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 + +* Sun Dec 27 2009 Thierry Parmentelat - pypcilib-0.2-9 +- fix build for fedora 12 + +* Mon Aug 10 2009 Stephen Soltesz - pypcilib-0.2-8 +- Add e1000e to the greylist + * Tue May 26 2009 Thierry Parmentelat - pypcilib-0.2-7 - ready for fedora11