Blame SPECS/genwqe-tools.spec

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