diff --git a/.cvsignore b/.cvsignore index e69de29..723126e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +python-hwdata-1.2.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..762ab7b --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-hwdata-1_2-1_el6:EL-5:python-hwdata-1.2-1.el6.src.rpm:1272528008 diff --git a/python-hwdata.spec b/python-hwdata.spec new file mode 100644 index 0000000..8db2945 --- /dev/null +++ b/python-hwdata.spec @@ -0,0 +1,51 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%endif + +Name: python-hwdata +Version: 1.2 +Release: 1%{?dist} +Summary: Python bindings to hwdata package +BuildArch: noarch +Group: Development/Libraries +License: GPLv2 +URL: https://fedorahosted.org/spacewalk +Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: python-devel +Requires: hwdata + +%description +Provide python interface to database stored in hwdata package. +It allows you to get human readable description of USB and PCI devices. + +%prep +%setup -q + + +%build +#nothing to do here + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/%{python_sitelib} +install -p -m 644 hwdata.py $RPM_BUILD_ROOT/%{python_sitelib} + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENSE example.py +%doc html +%{python_sitelib}/* + + +%changelog +* Mon Apr 26 2010 Miroslav Suchý 1.2-1 +- 585138 - change %%files section and patial support for python3 + +* Fri Apr 23 2010 Miroslav Suchý 1.1-1 +- initial release diff --git a/sources b/sources index e69de29..e1001be 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +54859c631716a32ef2e028bdba6be644 python-hwdata-1.2.tar.gz