Integrate several specfile cleanups from Robert Scheck. (#172543)
This commit is contained in:
parent
953b5ab922
commit
6b3e14af22
@ -1,50 +1,54 @@
|
|||||||
Summary: Tool to analyse BIOS DMI data.
|
Summary: Tool to analyse BIOS DMI data.
|
||||||
Name: dmidecode
|
Name: dmidecode
|
||||||
Version: 2.7
|
Version: 2.7
|
||||||
Release: %(R="$Revision: 1.17 $"; RR="${R##: }"; echo ${RR%%?})
|
Release: %(R="$Revision: 1.18 $"; RR="${R##: }"; echo ${RR%%?})
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPL
|
License: GPL
|
||||||
Source0: dmidecode-%{version}.tar.bz2
|
Source0: dmidecode-%{version}.tar.bz2
|
||||||
|
URL: http://www.nongnu.org/dmidecode/
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
BuildPreReq: /usr/bin/aclocal /usr/bin/automake /usr/bin/autoconf
|
BuildPreReq: /usr/bin/aclocal /usr/bin/automake /usr/bin/autoconf
|
||||||
ExclusiveArch: i386 x86_64
|
ExclusiveArch: i386 x86_64
|
||||||
Obsoletes: kernel-utils
|
Obsoletes: kernel-utils
|
||||||
|
|
||||||
%description
|
%description
|
||||||
dmidecode decodes the DMI data present in x86 and IA64 BIOS's.
|
dmidecode reports information about x86 hardware as described in the
|
||||||
|
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).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -a 0
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p %{buildroot}/usr/sbin
|
|
||||||
cd dmidecode-%{version}
|
|
||||||
make CFLAGS="$RPM_OPT_FLAGS"
|
make CFLAGS="$RPM_OPT_FLAGS"
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd dmidecode-%{version}
|
rm -rf $RPM_BUILD_ROOT
|
||||||
install dmidecode %{buildroot}/usr/sbin
|
make DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install-man
|
||||||
install vpddecode %{buildroot}/usr/sbin
|
|
||||||
%ifarch %{ix86}
|
|
||||||
install ownership %{buildroot}/usr/sbin
|
|
||||||
%endif
|
|
||||||
|
|
||||||
chmod -R a-s %{buildroot}
|
|
||||||
%clean
|
%clean
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/sbin/dmidecode
|
%doc AUTHORS CHANGELOG LICENSE README
|
||||||
/usr/sbin/vpddecode
|
%{_sbindir}/dmidecode
|
||||||
%ifarch %{ix86}
|
%{_sbindir}/vpddecode
|
||||||
/usr/sbin/ownership
|
%{_sbindir}/ownership
|
||||||
%endif
|
%{_sbindir}/biosdecode
|
||||||
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 28 2005 Dave Jones <davej@redhat.com>
|
||||||
|
- Integrate several specfile cleanups from Robert Scheck. (#172543)
|
||||||
|
|
||||||
* Sat Sep 24 2005 Dave Jones <davej@redhat.com>
|
* Sat Sep 24 2005 Dave Jones <davej@redhat.com>
|
||||||
- Revert yesterdays patch, its unneeded in 2.7
|
- Revert yesterdays patch, its unneeded in 2.7
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user