2011-12-12 04:38:31 +00:00
|
|
|
#
|
2015-04-06 10:15:52 +00:00
|
|
|
# spec file for package fwts
|
2011-12-12 04:38:31 +00:00
|
|
|
#
|
2021-01-18 08:40:01 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-12-12 04:38:31 +00:00
|
|
|
#
|
2015-04-06 10:15:52 +00: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.
|
|
|
|
|
2018-08-31 11:58:23 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-12-12 04:38:31 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fwts
|
2021-09-29 08:21:49 +00:00
|
|
|
Version: 21.09.00
|
2015-04-06 10:15:52 +00:00
|
|
|
Release: 0
|
2011-12-12 05:16:35 +00:00
|
|
|
Summary: Firmware Test Suite
|
2018-03-08 08:53:03 +00:00
|
|
|
License: GPL-2.0-or-later
|
2011-12-12 04:38:31 +00:00
|
|
|
Group: Development/Tools/Other
|
2017-12-18 16:30:57 +00:00
|
|
|
URL: https://wiki.ubuntu.com/Kernel/Reference/fwts
|
2021-04-28 07:38:25 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2016-03-17 18:07:40 +00:00
|
|
|
# PATCH-FIX-OPENSUSE fwts-no-compiletime.patch
|
2015-07-14 09:13:23 +00:00
|
|
|
Patch1: fwts-no-compiletime.patch
|
2020-11-30 16:06:05 +00:00
|
|
|
# PATCH-FIX-OPENSUSE fwts-fix-non-acpi.patch
|
|
|
|
Patch2: fwts-fix-non-acpi.patch
|
2015-04-06 10:15:52 +00:00
|
|
|
BuildRequires: autoconf
|
2015-05-09 17:24:31 +00:00
|
|
|
BuildRequires: automake
|
2011-12-12 05:16:35 +00:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2017-06-08 09:45:52 +00:00
|
|
|
BuildRequires: libfdt-devel
|
2011-12-12 05:16:35 +00:00
|
|
|
BuildRequires: libtool
|
2016-05-19 16:28:50 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-12-18 16:30:57 +00:00
|
|
|
BuildRequires: pkgconfig(bash-completion)
|
2015-04-06 10:15:52 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2015-05-09 17:24:31 +00:00
|
|
|
BuildRequires: pkgconfig(json)
|
2018-08-31 11:58:23 +00:00
|
|
|
BuildRequires: pkgconfig(libbsd)
|
2015-05-09 17:24:31 +00:00
|
|
|
BuildRequires: pkgconfig(libpci)
|
|
|
|
BuildRequires: pkgconfig(libpcre)
|
2017-12-18 16:30:57 +00:00
|
|
|
Requires: bash-completion
|
2016-12-01 13:28:50 +00:00
|
|
|
Recommends: acpica
|
|
|
|
Recommends: dmidecode
|
|
|
|
Recommends: pciutils
|
2011-12-12 04:38:31 +00: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
|
2021-04-28 07:38:25 +00:00
|
|
|
%autosetup -p1
|
2015-04-06 10:15:52 +00:00
|
|
|
|
2011-12-12 04:38:31 +00:00
|
|
|
%build
|
2018-07-10 06:55:53 +00:00
|
|
|
find . -name Makefile.am -exec sed -i "s|-Werror||g" {} +
|
2015-07-14 09:13:23 +00:00
|
|
|
autoreconf -fiv
|
2015-04-06 10:15:52 +00:00
|
|
|
%configure \
|
|
|
|
--disable-static
|
2019-10-03 08:23:34 +00:00
|
|
|
%make_build
|
2011-12-12 04:38:31 +00:00
|
|
|
|
|
|
|
%install
|
2016-07-16 14:28:45 +00:00
|
|
|
%make_install
|
2015-04-06 10:15:52 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-07-16 14:28:45 +00: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 17:24:31 +00:00
|
|
|
# There are no headers, so drop remaining development files
|
2015-07-14 09:13:23 +00:00
|
|
|
rm -f "%{buildroot}/%{_libdir}/%{name}"/*.so
|
2011-12-12 04:38:31 +00:00
|
|
|
|
|
|
|
%files
|
2017-02-27 11:52:25 +00:00
|
|
|
%doc README README_ACPICA.txt README_SOURCE.txt ./data/README_JSON.txt
|
2020-05-26 12:03:18 +00:00
|
|
|
%doc debian/changelog
|
2011-12-12 05:16:35 +00:00
|
|
|
%{_bindir}/fwts
|
2015-04-06 10:15:52 +00:00
|
|
|
%{_bindir}/kernelscan
|
2016-02-25 12:11:51 +00:00
|
|
|
%{_libdir}/fwts
|
2018-04-06 07:47:36 +00:00
|
|
|
%{_mandir}/man1/fwts-collect.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/fwts-frontend-text.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/fwts.1%{?ext_man}
|
2017-12-18 16:30:57 +00:00
|
|
|
%{_datadir}/bash-completion/completions/fwts
|
2016-07-16 14:28:45 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
2018-08-31 11:58:23 +00:00
|
|
|
%{_datadir}/fwts/clog.json
|
2016-02-25 12:11:51 +00:00
|
|
|
%{_datadir}/fwts/klog.json
|
|
|
|
%{_datadir}/fwts/syntaxcheck.json
|
2016-05-19 16:28:50 +00:00
|
|
|
%{_datadir}/fwts/olog.json
|
2011-12-12 04:38:31 +00:00
|
|
|
|
|
|
|
%changelog
|