summaryrefslogtreecommitdiff
path: root/packaging/dmidecode.spec
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-03-06 02:03:09 -0800
committerAnas Nashif <anas.nashif@intel.com>2013-03-06 02:03:09 -0800
commit294fb44c744d4639910d0c37e9512bd989ccd4bb (patch)
tree458ee2dcc18d7c2d91156e733afb099127bd9be7 /packaging/dmidecode.spec
parent4d209bcd49f0c61ac166d2f6a8810b4dcee01841 (diff)
downloaddmidecode-294fb44c744d4639910d0c37e9512bd989ccd4bb.tar.gz
dmidecode-294fb44c744d4639910d0c37e9512bd989ccd4bb.tar.bz2
dmidecode-294fb44c744d4639910d0c37e9512bd989ccd4bb.zip
add packaging
Diffstat (limited to 'packaging/dmidecode.spec')
-rw-r--r--packaging/dmidecode.spec46
1 files changed, 46 insertions, 0 deletions
diff --git a/packaging/dmidecode.spec b/packaging/dmidecode.spec
new file mode 100644
index 0000000..c9299bc
--- /dev/null
+++ b/packaging/dmidecode.spec
@@ -0,0 +1,46 @@
+Name: dmidecode
+Url: http://www.nongnu.org/dmidecode/
+Version: 2.11
+Release: 0
+License: GPL-2.0+
+Group: System/Base
+Summary: DMI table decoder
+Source: %{name}-%{version}.tar.bz2
+ExclusiveArch: %ix86 x86_64
+
+%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).
+
+Beware that DMI data have proven to be too unreliable to be blindly
+trusted. Dmidecode does not scan your hardware, it only reports what
+the BIOS told it to.
+
+%prep
+%setup
+
+%build
+make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
+
+%install
+install -dm 755 %{buildroot}/usr/sbin
+install -dm 755 %{buildroot}%{_mandir}/man8
+install -dm 755 %{buildroot}%{_docdir}/%{name}
+for i in dmidecode vpddecode ownership biosdecode ; do
+install -m 755 $i %{buildroot}/usr/sbin/
+install -m 644 man/$i.8 %{buildroot}%{_mandir}/man8/
+done
+
+%files
+%defattr(-,root,root)
+%license LICENSE
+/usr/sbin/*
+/%{_mandir}/man8/*
+
+%changelog