diff options
| author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-19 04:07:06 +0000 |
|---|---|---|
| committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-19 04:07:06 +0000 |
| commit | 6249a27ea72b83726975bfa6771b226f325c1a95 (patch) | |
| tree | 5c8111b1bccd25848d425aa6e6d05265ca2ff24a /BUILD.Linux/dmidecode.spec | |
| parent | e620d0a9d88875c425741ad2d40579e61cdd15b0 (diff) | |
| download | python-dmidecode-6249a27ea72b83726975bfa6771b226f325c1a95.tar.gz python-dmidecode-6249a27ea72b83726975bfa6771b226f325c1a95.tar.xz python-dmidecode-6249a27ea72b83726975bfa6771b226f325c1a95.zip | |
Further work in enforcing the Debian policy in package based on advice from
`POX' and the documentation.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@119 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'BUILD.Linux/dmidecode.spec')
| -rw-r--r-- | BUILD.Linux/dmidecode.spec | 47 |
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 + |
