Dave Jones a09c31
Summary:        Tool to analyse BIOS DMI data.
Dave Jones a09c31
Name:           dmidecode
Dave Jones 3372fd
Version:        2.6
Dave Jones efff92
Release: 	%(R="$Revision: 1.12 $"; RR="${R##: }"; echo ${RR%%?})
Dave Jones b19f4c
Epoch:		1
Dave Jones a09c31
Group:          System Environment/Base
Dave Jones a09c31
License:        GPL
Dave Jones efff92
Source0:	dmidecode-2.6.tar.bz2
Dave Jones a09c31
Buildroot:      %{_tmppath}/%{name}-%{version}-root
Dave Jones a09c31
BuildPreReq: 	/usr/bin/aclocal /usr/bin/automake /usr/bin/autoconf
Dave Jones a09c31
ExclusiveArch:	i386 x86_64 ia64
Dave Jones 7ea52e
Obsoletes:	kernel-utils
Dave Jones a09c31
Dave Jones a09c31
%description
Dave Jones a09c31
dmidecode decodes the DMI data present in x86 and IA64 BIOS's.
Dave Jones a09c31
Dave Jones a09c31
%prep
Dave Jones a09c31
%setup -q -c -a 0
Dave Jones a09c31
Dave Jones a09c31
%build
Dave Jones a09c31
rm -rf $RPM_BUILD_ROOT
Dave Jones a09c31
mkdir -p %{buildroot}/usr/sbin
Dave Jones 2f9bf6
cd dmidecode-2.6
Dave Jones 1c988e
make CFLAGS="$RPM_OPT_FLAGS"
Dave Jones a09c31
cd ..
Dave Jones a09c31
Dave Jones a09c31
%install
Dave Jones 2f9bf6
cd dmidecode-2.6
Dave Jones a09c31
install dmidecode %{buildroot}/usr/sbin
Dave Jones a09c31
install vpddecode %{buildroot}/usr/sbin
Dave Jones a09c31
%ifarch %{ix86}
Dave Jones a09c31
install ownership %{buildroot}/usr/sbin 
Dave Jones a09c31
%endif
Dave Jones a09c31
Dave Jones a09c31
chmod -R a-s %{buildroot}
Dave Jones a09c31
%clean
Dave Jones a09c31
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
Dave Jones a09c31
Dave Jones a09c31
%files
Dave Jones a09c31
%defattr(-,root,root)
Dave Jones a09c31
/usr/sbin/dmidecode
Dave Jones a09c31
/usr/sbin/vpddecode
Dave Jones a09c31
%ifarch %{ix86}
Dave Jones a09c31
/usr/sbin/ownership
Dave Jones a09c31
%endif
Dave Jones a09c31
Dave Jones a09c31
%preun
Dave Jones a09c31
Dave Jones a09c31
%post
Dave Jones a09c31
Dave Jones a09c31
%changelog
Dave Jones 3372fd
* Wed Mar  2 2005 Dave Jones <davej@redhat.com>
Dave Jones 3372fd
- Update to upstream 2.6
Dave Jones 3372fd
Dave Jones 3505d6
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
Dave Jones 3505d6
- Rebuild for gcc4
Dave Jones 3505d6
Dave Jones b64467
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
Dave Jones b64467
- Rebuild with -D_FORTIFY_SOURCE=2
Dave Jones b64467
Dave Jones 6b1ed8
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
Dave Jones 6b1ed8
- Add missing Obsoletes: kernel-utils
Dave Jones 6b1ed8
Dave Jones 8e813c
* Mon Jan 10 2005 Dave Jones <davej@redhat.com>
Dave Jones 8e813c
- Update to upstream 2.5 release.
Dave Jones 8e813c
Dave Jones 8e813c
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
Dave Jones a09c31
- Initial packaging, based upon kernel-utils package.
Dave Jones a09c31