diff mbox

[1/2] fedora/fwts.spec: Add initial version of fwts.spec

Message ID 1484262210-9899-2-git-send-email-prarit@redhat.com
State Superseded
Headers show

Commit Message

Prarit Bhargava Jan. 12, 2017, 11:03 p.m. UTC
This is the first version of the Fedora/Red Hat rpm spec.

The resulting binary rpm contains

[root@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

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
---
 fedora/fwts.spec |   81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
 create mode 100644 fedora/fwts.spec

Comments

Prarit Bhargava Jan. 13, 2017, 1:36 p.m. UTC | #1
On 01/12/2017 06:03 PM, Prarit Bhargava wrote:
> This is the first version of the Fedora/Red Hat rpm spec.
> 
> The resulting binary rpm contains
> 
> [root@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
> 
> Signed-off-by: Prarit Bhargava <prarit@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..85447df60d19
> --- /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

One request I forgot to point out in the cover letter is verification of the
License.  I just want to get an ACK/NACK on GPLv2 as being correct.

P.
Colin Ian King Jan. 13, 2017, 1:44 p.m. UTC | #2
On 13/01/17 13:36, Prarit Bhargava wrote:
> On 01/12/2017 06:03 PM, Prarit Bhargava wrote:
>> This is the first version of the Fedora/Red Hat rpm spec.
>>
>> The resulting binary rpm contains
>>
>> [root@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
>>
>> Signed-off-by: Prarit Bhargava <prarit@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..85447df60d19
>> --- /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
> 
> One request I forgot to point out in the cover letter is verification of the
> License.  I just want to get an ACK/NACK on GPLv2 as being correct.
> 
> P.
> 
GPLv2 mostly, see debian/copyright
diff mbox

Patch

diff --git a/fedora/fwts.spec b/fedora/fwts.spec
new file mode 100644
index 000000000000..85447df60d19
--- /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
+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
+
+%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@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@redhat.com> 16.01.00
+- initial specfile creation
+- sync to stable V16.01.00