2011-12-12 05:38:31 +01:00
|
|
|
#
|
2015-04-06 12:15:52 +02:00
|
|
|
# spec file for package fwts
|
2011-12-12 05:38:31 +01:00
|
|
|
#
|
2017-01-02 15:41:39 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-12-12 05:38:31 +01:00
|
|
|
#
|
2015-04-06 12:15:52 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2011-12-12 05:38:31 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fwts
|
2017-03-24 10:23:59 +01:00
|
|
|
Version: 17.03.00
|
2015-04-06 12:15:52 +02:00
|
|
|
Release: 0
|
2011-12-12 06:16:35 +01:00
|
|
|
Summary: Firmware Test Suite
|
2015-04-06 12:15:52 +02:00
|
|
|
License: GPL-2.0+
|
2011-12-12 05:38:31 +01:00
|
|
|
Group: Development/Tools/Other
|
2015-04-06 12:15:52 +02:00
|
|
|
Url: https://wiki.ubuntu.com/Kernel/Reference/fwts
|
2015-06-16 11:08:53 +02:00
|
|
|
Source0: http://fwts.ubuntu.com/release/%{name}-V%{version}.tar.gz
|
2016-03-17 19:07:40 +01:00
|
|
|
# PATCH-FIX-OPENSUSE fwts-no-compiletime.patch
|
2015-07-14 11:13:23 +02:00
|
|
|
Patch1: fwts-no-compiletime.patch
|
2015-04-06 12:15:52 +02:00
|
|
|
BuildRequires: autoconf
|
2015-05-09 19:24:31 +02:00
|
|
|
BuildRequires: automake
|
2011-12-12 06:16:35 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libtool
|
2016-05-19 18:28:50 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-04-06 12:15:52 +02:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2015-05-09 19:24:31 +02:00
|
|
|
BuildRequires: pkgconfig(json)
|
|
|
|
BuildRequires: pkgconfig(libpci)
|
|
|
|
BuildRequires: pkgconfig(libpcre)
|
2016-12-01 14:28:50 +01:00
|
|
|
Recommends: acpica
|
|
|
|
Recommends: dmidecode
|
|
|
|
Recommends: pciutils
|
2011-12-12 05:38:31 +01:00
|
|
|
|
|
|
|
%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
|
2015-04-06 12:15:52 +02:00
|
|
|
%setup -q -c %{name}-%{version}
|
2016-05-19 18:28:50 +02:00
|
|
|
%patch1
|
2015-04-06 12:15:52 +02:00
|
|
|
|
2011-12-12 05:38:31 +01:00
|
|
|
%build
|
2015-07-14 11:13:23 +02:00
|
|
|
autoreconf -fiv
|
2015-04-06 12:15:52 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static
|
2011-12-12 06:16:35 +01:00
|
|
|
make %{?_smp_mflags}
|
2011-12-12 05:38:31 +01:00
|
|
|
|
|
|
|
%install
|
2016-07-16 16:28:45 +02:00
|
|
|
%make_install
|
2015-04-06 12:15:52 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-07-16 16:28:45 +02:00
|
|
|
install -D -p -m 0644 data/klog.json %{buildroot}%{_datadir}/%{name}/klog.json
|
|
|
|
install -D -p -m 0644 data/syntaxcheck.json %{buildroot}%{_datadir}/%{name}/syntaxcheck.json
|
2015-05-09 19:24:31 +02:00
|
|
|
# There are no headers, so drop remaining development files
|
2015-07-14 11:13:23 +02:00
|
|
|
rm -f "%{buildroot}/%{_libdir}/%{name}"/*.so
|
2011-12-12 05:38:31 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2017-02-27 12:52:25 +01:00
|
|
|
%doc README README_ACPICA.txt README_SOURCE.txt ./data/README_JSON.txt
|
2011-12-12 06:16:35 +01:00
|
|
|
%{_bindir}/fwts
|
2015-04-06 12:15:52 +02:00
|
|
|
%{_bindir}/kernelscan
|
2016-02-25 13:11:51 +01:00
|
|
|
%{_libdir}/fwts
|
|
|
|
%{_mandir}/man1/fwts-collect.1%{ext_man}
|
|
|
|
%{_mandir}/man1/fwts-frontend-text.1%{ext_man}
|
|
|
|
%{_mandir}/man1/fwts.1%{ext_man}
|
2016-07-16 16:28:45 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
2016-02-25 13:11:51 +01:00
|
|
|
%{_datadir}/fwts/klog.json
|
|
|
|
%{_datadir}/fwts/syntaxcheck.json
|
2016-05-19 18:28:50 +02:00
|
|
|
%{_datadir}/fwts/olog.json
|
2011-12-12 05:38:31 +01:00
|
|
|
|
|
|
|
%changelog
|