|
|
f068c8 |
# Copyright 2015, International Business Machines
|
|
|
f068c8 |
#
|
|
|
f068c8 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
f068c8 |
# you may not use this file except in compliance with the License.
|
|
|
f068c8 |
# You may obtain a copy of the License at
|
|
|
f068c8 |
#
|
|
|
f068c8 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
f068c8 |
#
|
|
|
f068c8 |
# Unless required by applicable law or agreed to in writing, software
|
|
|
f068c8 |
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
f068c8 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
f068c8 |
# See the License for the specific language governing permissions and
|
|
|
f068c8 |
# limitations under the License.
|
|
|
f068c8 |
#
|
|
|
f068c8 |
# zlib-devel 1.2.8 is better, but 1.2.7 should work too
|
|
|
f068c8 |
#
|
|
|
f068c8 |
# The following switch tries to take care that the distros libz.so is been taken:
|
|
|
f068c8 |
# CONFIG_ZLIB_PATH=%%{_libdir}/libz.so
|
|
|
f068c8 |
# No special libz build should be needed anymore, since we added the right
|
|
|
f068c8 |
# dependency to the spec file. We want to have a zlib-devel installed.
|
|
|
f068c8 |
#
|
|
|
f068c8 |
|
|
|
f068c8 |
Summary: GenWQE userspace tools
|
|
|
f068c8 |
Name: genwqe-tools
|
|
|
f068c8 |
Version: 4.0.18
|
|
|
f068c8 |
Release: 2%{?dist}
|
|
|
f068c8 |
License: ASL 2.0
|
|
|
f068c8 |
URL: https://github.com/ibm-genwqe/genwqe-user/
|
|
|
f068c8 |
BuildRequires: zlib-devel >= 1.2.7
|
|
|
f068c8 |
BuildRequires: help2man
|
|
|
f068c8 |
%ifarch %{power64}
|
|
|
f068c8 |
BuildRequires: libcxl-devel
|
|
|
f068c8 |
%endif
|
|
|
f068c8 |
Source0: https://github.com/ibm-genwqe/genwqe-user/archive/v%{version}.tar.gz
|
|
|
f068c8 |
Patch0: genwqe-user-4.0.18-config.patch
|
|
|
f068c8 |
Patch1: genwqe-user-4.0.18-fix-32-bits-arch.patch
|
|
|
f068c8 |
|
|
|
f068c8 |
%description
|
|
|
f068c8 |
Provide a suite of utilities to manage and configure the IBM GenWQE card.
|
|
|
f068c8 |
|
|
|
f068c8 |
%package -n genwqe-zlib
|
|
|
f068c8 |
Summary: GenWQE hardware accelerated libz
|
|
|
f068c8 |
%description -n genwqe-zlib
|
|
|
f068c8 |
GenWQE hardware accelerated libz and test-utilities.
|
|
|
f068c8 |
|
|
|
f068c8 |
%package -n genwqe-vpd
|
|
|
f068c8 |
Summary: GenWQE adapter VPD tools
|
|
|
f068c8 |
%description -n genwqe-vpd
|
|
|
f068c8 |
The genwqe-vpd package contains GenWQE adapter VPD tools.
|
|
|
f068c8 |
|
|
|
f068c8 |
%package -n genwqe-zlib-devel
|
|
|
f068c8 |
Summary: Development files for %{name}
|
|
|
f068c8 |
Requires: genwqe-zlib%{?_isa} = %{version}-%{release}
|
|
|
f068c8 |
|
|
|
f068c8 |
%description -n genwqe-zlib-devel
|
|
|
f068c8 |
The genwqe-zlib-devel package contains libraries and header files for
|
|
|
f068c8 |
developing applications that use %{name}.
|
|
|
f068c8 |
|
|
|
f068c8 |
%package -n genwqe-zlib-static
|
|
|
f068c8 |
Summary: Static library files for %{name}
|
|
|
f068c8 |
Requires: genwqe-zlib-devel%{?_isa} = %{version}-%{release}
|
|
|
f068c8 |
|
|
|
f068c8 |
%description -n genwqe-zlib-static
|
|
|
f068c8 |
The genwqe-zlib-static package contains static libraries for
|
|
|
f068c8 |
developing applications that use %{name}.
|
|
|
f068c8 |
|
|
|
f068c8 |
%prep
|
|
|
f068c8 |
%autosetup -p1 -n genwqe-user-%{version}
|
|
|
f068c8 |
|
|
|
f068c8 |
%build
|
|
|
f068c8 |
|
|
|
f068c8 |
make %{?_smp_mflags} tools lib VERSION=%{version} CONFIG_ZLIB_PATH=%{_libdir}/libz.so
|
|
|
f068c8 |
|
|
|
f068c8 |
%install
|
|
|
f068c8 |
make %{?_smp_mflags} install DESTDIR=%{buildroot}/%{_prefix} \
|
|
|
f068c8 |
VERSION=%{version} SYSTEMD_UNIT_DIR=%{buildroot}/%{_unitdir} \
|
|
|
f068c8 |
LIB_INSTALL_PATH=%{buildroot}/%{_libdir}/genwqe \
|
|
|
f068c8 |
INCLUDE_INSTALL_PATH=%{buildroot}/%{_includedir}/genwqe
|
|
|
f068c8 |
|
|
|
f068c8 |
# create manpages
|
|
|
f068c8 |
for f in genwqe_mt_perf genwqe_test_gz ; do
|
|
|
f068c8 |
help2man --help-option="-h" --version-string="%{vesion}" -N \
|
|
|
f068c8 |
--output=%{buildroot}%{_mandir}/man1/$f.1 \
|
|
|
f068c8 |
--name "IBM Hardware Accelerator Tool." tools/$f
|
|
|
f068c8 |
done
|
|
|
f068c8 |
|
|
|
f068c8 |
# move genwqe_vpd.csv to expected location.
|
|
|
f068c8 |
mkdir -p %{buildroot}/%{_sysconfdir}/
|
|
|
f068c8 |
install -m 0644 tools/genwqe_vpd.csv %{buildroot}/etc/
|
|
|
f068c8 |
|
|
|
f068c8 |
# remove libz stuff
|
|
|
f068c8 |
rm %{buildroot}%{_libdir}/genwqe/libz.*
|
|
|
f068c8 |
mv %{buildroot}%{_libdir}/genwqe/* %{buildroot}%{_libdir}/
|
|
|
f068c8 |
rmdir %{buildroot}%{_libdir}/genwqe/
|
|
|
f068c8 |
|
|
|
f068c8 |
%post -n genwqe-zlib -p /sbin/ldconfig
|
|
|
f068c8 |
%postun -n genwqe-zlib -p /sbin/ldconfig
|
|
|
f068c8 |
|
|
|
f068c8 |
%files -n genwqe-tools
|
|
|
f068c8 |
%license LICENSE
|
|
|
f068c8 |
%{_bindir}/genwqe_echo
|
|
|
f068c8 |
%{_bindir}/genwqe_ffdc
|
|
|
f068c8 |
%{_bindir}/genwqe_cksum
|
|
|
f068c8 |
%{_bindir}/genwqe_memcopy
|
|
|
f068c8 |
%{_bindir}/genwqe_peek
|
|
|
f068c8 |
%{_bindir}/genwqe_poke
|
|
|
f068c8 |
%{_bindir}/genwqe_update
|
|
|
f068c8 |
|
|
|
f068c8 |
%{_bindir}/genwqe_gunzip
|
|
|
f068c8 |
%{_bindir}/genwqe_gzip
|
|
|
f068c8 |
%{_bindir}/genwqe_test_gz
|
|
|
f068c8 |
%{_bindir}/genwqe_mt_perf
|
|
|
f068c8 |
%{_bindir}/zlib_mt_perf
|
|
|
f068c8 |
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_echo.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_ffdc.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_gunzip.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_gzip.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_cksum.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_memcopy.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_peek.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_poke.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_update.1*
|
|
|
f068c8 |
%{_mandir}/man1/zlib_mt_perf.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_test_gz.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_mt_perf.1*
|
|
|
f068c8 |
%exclude %{_mandir}/man1/gzFile_test.1*
|
|
|
f068c8 |
|
|
|
f068c8 |
%ifarch %{power64}
|
|
|
f068c8 |
%{_bindir}/genwqe_maint
|
|
|
f068c8 |
%{_bindir}/genwqe_loadtree
|
|
|
f068c8 |
/%{_unitdir}/genwqe_maint.service
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_maint.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_loadtree.1*
|
|
|
f068c8 |
%endif
|
|
|
f068c8 |
|
|
|
f068c8 |
%files -n genwqe-zlib
|
|
|
f068c8 |
%license LICENSE
|
|
|
f068c8 |
%{_libdir}/*.so.*
|
|
|
f068c8 |
|
|
|
f068c8 |
%files -n genwqe-vpd
|
|
|
f068c8 |
%license LICENSE
|
|
|
f068c8 |
%config(noreplace) %{_sysconfdir}/genwqe_vpd.csv
|
|
|
f068c8 |
%{_bindir}/genwqe_csv2vpd
|
|
|
f068c8 |
%{_bindir}/genwqe_vpdconv
|
|
|
f068c8 |
%{_bindir}/genwqe_vpdupdate
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_csv2vpd.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_vpdconv.1*
|
|
|
f068c8 |
%{_mandir}/man1/genwqe_vpdupdate.1*
|
|
|
f068c8 |
|
|
|
f068c8 |
%files -n genwqe-zlib-devel
|
|
|
f068c8 |
%dir %{_includedir}/genwqe
|
|
|
f068c8 |
%{_includedir}/genwqe/*
|
|
|
f068c8 |
%{_libdir}/*.so
|
|
|
f068c8 |
|
|
|
f068c8 |
%files -n genwqe-zlib-static
|
|
|
f068c8 |
%{_libdir}/*.a
|
|
|
f068c8 |
|
|
|
f068c8 |
%changelog
|
|
|
f068c8 |
* Tue Apr 04 2017 Rafael Fonseca <rdossant@redhat.com> - 4.0.18-2
|
|
|
f068c8 |
- Remove dynamically linked test binary.
|
|
|
f068c8 |
|
|
|
f068c8 |
* Tue Mar 14 2017 Rafael Fonseca <rdossant@redhat.com> - 4.0.18-1
|
|
|
f068c8 |
- Import package from Fedora.
|