Blame SPECS/genwqe-tools.spec

db6474
# Copyright 2015, International Business Machines
db6474
#
db6474
# Licensed under the Apache License, Version 2.0 (the "License");
db6474
# you may not use this file except in compliance with the License.
db6474
# You may obtain a copy of the License at
db6474
#
db6474
#     http://www.apache.org/licenses/LICENSE-2.0
db6474
#
db6474
# Unless required by applicable law or agreed to in writing, software
db6474
# distributed under the License is distributed on an "AS IS" BASIS,
db6474
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
db6474
# See the License for the specific language governing permissions and
db6474
# limitations under the License.
db6474
#
db6474
# zlib-devel 1.2.8 is better, but 1.2.7 should work too
db6474
#
db6474
# The following switch tries to take care that the distros libz.so is been taken:
db6474
#    CONFIG_ZLIB_PATH=%%{_libdir}/libz.so
db6474
# No special libz build should be needed anymore, since we added the right
db6474
# dependency to the spec file. We want to have a zlib-devel installed.
db6474
# 
db6474
db6474
Summary: GenWQE userspace tools
db6474
Name: genwqe-tools
db6474
Version: 4.0.20
db6474
Release: 5%{?dist}
db6474
License: ASL 2.0
db6474
URL: https://github.com/ibm-genwqe/genwqe-user/
db6474
BuildRequires: zlib-devel >= 1.2.7
db6474
BuildRequires: help2man
db6474
%ifarch %{power64}
db6474
BuildRequires: libcxl-devel
db6474
%endif
db6474
Source0: https://github.com/ibm-genwqe/genwqe-user/archive/v%{version}.tar.gz#/genwqe-user-%{version}.tar.gz
db6474
Patch0: genwqe-user-4.0.18-install-gzFile_test.patch
db6474
Requires: genwqe-zlib = %{version}-%{release}
db6474
db6474
%description
db6474
Provide a suite of utilities to manage and configure the IBM GenWQE card.
db6474
db6474
%package -n genwqe-zlib
db6474
Summary: GenWQE hardware accelerated libz
db6474
%description -n genwqe-zlib
db6474
GenWQE hardware accelerated libz and test-utilities.
db6474
db6474
%package -n genwqe-vpd
db6474
Summary: GenWQE adapter VPD tools
db6474
%description -n genwqe-vpd
db6474
The genwqe-vpd package contains GenWQE adapter VPD tools.
db6474
db6474
%package -n genwqe-zlib-devel
db6474
Summary: Development files for %{name}
db6474
Requires: genwqe-zlib%{?_isa} = %{version}-%{release}
db6474
db6474
%description -n genwqe-zlib-devel
db6474
The genwqe-zlib-devel package contains libraries and header files for
db6474
developing applications that use %{name}.
db6474
db6474
%package -n genwqe-zlib-static
db6474
Summary: Static library files for %{name}
db6474
Requires: genwqe-zlib-devel%{?_isa} = %{version}-%{release}
db6474
db6474
%description -n genwqe-zlib-static
db6474
The genwqe-zlib-static package contains static libraries for
db6474
developing applications that use %{name}.
db6474
db6474
%prep
db6474
%autosetup -p1 -n genwqe-user-%{version}
db6474
db6474
%build
db6474
LDFLAGS="%{__global_ldflags}" CFLAGS="%{optflags}" make %{?_smp_mflags} tools lib \
db6474
 VERSION=%{version} CONFIG_ZLIB_PATH=%{_libdir}/libz.so V=2
db6474
db6474
%install
db6474
make %{?_smp_mflags} install DESTDIR=%{buildroot}/%{_prefix} \
db6474
    SYSTEMD_UNIT_DIR=%{buildroot}/%{_unitdir} \
db6474
    LIB_INSTALL_PATH=%{buildroot}/%{_libdir}/genwqe \
db6474
    INCLUDE_INSTALL_PATH=%{buildroot}/%{_includedir}/genwqe
