X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pypcilib.spec;h=0b49cdc783bc42b3df428af9c1b13af5bd2f1d2b;hb=dcd1c83597647b6b3e6893a340b91a02a50f7f77;hp=35c427d6a3e4bbb6128b192317ced758162cd59c;hpb=7dae859585f8c35f94b579923f4dcdb81090c062;p=pypcilib.git diff --git a/pypcilib.spec b/pypcilib.spec index 35c427d..0b49cdc 100644 --- a/pypcilib.spec +++ b/pypcilib.spec @@ -1,20 +1,34 @@ +# +# $Id$ +# +%define url $URL$ + +%define name pypcilib +%define version 0.2 +%define taglevel 1 + +%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)")} Summary: Python library for doing PCI stuff -Name: pypcilib -Version: 0.1 -Release: 1 +Name: %{name} +Version: %{version} +Release: %{release} License: BSD -URL: http://svn.planet-lab.org/wiki/pypcilib Group: System Environment/Libraries -BuildRequires: pciutils-devel +Packager: PlanetLab Central +Distribution: PlanetLab %{plrelease} +#URL: http://svn.planet-lab.org/wiki/pypcilib +URL: %(echo %{url} | cut -d ' ' -f 2) Source0: pypcilib-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -un) +Requires: /sbin/lspci +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -un) %description pypcilib is a Python library to scan PCI devices using @@ -26,12 +40,14 @@ pciutils' libpci, and to parse the modules.pcimap file. %build -CFLAGS="%{optflags}" %{__python} setup.py build +%{__python} setup.py build %install rm -fr "%{buildroot}" %{__python} setup.py install -O1 --skip-build --root "%{buildroot}" +touch %{buildroot}%{python_sitelib}/pypcimap.py{c,o} +touch %{buildroot}%{python_sitelib}/pypci.py{c,o} %clean @@ -40,10 +56,17 @@ rm -fr "%{buildroot}" %files %defattr(-,root,root,-) -%{python_sitearch}/pypciscan.so %{python_sitelib}/pypcimap.py +%ghost %{python_sitelib}/pypcimap.pyc +%ghost %{python_sitelib}/pypcimap.pyo +%{python_sitelib}/pypci.py +%ghost %{python_sitelib}/pypci.pyc +%ghost %{python_sitelib}/pypci.pyo %changelog +* Fri Mar 14 2008 Daniel Hokka Zakrisson - 0.2-1 +- Remove pypciscan library, reimplemented in Python + * Mon Nov 19 2007 Daniel Hokka Zakrisson - 0.1-1 - initial release