[PATCH 1/2 v2] fedora/fwts.spec: Add initial version of fwts.spec
Colin Ian King
colin.king at canonical.com
Fri Jan 13 16:37:37 UTC 2017
On 13/01/17 16:37, Prarit Bhargava wrote:
> On 01/13/2017 11:32 AM, Colin Ian King wrote:
>> On 13/01/17 14:02, Prarit Bhargava wrote:
>>> This is the first version of the Fedora/Red Hat rpm spec.
>>>
>>> The resulting binary rpm contains
>>>
>>> [root at intel-brickland-07 fedora]# rpm -qpl /root/rpmbuild/RPMS/x86_64/fwts-16-01.00.el7.x86_64.rpm
>>> /lib64/libfwts.so.1
>>> /lib64/libfwts.so.1.0.0
>>> /lib64/libfwtsacpica.so
>>> /lib64/libfwtsacpica.so.1
>>> /lib64/libfwtsacpica.so.1.0.0
>>> /lib64/libfwtsiasl.so
>>> /lib64/libfwtsiasl.so.1
>>> /lib64/libfwtsiasl.so.1.0.0
>>> /usr/bin/fwts
>>> /usr/bin/fwts-collect
>>> /usr/bin/fwts-frontend-text
>>> /usr/local/share/fwts/syntaxcheck.json
>>> /usr/share/fwts
>>> /usr/share/fwts/fwts-live-dialogrc
>>> /usr/share/fwts/klog.json
>>> /usr/share/man/man1/fwts-collect.1.gz
>>> /usr/share/man/man1/fwts-frontend-text.1.gz
>>> /usr/share/man/man1/fwts.1.gz
>>>
>>> [v2]: Update license to GPLv2, LGPL.
>>>
>>> Signed-off-by: Prarit Bhargava <prarit at redhat.com>
>>> ---
>>> fedora/fwts.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>> 1 file changed, 81 insertions(+)
>>> create mode 100644 fedora/fwts.spec
>>>
>>> diff --git a/fedora/fwts.spec b/fedora/fwts.spec
>>> new file mode 100644
>>> index 000000000000..36db2a602358
>>> --- /dev/null
>>> +++ b/fedora/fwts.spec
>>> @@ -0,0 +1,81 @@
>>> +# Only these 3 values need to change for package version control
>>> +%global major 16
>>> +%global minor 01
>>> +%global subminor 00
>>> +
>>> +%global tarversion V%{major}.%{minor}.%{subminor}
>>> +
>>> +Summary: Firmware Test Suite
>>> +
>>> +Name: fwts
>>> +Version: %{major}
>>> +Release: %{minor}.%{subminor}%{?dist}
>>> +License: GPLv2, LGPL
>>> +Source0: http://fwts.ubuntu.com/release/fwts-%{tarversion}.tar.gz
>>> +BuildRequires: acpica-tools glib-devel glib2-devel glib json-c-devel libtool automake autoconf dkms kernel-devel git
>>> +
>> Do we need bison and flex in the BuildRequires rule?
>
> They're already installed in my environment -- were they missing on F25? I'll
> add them.
Yep, it failed to build for me, I had to install them on my clean box.
>
> P.
>
>>
>>> +%description
>>> +Firmware Test Suite (FWTS) is a test suite that performs sanity checks on
>>> +Intel/AMD PC firmware. It is intended to identify BIOS and ACPI errors and if
>>> +appropriate it will try to explain the errors and give advice to help
>>> +workaround or fix firmware bugs. It is primarily intended to be a Linux-centric
>>> +firmware troubleshooting tool.
>>> +
>>> +%prep
>>> +%setup -a 0 -n fwts-%{tarversion} -c
>>> +git init
>>> +git config user.email "example at example.com"
>>> +git config user.name "RHEL Ninjas"
>>> +git add .
>>> +git commit -a -q -m "fwts %{tarversion} baseline."
>>> +# uncomment if patches need to be applied
>>> +#git am %{patches}
>>> +
>>> +# *** This is useful if testing patches against latest upstream version ***
>>> +# %setup -T -c -n fwts-%{tarversion}
>>> +# git clone git://kernel.ubuntu.com/hwe/fwts.git ./
>>> +# uncomment if patches need to be applied
>>> +# git am %{patches}
>>> +# ***
>>> +
>>> +%build
>>> +autoreconf -ivf
>>> +./configure
>>> +make %{?_smp_mflags}
>>> +
>>> +%install
>>> +mkdir -p $RPM_BUILD_ROOT/%{_bindir}
>>> +mkdir -p $RPM_BUILD_ROOT/%{_datarootdir}/fwts
>>> +mkdir -p $RPM_BUILD_ROOT/%{_lib}
>>> +mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
>>> +mkdir -p $RPM_BUILD_ROOT/usr/local/share/fwts
>>> +
>>> +install -m 755 src/.libs/fwts $RPM_BUILD_ROOT/%{_bindir}
>>> +install -m 755 live-image/fwts-frontend-text $RPM_BUILD_ROOT/%{_bindir}
>>> +install -m 755 scripts/fwts-collect $RPM_BUILD_ROOT/%{_bindir}
>>> +
>>> +install -m 644 live-image/fwts-live-dialogrc $RPM_BUILD_ROOT/%{_datarootdir}/fwts
>>> +install -m 644 data/klog.json $RPM_BUILD_ROOT/%{_datarootdir}/fwts
>>> +install -m 777 src/lib/src/.libs/libfwts.so.* $RPM_BUILD_ROOT/%{_lib}
>>> +install -m 777 src/acpica/.libs/libfwtsacpica.so* $RPM_BUILD_ROOT/%{_lib}
>>> +install -m 777 src/acpica/source/compiler/.libs/libfwtsiasl.so* $RPM_BUILD_ROOT/%{_lib}
>>> +install -m 644 doc/fwts-frontend-text.1 $RPM_BUILD_ROOT/%{_mandir}/man1
>>> +install -m 644 doc/fwts.1 $RPM_BUILD_ROOT/%{_mandir}/man1
>>> +install -m 644 doc/fwts-collect.1 $RPM_BUILD_ROOT/%{_mandir}/man1
>>> +install -m 644 data/syntaxcheck.json $RPM_BUILD_ROOT/usr/local/share/fwts
>>> +
>>> +%clean
>>> +%post
>>> +%postun
>>> +
>>> +%files
>>> +%{_bindir}/*
>>> +%{_datarootdir}/fwts
>>> +/%{_lib}/*
>>> +%{_mandir}/*/*
>>> +/usr/local/share/fwts/syntaxcheck.json
>>> +
>>> +%changelog
>>> +* Thu Jan 12 2017 Prarit Bhargava <prarit at redhat.com> 16.01.00
>>> +- initial specfile creation
>>> +- sync to stable V16.01.00
>>>
>>
>>
>>
>
More information about the fwts-devel
mailing list