diff --git a/dmidecode-2.12.tar.bz2.sig b/dmidecode-2.12.tar.bz2.sig new file mode 100644 index 0000000..4c2aa4c Binary files /dev/null and b/dmidecode-2.12.tar.bz2.sig differ diff --git a/dmidecode.changes b/dmidecode.changes index bd5d6a4..c24989a 100644 --- a/dmidecode.changes +++ b/dmidecode.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 20 20:55:12 UTC 2015 - mpluskal@suse.com + +- Cleanup spec file with spec-cleaner +- Add gpg signature + ------------------------------------------------------------------- Mon Oct 13 14:00:09 CEST 2014 - jdelvare@suse.de diff --git a/dmidecode.keyring b/dmidecode.keyring new file mode 100644 index 0000000..473a0f4 diff --git a/dmidecode.spec b/dmidecode.spec index ec0c4e6..34f1e9e 100644 --- a/dmidecode.spec +++ b/dmidecode.spec @@ -1,7 +1,7 @@ # # spec file for package dmidecode # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,23 +17,25 @@ Name: dmidecode -Url: http://www.nongnu.org/dmidecode/ Version: 2.12 Release: 0 -Provides: pmtools:/usr/sbin/dmidecode Summary: DMI table decoder License: GPL-2.0+ Group: System/Console -Source: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.bz2 +Url: http://www.nongnu.org/dmidecode/ +Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.bz2 +Source1: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.bz2.sig +Source2: %{name}.keyring Patch1: dmidecode-1.173-drop-cast.patch Patch2: dmidecode-1.175-fix-SMBIOS-2.8.0.patch Patch3: dmidecode-1.176-SMBIOS-2.8-is-supported.patch Patch4: dmidecode-1.177-decode-pcie3-slot-id.patch Patch5: dmidecode-1.181-decode-CPUID-recent-AMD.patch Patch6: dmidecode-1.182-decode-ddr4-memory-type.patch +Provides: pmtools:%{_sbindir}/dmidecode +Obsoletes: pmtools < 20071117 BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 ia64 x86_64 %arm aarch64 -Obsoletes: pmtools < 20071117 %description Dmidecode reports information about your system's hardware as described @@ -50,7 +52,7 @@ trusted. Dmidecode does not scan your hardware, it only reports what the BIOS told it to. %prep -%setup +%setup -q %patch1 -p1 %patch2 -p1 %patch3 -p1 @@ -59,10 +61,10 @@ the BIOS told it to. %patch6 -p1 %build -make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} +make CFLAGS="%{optflags}" %{?_smp_mflags} %install -install -dm 755 %{buildroot}/usr/sbin +install -dm 755 %{buildroot}%{_sbindir} install -dm 755 %{buildroot}%{_mandir}/man8 install -dm 755 %{buildroot}%{_docdir}/%{name} %ifarch ia64 %arm aarch64 @@ -70,15 +72,15 @@ for i in dmidecode ; do %else for i in dmidecode vpddecode ownership biosdecode ; do %endif -install -m 755 $i %{buildroot}/usr/sbin/ +install -m 755 $i %{buildroot}%{_sbindir}/ install -m 644 man/$i.8 %{buildroot}%{_mandir}/man8/ install -m 644 AUTHORS CHANGELOG LICENSE README %{buildroot}%{_docdir}/%{name}/ done %files %defattr(-,root,root) -/usr/sbin/* +%{_sbindir}/* %doc %{_docdir}/%{name} -/%{_mandir}/man8/* +%{_mandir}/man8/* %changelog