10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
13 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
15 Summary: Python library for doing PCI stuff
20 Group: System Environment/Libraries
22 Packager: PlanetLab Central <support@planet-lab.org>
23 Distribution: PlanetLab %{plrelease}
24 #URL: http://svn.planet-lab.org/wiki/pypcilib
25 URL: %(echo %{url} | cut -d ' ' -f 2)
27 Source0: pypcilib-%{version}.tar.bz2
31 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -un)
34 pypcilib is a Python library to scan PCI devices using
35 libpci from pciutils, and to parse the modules.pcimap file.
43 %{__python} setup.py build
48 %{__python} setup.py install -O1 --skip-build --root "%{buildroot}"
49 touch %{buildroot}%{python_sitelib}/pypcimap.py{c,o}
50 touch %{buildroot}%{python_sitelib}/pypci.py{c,o}
58 %defattr(-,root,root,-)
59 %{python_sitelib}/pypcimap.py
60 %ghost %{python_sitelib}/pypcimap.pyc
61 %ghost %{python_sitelib}/pypcimap.pyo
62 %{python_sitelib}/pypci.py
63 %ghost %{python_sitelib}/pypci.pyc
64 %ghost %{python_sitelib}/pypci.pyo
66 %if "%{distro}" == "Fedora" && %{distrorelease} >= 9
67 %{python_sitelib}/pypciscan*.egg-info
72 * Mon Aug 10 2009 Stephen Soltesz <soltesz@cs.princeton.edu> - pypcilib-0.2-8
73 - Add e1000e to the greylist
75 * Tue May 26 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - pypcilib-0.2-7
78 * Tue Apr 07 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - pypcilib-0.2-6
79 - use 8139too driver over 8139cp for realtek 8139 chipsets
81 * Thu Jan 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - pypcilib-0.2-5
82 - support for building on fedora 10
84 * Thu Dec 04 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - pypcilib-0.2-4
85 - somehow the versions in the specfile are wrong in tag 0.2-3
87 * Wed Sep 10 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - pypcilib-0.2-2
88 - fixes for building on f9/gcc-4.3 - no functional change
90 * Fri Mar 14 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.2-1
91 - Remove pypciscan library, reimplemented in Python
93 * Mon Nov 19 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.1-1