|
|
b38c1b |
# Copyright 2015, International Business Machines
|
|
|
b38c1b |
#
|
|
|
b38c1b |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
b38c1b |
# you may not use this file except in compliance with the License.
|
|
|
b38c1b |
# You may obtain a copy of the License at
|
|
|
b38c1b |
#
|
|
|
b38c1b |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
b38c1b |
#
|
|
|
b38c1b |
# Unless required by applicable law or agreed to in writing, software
|
|
|
b38c1b |
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
b38c1b |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
b38c1b |
# See the License for the specific language governing permissions and
|
|
|
b38c1b |
# limitations under the License.
|
|
|
b38c1b |
#
|
|
|
b38c1b |
# zlib-devel 1.2.8 is better, but 1.2.7 should work too
|
|
|
b38c1b |
#
|
|
|
b38c1b |
# The following switch tries to take care that the distros libz.so is been taken:
|
|
|
b38c1b |
# CONFIG_ZLIB_PATH=%%{_libdir}/libz.so
|
|
|
b38c1b |
# No special libz build should be needed anymore, since we added the right
|
|
|
b38c1b |
# dependency to the spec file. We want to have a zlib-devel installed.
|
|
|
b38c1b |
#
|
|
|
b38c1b |
|
|
|
b38c1b |
Summary: GenWQE userspace tools
|
|
|
b38c1b |
Name: genwqe-tools
|
|
|
b38c1b |
Version: 4.0.18
|
|
|
b38c1b |
Release: 6%{?dist}
|
|
|
b38c1b |
License: ASL 2.0
|
|
|
b38c1b |
URL: https://github.com/ibm-genwqe/genwqe-user/
|
|
|
b38c1b |
BuildRequires: zlib-devel >= 1.2.7
|
|
|
b38c1b |
BuildRequires: help2man
|
|
|
b38c1b |
%ifarch %{power64}
|
|
|
b38c1b |
BuildRequires: libcxl-devel
|
|
|
b38c1b |
%endif
|
|
|
b38c1b |
Source0: https://github.com/ibm-genwqe/genwqe-user/archive/v%{version}.tar.gz
|
|
|
b38c1b |
Patch0: genwqe-user-4.0.18-config.patch
|
|
|
b38c1b |
Patch1: genwqe-user-4.0.18-fix-32-bits-arch.patch
|
|
|
b38c1b |
Patch2: genwqe-user-4.0.18-upstream.patch
|
|
|
b38c1b |
Patch3: genwqe-user-4.0.18-disable-user-zlibpath.patch
|
|
|
b38c1b |
Patch4: genwqe-user-4.0.18-fix-for-genweq_chksum.patch
|
|
|
b38c1b |
|
|
|
b38c1b |
%description
|
|
|
b38c1b |
Provide a suite of utilities to manage and configure the IBM GenWQE card.
|
|
|
b38c1b |
|
|
|
b38c1b |
%package -n genwqe-zlib
|
|
|
b38c1b |
Summary: GenWQE hardware accelerated libz
|
|
|
b38c1b |
%description -n genwqe-zlib
|
|
|
b38c1b |
GenWQE hardware accelerated libz and test-utilities.
|
|
|
b38c1b |
|
|
|
b38c1b |
%package -n genwqe-vpd
|
|
|
b38c1b |
Summary: GenWQE adapter VPD tools
|
|
|
b38c1b |
%description -n genwqe-vpd
|
|
|
b38c1b |
The genwqe-vpd package contains GenWQE adapter VPD tools.
|
|
|
b38c1b |
|
|
|
b38c1b |
%package -n genwqe-zlib-devel
|
|
|
b38c1b |
Summary: Development files for %{name}
|
|
|
b38c1b |
Requires: genwqe-zlib%{?_isa} = %{version}-%{release}
|
|
|
b38c1b |
|
|
|
b38c1b |
%description -n genwqe-zlib-devel
|
|
|
b38c1b |
The genwqe-zlib-devel package contains libraries and header files for
|
|
|
b38c1b |
developing applications that use %{name}.
|
|
|
b38c1b |
|
|
|
b38c1b |
%package -n genwqe-zlib-static
|
|
|
b38c1b |
Summary: Static library files for %{name}
|
|
|
b38c1b |
Requires: genwqe-zlib-devel%{?_isa} = %{version}-%{release}
|
|
|
b38c1b |
|
|
|
b38c1b |
%description -n genwqe-zlib-static
|
|
|
b38c1b |
The genwqe-zlib-static package contains static libraries for
|
|
|
b38c1b |
developing applications that use %{name}.
|
|
|
b38c1b |
|
|
|
b38c1b |
%prep
|
|
|
b38c1b |
%autosetup -p1 -n genwqe-user-%{version}
|
|
|
b38c1b |
|
|
|
b38c1b |
%build
|
|
|
b38c1b |
|
|
|
b38c1b |
make %{?_smp_mflags} LDFLAGS="-Wl,-z,relro -Wl,-z,now" tools lib VERSION=%{version} CONFIG_ZLIB_PATH=%{_libdir}/libz.so
|
|
|
b38c1b |
|
|
|
b38c1b |
%install
|
|
|
b38c1b |
make %{?_smp_mflags} install DESTDIR=%{buildroot}/%{_prefix} \
|
|
|
b38c1b |
VERSION=%{version} SYSTEMD_UNIT_DIR=%{buildroot}/%{_unitdir} \
|
|
|
b38c1b |
LIB_INSTALL_PATH=%{buildroot}/%{_libdir}/genwqe \
|
|
|
b38c1b |
INCLUDE_INSTALL_PATH=%{buildroot}/%{_includedir}/genwqe
|
|
|
b38c1b |
|
|
|
b38c1b |
# move genwqe_vpd.csv to expected location.
|
|
|
b38c1b |
mkdir -p %{buildroot}/%{_sysconfdir}/
|
|
|
b38c1b |
install -m 0644 tools/genwqe_vpd.csv %{buildroot}/etc/
|
|
|
b38c1b |
|
|
|
b38c1b |
# remove libz stuff
|
|
|
b38c1b |
rm %{buildroot}%{_libdir}/genwqe/libz.*
|
|
|
b38c1b |
mv %{buildroot}%{_libdir}/genwqe/* %{buildroot}%{_libdir}/
|
|
|
b38c1b |
rmdir %{buildroot}%{_libdir}/genwqe/
|
|
|
b38c1b |
|
|
|
b38c1b |
%post -n genwqe-zlib -p /sbin/ldconfig
|
|
|
b38c1b |
%postun -n genwqe-zlib -p /sbin/ldconfig
|
|
|
b38c1b |
|
|
|
b38c1b |
%files -n genwqe-tools
|
|
|
b38c1b |
%license LICENSE
|
|
|
b38c1b |
%{_bindir}/genwqe_echo
|
|
|
b38c1b |
%{_bindir}/genwqe_ffdc
|
|
|
b38c1b |
%{_bindir}/genwqe_cksum
|
|
|
b38c1b |
%{_bindir}/genwqe_memcopy
|
|
|
b38c1b |
%{_bindir}/genwqe_peek
|
|
|
b38c1b |
%{_bindir}/genwqe_poke
|
|
|
b38c1b |
%{_bindir}/genwqe_update
|
|
|
b38c1b |
|
|
|
b38c1b |
%{_bindir}/genwqe_gunzip
|
|
|
b38c1b |
%{_bindir}/genwqe_gzip
|
|
|
b38c1b |
%{_bindir}/genwqe_test_gz
|
|
|
b38c1b |
%{_bindir}/genwqe_mt_perf
|
|
|
b38c1b |
%{_bindir}/zlib_mt_perf
|
|
|
b38c1b |
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_echo.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_ffdc.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_gunzip.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_gzip.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_cksum.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_memcopy.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_peek.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_poke.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_update.1*
|
|
|
b38c1b |
%{_mandir}/man1/zlib_mt_perf.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_test_gz.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_mt_perf.1*
|
|
|
b38c1b |
%exclude %{_mandir}/man1/gzFile_test.1*
|
|
|
b38c1b |
|
|
|
b38c1b |
%ifarch %{power64}
|
|
|
b38c1b |
%{_bindir}/genwqe_maint
|
|
|
b38c1b |
%{_bindir}/genwqe_loadtree
|
|
|
b38c1b |
/%{_unitdir}/genwqe_maint.service
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_maint.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_loadtree.1*
|
|
|
b38c1b |
%endif
|
|
|
b38c1b |
|
|
|
b38c1b |
%files -n genwqe-zlib
|
|
|
b38c1b |
%license LICENSE
|
|
|
b38c1b |
%{_libdir}/*.so.*
|
|
|
b38c1b |
|
|
|
b38c1b |
%files -n genwqe-vpd
|
|
|
b38c1b |
%license LICENSE
|
|
|
b38c1b |
%config(noreplace) %{_sysconfdir}/genwqe_vpd.csv
|
|
|
b38c1b |
%{_bindir}/genwqe_csv2vpd
|
|
|
b38c1b |
%{_bindir}/genwqe_vpdconv
|
|
|
b38c1b |
%{_bindir}/genwqe_vpdupdate
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_csv2vpd.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_vpdconv.1*
|
|
|
b38c1b |
%{_mandir}/man1/genwqe_vpdupdate.1*
|
|
|
b38c1b |
|
|
|
b38c1b |
%files -n genwqe-zlib-devel
|
|
|
b38c1b |
%dir %{_includedir}/genwqe
|
|
|
b38c1b |
%{_includedir}/genwqe/*
|
|
|
b38c1b |
%{_libdir}/*.so
|
|
|
b38c1b |
|
|
|
b38c1b |
%files -n genwqe-zlib-static
|
|
|
b38c1b |
%{_libdir}/*.a
|
|
|
b38c1b |
|
|
|
b38c1b |
%changelog
|
|
|
b38c1b |
* Tue Jan 09 2018 Than Ngo <than@redhat.com> - - 4.0.18-6
|
|
|
b38c1b |
- Related: bz#1532269, add -Wl,-z,relro to the linker flags in order to fix a rpmdiff
|
|
|
b38c1b |
|
|
|
b38c1b |
* Mon Jan 08 2018 Than Ngo <than@redhat.com> - 4.0.18-5
|
|
|
b38c1b |
- Resolves: bz#1532269, fixed genwqe_cksum when failed causes EEH
|
|
|
b38c1b |
|
|
|
b38c1b |
* Fri Nov 17 2017 Than Ngo <than@redhat.com> - 4.0.18-4
|
|
|
b38c1b |
- Resolves: bz#1513837, fixed potential arbitrary code execution bug
|
|
|
b38c1b |
|
|
|
b38c1b |
* Thu Oct 12 2017 Than Ngo <than@redhat.com> - 4.0.18-3
|
|
|
b38c1b |
- Resolves: bz#1456492, add backported patches from 4.0.19 branch
|
|
|
b38c1b |
|
|
|
b38c1b |
* Tue Apr 04 2017 Rafael Fonseca <rdossant@redhat.com> - 4.0.18-2
|
|
|
b38c1b |
- Remove dynamically linked test binary.
|
|
|
b38c1b |
|
|
|
b38c1b |
* Tue Mar 14 2017 Rafael Fonseca <rdossant@redhat.com> - 4.0.18-1
|
|
|
b38c1b |
- Import package from Fedora.
|