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 BuildRequires: pciutils-devel
29 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 pciutils' libpci, and to parse the modules.pcimap file.
43 CFLAGS="%{optflags}" %{__python} setup.py build
48 %{__python} setup.py install -O1 --skip-build --root "%{buildroot}"
49 touch %{buildroot}%{python_sitearch}/pypcimap.py{c,o}
57 %defattr(-,root,root,-)
58 %{python_sitearch}/pypciscan.so
59 %{python_sitearch}/pypcimap.py
60 %ghost %{python_sitearch}/pypcimap.pyc
61 %ghost %{python_sitearch}/pypcimap.pyo
65 * Mon Nov 19 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.1-1