auto-import dmidecode-2.4-1.1 on branch devel from
dmidecode-2.4-1.1.src.rpm
This commit is contained in:
parent
45fcf92a0f
commit
a09c31f70b
@ -0,0 +1 @@
|
||||
dmidecode-2.4.tar.gz
|
58
dmidecode.spec
Normal file
58
dmidecode.spec
Normal file
@ -0,0 +1,58 @@
|
||||
Summary: Tool to analyse BIOS DMI data.
|
||||
Name: dmidecode
|
||||
Version: 2.4
|
||||
Release: %(R="$Revision: 1.1 $"; RR="${R##: }"; echo ${RR%%?})
|
||||
Serial: 1
|
||||
Group: System Environment/Base
|
||||
License: GPL
|
||||
Source0: dmidecode-2.4.tar.gz
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||
BuildPreReq: /usr/bin/aclocal /usr/bin/automake /usr/bin/autoconf
|
||||
ExclusiveArch: i386 x86_64 ia64
|
||||
|
||||
%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
|
||||
mkdir -p %{buildroot}/usr/man
|
||||
|
||||
cd dmidecode-2.4
|
||||
make
|
||||
cd ..
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/usr/share/man/man{1,8}
|
||||
|
||||
cd ../dmidecode-2.4
|
||||
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
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
|
||||
%changelog
|
||||
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
|
||||
- Initial packaging, based upon kernel-utils package.
|
||||
|
Loading…
Reference in New Issue
Block a user