File dmidecode.spec of Package dmidecode

#
# spec file for package dmidecode (Version 2.10)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# norootforbuild

Name:		dmidecode
Version:	2.10
Release:	0
License:	GPLv2
Source:         %name-%{version}.tar.bz2
Group:		System/Monitoring
Summary:	Tool to Analyse BIOS DMI Data
Packager:       Miniwark <miniwark@yahoo.com>

Buildroot:      %{_tmppath}/%{name}-%{version}-build
Autoreqprov:	on
URL:		http://www.nongnu.org/dmidecode/

ExcludeArch:	ia64
Conflicts:	drakxtools-backend <= 10.3-0.64mdk
Obsoletes:	kernel-utils

%description
Dmidecode reports information about your system's hardware as described in your system BIOS
according to the SMBIOS/DMI standard. This information typically includes system manufacturer,
model name, serial number, BIOS version, asset tag as well as a lot of other details of varying
level of interest and reliability depending on the manufacturer. This will often include usage status
for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of 
I/O ports (e.g. serial, parallel, USB).

DMI data can be used to enable or disable specific portions of kernel code depending on the 
specific hardware. Thus, one use of dmidecode is for kernel developers to detect system "signatures"
and add them to the kernel source code when needed.

Authors:
--------
    Jean Delvare <khali@linux-fr.org>
    Alan Cox <alan@redhat.com>
    Matt Domsch <Matt_Domsch@dell.com>
    Arjan van de Ven <arjanv@redhat.com>
    Mark D. Studebaker <mds@paradyne.com>
    Larry Lile <llile@dreamworks.com>
    Dave Johnson <ddj@cascv.brown.edu>
    Petter Reinholdtsen <pere@hungry.com>
    Roberto Nibali <ratz@tac.ch>
    John Cagle <jcagle@kernel.org>
    Jens Elkner <elkner@linofee.org>

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS"
make %{?jobs:-j %jobs}

%install
make DESTDIR=%buildroot prefix=%_prefix install-bin install-man

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc AUTHORS CHANGELOG LICENSE README
/usr/sbin/biosdecode
/usr/sbin/dmidecode
/usr/sbin/ownership
/usr/sbin/vpddecode
/usr/share/man/man8/biosdecode.8.gz
/usr/share/man/man8/dmidecode.8.gz
/usr/share/man/man8/ownership.8.gz
/usr/share/man/man8/vpddecode.8.gz

%changelog
* Tue Dec 02 2008 - mimiwark@yahoo.com
- initial packaging based on Fedora & Mandrake packages
openSUSE Build Service is sponsored by