2011-12-12 05:38:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package fwts (Version 0.18.1)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fwts
|
2011-12-12 06:16:35 +01:00
|
|
|
Version: 0.24.13_git201111102129
|
|
|
|
Release: 1
|
|
|
|
License: GPLv2+
|
|
|
|
Summary: Firmware Test Suite
|
2011-12-12 05:38:31 +01:00
|
|
|
Url: http://kernel.ubuntu.com/git?p=cking/fwts/.git
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-12-12 06:16:35 +01:00
|
|
|
Patch: fwts-opensuse.patch
|
2012-02-01 18:49:58 +01:00
|
|
|
Patch1: fwts-linking.patch
|
2011-12-12 06:16:35 +01:00
|
|
|
BuildRequires: pciutils-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: libjson-devel
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: automake
|
|
|
|
Requires: acpica
|
|
|
|
Requires: dmidecode
|
|
|
|
Requires: pciutils
|
|
|
|
Requires: firmware(microcode.dat)
|
2011-12-12 05:38:31 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The FirmWare Test Suite (fwts) is a tool to do automatic testing of a PC's
|
|
|
|
firmware. There can be a lot of subtle or vexing Linux Kernel/firmware issues
|
|
|
|
caused when firmware is buggy, so it's useful to have a tool that can
|
|
|
|
automatically check for common BIOS and ACPI errors. Where possible the tool
|
|
|
|
will give some form of advice on how to fix issues or workaround firmware
|
|
|
|
issues.
|
|
|
|
|
|
|
|
%prep
|
2011-12-12 06:16:35 +01:00
|
|
|
%setup -q
|
|
|
|
%patch
|
2012-02-01 18:49:58 +01:00
|
|
|
%patch1
|
2011-12-12 05:38:31 +01:00
|
|
|
%build
|
2011-12-12 06:16:35 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
2011-12-12 05:38:31 +01:00
|
|
|
|
|
|
|
%install
|
2011-12-12 06:16:35 +01:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -print -delete
|
|
|
|
install -D -m 0644 data/klog.json %{buildroot}%{_datadir}/%{name}/klog.json
|
|
|
|
install -D -m 0644 data/syntaxcheck.json %{buildroot}%{_datadir}/%{name}/syntaxcheck.json
|
2011-12-12 05:38:31 +01:00
|
|
|
%clean
|
2011-12-12 06:16:35 +01:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
2011-12-12 05:38:31 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-12-12 06:16:35 +01:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/klog.json
|
|
|
|
%{_datadir}/%{name}/syntaxcheck.json
|
|
|
|
%{_mandir}/man1/fwts*.1.gz
|
|
|
|
%{_bindir}/fwts
|
|
|
|
%{_libdir}/libfwts*.so*
|
|
|
|
|
|
|
|
|
2011-12-12 05:38:31 +01:00
|
|
|
|
|
|
|
%changelog
|