X-Git-Url: http://git.onelab.eu/?p=pypcilib.git;a=blobdiff_plain;f=pypcilib.spec;h=0b49cdc783bc42b3df428af9c1b13af5bd2f1d2b;hp=9ff74a817cc8520245b907abe17433e651eadaf2;hb=dcd1c83597647b6b3e6893a340b91a02a50f7f77;hpb=8649b5e40e98d00afddcb5b903d46d2444fdba59 diff --git a/pypcilib.spec b/pypcilib.spec index 9ff74a8..0b49cdc 100644 --- a/pypcilib.spec +++ b/pypcilib.spec @@ -4,7 +4,7 @@ %define url $URL$ %define name pypcilib -%define version 0.1 +%define version 0.2 %define taglevel 1 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} @@ -24,10 +24,10 @@ Distribution: PlanetLab %{plrelease} #URL: http://svn.planet-lab.org/wiki/pypcilib URL: %(echo %{url} | cut -d ' ' -f 2) -BuildRequires: pciutils-devel - Source0: pypcilib-%{version}.tar.bz2 +Requires: /sbin/lspci + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -un) %description @@ -40,13 +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_sitearch}/pypcimap.py{c,o} +touch %{buildroot}%{python_sitelib}/pypcimap.py{c,o} +touch %{buildroot}%{python_sitelib}/pypci.py{c,o} %clean @@ -55,12 +56,17 @@ rm -fr "%{buildroot}" %files %defattr(-,root,root,-) -%{python_sitearch}/pypciscan.so -%{python_sitearch}/pypcimap.py -%ghost %{python_sitearch}/pypcimap.pyc -%ghost %{python_sitearch}/pypcimap.pyo +%{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