2016-06-29 13:34:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package genwqe-tools
|
|
|
|
#
|
2018-02-12 12:34:05 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-06-29 13:34:11 +00:00
|
|
|
# Copyright 2015, International Business Machines
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2017-10-16 12:27:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
Summary: GenWQE userspace tools
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Tools
|
|
|
|
Name: genwqe-tools
|
2018-02-12 12:34:05 +00:00
|
|
|
Version: 4.0.20
|
2017-10-16 12:27:21 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Url: https://github.com/ibm-genwqe/genwqe-user/
|
|
|
|
Requires: zlib >= 1.2.7
|
|
|
|
BuildRequires: help2man
|
|
|
|
BuildRequires: zlib-devel >= 1.2.7
|
2016-07-01 14:34:19 +00:00
|
|
|
%ifarch ppc64le ppc64
|
2017-02-16 13:08:49 +00:00
|
|
|
BuildRequires: kernel-devel >= 4.4.21-69
|
2016-07-01 14:34:19 +00:00
|
|
|
%endif
|
2017-02-16 13:08:49 +00:00
|
|
|
BuildRequires: fdupes
|
2017-10-16 12:27:21 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
ExclusiveArch: s390x ppc64le ppc64
|
2018-02-12 12:34:05 +00:00
|
|
|
#Source0: https://github.com/ibm-genwqe/genwqe-user/archive/v%%{version}.tar.gz
|
2016-06-29 13:34:11 +00:00
|
|
|
#for building from local git (fetched from _service)
|
|
|
|
Source0: genwqe-user-%{version}.tar.xz
|
2017-02-22 07:10:49 +00:00
|
|
|
Source1: %{name}-rpmlintrc
|
2017-10-16 12:27:21 +00:00
|
|
|
Patch0: genwqe-user-4.0.18-install-gzFile_test.patch
|
|
|
|
Patch1: genwqe-user-4.0.18-config.patch
|
2016-06-29 13:34:11 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Provide a suite of utilities to manage and configure the IBM GenWQE card.
|
|
|
|
|
|
|
|
%package -n genwqe-zlib
|
2017-10-16 12:27:21 +00:00
|
|
|
Summary: GenWQE hardware accelerated libz
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2016-06-29 13:34:11 +00:00
|
|
|
%description -n genwqe-zlib
|
|
|
|
GenWQE hardware accelerated libz and test-utilities.
|
|
|
|
|
|
|
|
%package -n genwqe-vpd
|
2017-10-16 12:27:21 +00:00
|
|
|
Summary: GenWQE adapter VPD tools
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2016-06-29 13:34:11 +00:00
|
|
|
%description -n genwqe-vpd
|
|
|
|
The genwqe-vpd package contains GenWQE adapter VPD tools.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2017-03-02 11:59:23 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-06-29 13:34:11 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2017-10-16 12:27:21 +00:00
|
|
|
%autosetup -p1 -n genwqe-user-%{version}
|
2017-02-16 13:08:49 +00:00
|
|
|
|
|
|
|
%ifarch ppc64le ppc64
|
|
|
|
%define libcxl "BUNDLE_LIBCXL=1"
|
|
|
|
%endif
|
2016-06-29 13:34:11 +00:00
|
|
|
|
|
|
|
%build
|
2017-02-16 13:08:49 +00:00
|
|
|
%ifarch ppc64le ppc64
|
|
|
|
mkdir -p ext/libcxl/include/misc/
|
|
|
|
cp /usr/include/misc/cxl.h ext/libcxl/include/misc/
|
|
|
|
%endif
|
2016-06-29 13:34:11 +00:00
|
|
|
|
2017-03-02 11:59:23 +00:00
|
|
|
make %{?_smp_mflags} tools lib VERSION=%{version} \
|
2017-02-16 13:08:49 +00:00
|
|
|
CONFIG_ZLIB_PATH=/%{_lib}/libz.so.1 %{?libcxl}
|
2016-06-29 13:34:11 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-02 11:59:23 +00:00
|
|
|
make %{?_smp_mflags} install DESTDIR=%{buildroot}/%{_prefix} \
|
2016-06-29 13:34:11 +00:00
|
|
|
VERSION=%{version} SYSTEMD_UNIT_DIR=%{buildroot}/%{_unitdir} \
|
|
|
|
LIB_INSTALL_PATH=%{buildroot}/%{_libdir}/genwqe \
|
|
|
|
INCLUDE_INSTALL_PATH=%{buildroot}/%{_includedir}/genwqe
|
|
|
|
|
2017-02-16 13:08:49 +00:00
|
|
|
# FIXME Instead of trying to fixup things in the spec fike, let us consider
|
|
|
|
# changing the associated install rule, such that the spec file
|
|
|
|
# can get smaller and simpler.
|
|
|
|
#
|
|
|
|
|
2016-06-29 13:34:11 +00:00
|
|
|
# Move genwqe_vpd.csv to expected location.
|
2017-03-02 11:59:23 +00:00
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/
|
|
|
|
install -m 0644 tools/genwqe_vpd.csv %{buildroot}/etc/
|
2016-06-29 13:34:11 +00:00
|
|
|
|
|
|
|
%fdupes %{buildroot}%{_bindir}
|
2017-02-16 13:08:49 +00:00
|
|
|
|
2016-06-29 13:34:11 +00:00
|
|
|
ln -sf %{_bindir}/genwqe_gunzip %{buildroot}/%{_libdir}/genwqe/gunzip
|
|
|
|
ln -sf %{_bindir}/genwqe_gzip %{buildroot}/%{_libdir}/genwqe/gzip
|
|
|
|
|
2016-07-01 14:34:19 +00:00
|
|
|
%ifarch ppc64le ppc64
|
2016-06-29 13:34:11 +00:00
|
|
|
%pre
|
|
|
|
%service_add_pre genwqe_maint.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post genwqe_maint.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun genwqe_maint.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun genwqe_maint.service
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n genwqe-tools
|
2017-02-16 13:08:49 +00:00
|
|
|
%defattr(0755,root,root)
|
2016-06-29 13:34:11 +00:00
|
|
|
%{_bindir}/genwqe_echo
|
|
|
|
%{_bindir}/genwqe_ffdc
|
|
|
|
%{_bindir}/genwqe_cksum
|
|
|
|
%{_bindir}/genwqe_memcopy
|
|
|
|
%{_bindir}/genwqe_peek
|
|
|
|
%{_bindir}/genwqe_poke
|
|
|
|
%{_bindir}/genwqe_update
|
|
|
|
|
|
|
|
%{_bindir}/genwqe_gunzip
|
|
|
|
%{_bindir}/genwqe_gzip
|
|
|
|
%{_bindir}/genwqe_test_gz
|
|
|
|
%{_bindir}/genwqe_mt_perf
|
|
|
|
%{_bindir}/zlib_mt_perf
|
2017-10-16 12:27:21 +00:00
|
|
|
%{_bindir}/gzFile_test
|
2017-02-16 13:08:49 +00:00
|
|
|
|
2016-06-29 13:34:11 +00:00
|
|
|
%{_libdir}/genwqe/gunzip
|
|
|
|
%{_libdir}/genwqe/gzip
|
|
|
|
|
2017-02-16 13:08:49 +00:00
|
|
|
%defattr(-,root,root)
|
2016-06-29 13:34:11 +00:00
|
|
|
%doc LICENSE
|
2017-02-16 13:08:49 +00:00
|
|
|
%{_mandir}/man1/genwqe_echo.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_ffdc.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_gunzip.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_gzip.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_cksum.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_memcopy.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_peek.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_poke.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_update.1.gz
|
|
|
|
%{_mandir}/man1/zlib_mt_perf.1.gz
|
|
|
|
%{_mandir}/man1/gzFile_test.1.gz
|
2016-07-01 14:34:19 +00:00
|
|
|
|
|
|
|
%ifarch ppc64le ppc64
|
2016-06-29 13:34:11 +00:00
|
|
|
%{_bindir}/genwqe_maint
|
|
|
|
%{_bindir}/genwqe_loadtree
|
|
|
|
%{_unitdir}/genwqe_maint.service
|
2017-02-16 13:08:49 +00:00
|
|
|
%{_mandir}/man1/genwqe_maint.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_loadtree.1.gz
|
2016-06-29 13:34:11 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n genwqe-zlib
|
2017-02-16 13:08:49 +00:00
|
|
|
%defattr(-,root,root)
|
2016-06-29 13:34:11 +00:00
|
|
|
%doc LICENSE
|
2017-02-16 13:08:49 +00:00
|
|
|
%defattr(0755,root,root)
|
2016-06-29 13:34:11 +00:00
|
|
|
%dir %{_libdir}/genwqe
|
|
|
|
%{_libdir}/genwqe/*.so*
|
|
|
|
|
|
|
|
%files -n genwqe-vpd
|
2017-02-16 13:08:49 +00:00
|
|
|
%defattr(-,root,root,-)
|
2016-06-29 13:34:11 +00:00
|
|
|
%{_bindir}/genwqe_csv2vpd
|
|
|
|
%{_bindir}/genwqe_vpdconv
|
|
|
|
%{_bindir}/genwqe_vpdupdate
|
2017-02-16 13:08:49 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE
|
2016-06-29 13:34:11 +00:00
|
|
|
%{_sysconfdir}/genwqe_vpd.csv
|
2017-02-16 13:08:49 +00:00
|
|
|
%{_mandir}/man1/genwqe_csv2vpd.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_vpdconv.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_vpdupdate.1.gz
|
2018-02-12 12:34:05 +00:00
|
|
|
%{_mandir}/man1/genwqe_mt_perf.1.gz
|
|
|
|
%{_mandir}/man1/genwqe_test_gz.1.gz
|
2016-06-29 13:34:11 +00:00
|
|
|
|
|
|
|
%files devel
|
2017-02-16 13:08:49 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_includedir}/genwqe
|
|
|
|
%{_includedir}/genwqe/*
|
2016-06-29 13:34:11 +00:00
|
|
|
%{_libdir}/genwqe/*.a
|
|
|
|
|
|
|
|
%changelog
|