fwts/fwts.spec

77 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# 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
Version: 0.24.13_git201111102129
Release: 1
License: GPLv2+
Summary: Firmware Test Suite
Url: http://kernel.ubuntu.com/git?p=cking/fwts/.git
Group: Development/Tools/Other
Source: %{name}-%{version}.tar.bz2
Patch: fwts-opensuse.patch
Patch1: fwts-linking.patch
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)
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
%setup -q
%patch
%patch1
%build
autoreconf -fiv
export CFLAGS="%optflags -fno-strict-aliasing"
%configure --disable-static
make %{?_smp_mflags}
%install
%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
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/klog.json
%{_datadir}/%{name}/syntaxcheck.json
%{_mandir}/man1/fwts*.1.gz
%{_bindir}/fwts
%{_libdir}/libfwts*.so*
%changelog