dmidecode/dmidecode.spec
2005-04-15 08:13:46 +00:00

69 lines
1.6 KiB
RPMSpec

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