summaryrefslogtreecommitdiffstats
path: root/BUILD.Linux/dmidecode.spec
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD.Linux/dmidecode.spec')
-rw-r--r--BUILD.Linux/dmidecode.spec47
1 files changed, 27 insertions, 20 deletions
diff --git a/BUILD.Linux/dmidecode.spec b/BUILD.Linux/dmidecode.spec
index 2474e61..54c0458 100644
--- a/BUILD.Linux/dmidecode.spec
+++ b/BUILD.Linux/dmidecode.spec
@@ -1,37 +1,44 @@
-%define shortname dmidecode
-%define name python-dmidecode
-%define version 0.1
-%define unmangled_version 0.1
-%define release 1
-
-Summary: Python wrapper around dmidecode
-Name: %{name}
-Version: %{version}
-Release: %{release}.%{dist}
+%define is_not_debian %(test -e /etc/debian_version && echo 1 || echo 0)
+
+Summary: Python extension module for dmidecode.
+Name: python-dmidecode
+Version: 2.10
+Release: 0%?{dist}
Requires: redhat-lsb
-Source: %{shortname}-%{unmangled_version}.tar.gz
+Source: %{name}-%{version}.tar.gz
License: GNU GPL v3
-Group: Development/Libraries
-BuildRoot: %{_tmppath}/%{shortname}-buildroot
+Group: System Environment/Libraries
+BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Vendor: Autonomy <dmidecode-devel@autonojects.net.au>
-BuildRequires: python-devel
+%{?!is_not_debian:BuildRequires: python-devel}
Url: http://projects.autonomy.net.au/dmidecode/
%description
-The python module for dmidecode, written in C.
+ The Desktop Management Interface provides a standardized description of
+ a computer's hardware, including characteristics such as BIOS serial
+ number and hardware connectors.
+
+ python-dmidecode provides an interface to the DMI data available from
+ the BIOS. It is intended to be used as a back-end tool by other
+ hardware detection programs implemented in python.
%prep
-%setup -n %{shortname}-%{unmangled_version}
-python setup.py clean
+%setup -q -n %{name}-%{version}
+python src/setup.py clean
%build
-python setup.py build
+python src/setup.py build
%install
-python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_OBJECTS
+python src/setup.py install --root=%{buildroot} --record=INSTALLED_OBJECTS
%clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
%files -f INSTALLED_OBJECTS
+
+%changelog
+* Fri Dec 19 2008 Nima Talebi <nima@it.net.au> - 2.10-0
+- Initial release
+