db6474
db6474
# move genwqe_vpd.csv to expected location.
db6474
mkdir -p %{buildroot}/%{_sysconfdir}/
db6474
install -m 0644 tools/genwqe_vpd.csv %{buildroot}/etc/
db6474
db6474
# remove libz stuff
db6474
rm %{buildroot}%{_libdir}/genwqe/libz.*
db6474
mv %{buildroot}%{_libdir}/genwqe/* %{buildroot}%{_libdir}/
db6474
rmdir %{buildroot}%{_libdir}/genwqe/
db6474
db6474
%post -n genwqe-zlib -p /sbin/ldconfig
db6474
%postun -n genwqe-zlib -p /sbin/ldconfig
db6474
db6474
%files -n genwqe-tools
db6474
%license LICENSE
db6474
%{_bindir}/genwqe_echo
db6474
%{_bindir}/genwqe_ffdc
db6474
%{_bindir}/genwqe_cksum
db6474
%{_bindir}/genwqe_memcopy
db6474
%{_bindir}/genwqe_peek
db6474
%{_bindir}/genwqe_poke
db6474
%{_bindir}/genwqe_update
db6474
db6474
%{_bindir}/genwqe_gunzip
db6474
%{_bindir}/genwqe_gzip
db6474
%{_bindir}/genwqe_test_gz
db6474
%{_bindir}/genwqe_mt_perf
db6474
%{_bindir}/zlib_mt_perf
db6474
%{_bindir}/gzFile_test
db6474
db6474
%{_mandir}/man1/genwqe_echo.1*
db6474
%{_mandir}/man1/genwqe_ffdc.1*
db6474
%{_mandir}/man1/genwqe_gunzip.1*
db6474
%{_mandir}/man1/genwqe_gzip.1*
db6474
%{_mandir}/man1/genwqe_cksum.1*
db6474
%{_mandir}/man1/genwqe_memcopy.1*
db6474
%{_mandir}/man1/genwqe_peek.1*
db6474
%{_mandir}/man1/genwqe_poke.1*
db6474
%{_mandir}/man1/genwqe_update.1*
db6474
%{_mandir}/man1/zlib_mt_perf.1*
db6474
%{_mandir}/man1/genwqe_test_gz.1*
db6474
%{_mandir}/man1/genwqe_mt_perf.1*
db6474
%{_mandir}/man1/gzFile_test.1*
db6474
db6474
%ifarch %{power64}
db6474
%{_bindir}/genwqe_maint
db6474
%{_bindir}/genwqe_loadtree
db6474
/%{_unitdir}/genwqe_maint.service
db6474
%{_mandir}/man1/genwqe_maint.1*
db6474
%{_mandir}/man1/genwqe_loadtree.1*
db6474
%endif
db6474
db6474
%files -n genwqe-zlib
db6474
%license LICENSE
db6474
%{_libdir}/*.so.*
db6474
db6474
%files -n genwqe-vpd
db6474
%license LICENSE
db6474
%config(noreplace) %{_sysconfdir}/genwqe_vpd.csv
db6474
%{_bindir}/genwqe_csv2vpd
db6474
%{_bindir}/genwqe_vpdconv
db6474
%{_bindir}/genwqe_vpdupdate
db6474
%{_mandir}/man1/genwqe_csv2vpd.1*
db6474
%{_mandir}/man1/genwqe_vpdconv.1*
db6474
%{_mandir}/man1/genwqe_vpdupdate.1*
db6474
db6474
%files -n genwqe-zlib-devel
db6474
%dir %{_includedir}/genwqe
db6474
%{_includedir}/genwqe/*
db6474
%{_libdir}/*.so
db6474
db6474
%files -n genwqe-zlib-static
db6474
%{_libdir}/*.a
db6474
db6474
%changelog
db6474
* Wed May 23 2018 Than Ngo <than@redhat.com> - 4.0.20-5
db6474
- add explicit package version requirement
db6474
- fix multilib regression in man pages
db6474
db6474
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.20-4
db6474
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
db6474
db6474
* Mon Feb 05 2018 Than Ngo <than@redhat.com> - - 4.0.20-3
db6474
- use the Fedora linker flags
db6474
db6474
* Thu Feb  1 2018 Florian Weimer <fweimer@redhat.com> - 4.0.20-2
db6474
- Build with linker flags from redhat-rpm-config
db6474
db6474
* Mon Jan 15 2018 Dan HorĂ¡k <dan[at]danny.cz> - 4.0.20-1
db6474
- update to 4.0.20 (#1533296)
db6474
db6474
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.18-4
db6474
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
db6474
db6474
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.18-3
db6474
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
db6474
db6474
* Mon Mar 13 2017 Than Ngo <than@redhat.com> - 4.0.18-2
db6474
- backport upstream to fix compilation on 32-bits arch
db6474
db6474
* Mon Feb 13 2017 Than Ngo <than@redhat.com> - 4.0.18-1
db6474
- update to 4.0.18 prerelease
db6474
db6474
* Tue Feb 07 2017 Than Ngo <than@redhat.com> - 4.0.17-2
db6474
- fix build with RPM_OPT_FLAGS
db6474
db6474
* Mon Feb 06 2017 Than Ngo <than@redhat.com> - 4.0.17-1
db6474
- fixed to build system libcxl on power64
db6474
- clean up spec files
db6474
db6474
* Wed Apr 06 2016 Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> - 4.0.16
db6474
- dlopen uses SONAME when opening libz.
db6474
- Support CAPI version.
db6474
- Bulid fixes.
db6474
- Include genwqe_maint daemon (CAPI version).
db6474
db6474
* Mon Apr 04 2016 Frank Haverkamp <haverkam@de.ibm.com>
db6474
- Renamed some scripts again
db6474
db6474
* Thu Feb 04 2016 Frank Haverkamp <haverkam@de.ibm.com>
db6474
- Fix s390 and Intel build. Remove debug stuff from zlib rpm.
db6474
db6474
* Fri Dec 11 2015 Frank Haverkamp <haverkam@de.ibm.com>
db6474
- Changing some install directories again.
db6474
db6474
* Tue Dec 08 2015 Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> - 4.0.7-1
db6474
- Create Fedora package.
db6474
- Make genwqe-vpd and genwqe-libz subpackages of genwqe-tools.
db6474
db6474
* Wed Apr 22 2015 Frank Haverkamp <haverkam@de.ibm.com>
db6474
- Initial release.