Blame SPECS/hwloc.spec

621eab
Summary:   Portable Hardware Locality - portable abstraction of hierarchical architectures
621eab
Name:      hwloc
63dd24
Version:   2.2.0
63dd24
Release:   1%{?dist}
621eab
License:   BSD
621eab
URL:       http://www.open-mpi.org/projects/hwloc/
63dd24
Source0:   http://www.open-mpi.org/software/hwloc/v2.0/downloads/%{name}-%{version}.tar.bz2
621eab
Requires:  %{name}-libs%{?_isa} = %{version}-%{release}
621eab
621eab
BuildRequires: gcc
621eab
# C++ only for hwloc-hello-cpp test:
621eab
BuildRequires: gcc-c++
621eab
BuildRequires: cairo-devel
621eab
BuildRequires: libpciaccess-devel
621eab
BuildRequires: libtool-ltdl-devel
621eab
BuildRequires: libX11-devel
621eab
BuildRequires: libxml2-devel
621eab
BuildRequires: libXNVCtrl-devel
621eab
BuildRequires: ncurses-devel
63dd24
BuildRequires: transfig doxygen
621eab
BuildRequires: texlive-latex texlive-makeindex
621eab
BuildRequires: desktop-file-utils
621eab
%ifnarch s390 %{arm}
621eab
BuildRequires: numactl-devel
621eab
%endif
621eab
%ifnarch %{arm}
621eab
BuildRequires: rdma-core-devel
621eab
%endif
621eab
%ifarch %{ix86} x86_64
621eab
%{?systemd_requires}
621eab
BuildRequires: systemd
621eab
%endif
621eab
621eab
%description
621eab
The Portable Hardware Locality (hwloc) software package provides 
621eab
a portable abstraction (across OS, versions, architectures, ...) 
621eab
of the hierarchical topology of modern architectures, including 
621eab
NUMA memory nodes,  shared caches, processor sockets, processor cores
621eab
and processing units (logical processors or "threads"). It also gathers
621eab
various system attributes such as cache and memory information. It primarily
621eab
aims at helping applications with gathering information about modern
621eab
computing hardware so as to exploit it accordingly and efficiently.
621eab
621eab
hwloc may display the topology in multiple convenient formats. 
621eab
It also offers a powerful programming interface (C API) to gather information 
621eab
about the hardware, bind processes, and much more.
621eab
621eab
%package devel
621eab
Summary:   Headers and shared development libraries for hwloc
621eab
Requires:  %{name}-libs%{?_isa} = %{version}-%{release}
621eab
%ifnarch %{arm}
621eab
Requires:  rdma-core-devel%{?_isa}
621eab
%endif
621eab
621eab
%description devel
621eab
Headers and shared object symbolic links for the hwloc.
621eab
621eab
%package libs
621eab
Summary:   Run time libraries for the hwloc
621eab
621eab
%description libs
621eab
Run time libraries for the hwloc
621eab
621eab
%package gui
621eab
Summary:   The gui-based hwloc program(s)
621eab
Requires:  %{name}-libs%{?_isa} = %{version}-%{release}
621eab
621eab
%description gui
621eab
GUI-based tool for displaying system topology information.
621eab
621eab
%package plugins
621eab
Summary:   Plugins for hwloc
621eab
Requires:  %{name}-plugins%{?_isa} = %{version}-%{release}
621eab
621eab
%description plugins
621eab
 This package contains plugins for hwloc. This includes
621eab
  - PCI support
621eab
  - GL support
621eab
  - libxml support
621eab
621eab
%prep
621eab
%autosetup -p1
621eab
621eab
%build
621eab
# The ./configure script will support --runstatedir= when generated with
621eab
# autoconf 2.70. Until then, tell it about /run using the export:
621eab
export runstatedir=/run
621eab
%configure --enable-plugins --disable-silent-rules
621eab
# Remove rpaths
621eab
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
621eab
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
621eab
make %{?_smp_mflags}
621eab
621eab
%install
621eab
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
621eab
621eab
# We don't ship .la files.
621eab
find %{buildroot} -name '*.la' -exec rm -f {} ';'
621eab
621eab
cp -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_pkgdocdir}
621eab
cp -pr doc/examples %{buildroot}%{_pkgdocdir}
621eab
# Fix for BZ1253977
621eab
mv  %{buildroot}%{_pkgdocdir}/examples/Makefile  %{buildroot}%{_pkgdocdir}/examples/Makefile_%{_arch}
621eab
621eab
desktop-file-validate %{buildroot}/%{_datadir}/applications/lstopo.desktop
621eab
621eab
# Avoid making hwloc-gui depend on hwloc
621eab
rm %{buildroot}%{_mandir}/man1/lstopo.1
621eab
ln %{buildroot}%{_mandir}/man1/lstopo-no-graphics.1 %{buildroot}%{_mandir}/man1/lstopo.1
621eab
621eab
# Deal with service file
621eab
# https://github.com/open-mpi/hwloc/issues/221
621eab
%ifarch %{ix86} x86_64
621eab
mkdir -p %{buildroot}%{_unitdir}
621eab
mv %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service %{buildroot}%{_unitdir}/
621eab
%else
621eab
rm %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service
621eab
%endif
621eab
621eab
%check
63dd24
LD_LIBRARY_PATH=$PWD/hwloc/.libs make check
621eab
621eab
%ifarch %{ix86} x86_64
621eab
%post
621eab
%systemd_post hwloc-dump-hwdata.service
621eab
621eab
%preun
621eab
%systemd_preun hwloc-dump-hwdata.service
621eab
621eab
%postun
621eab
%systemd_postun_with_restart hwloc-dump-hwdata.service
621eab
%endif
621eab
621eab
%ldconfig_scriptlets libs
621eab
621eab
%files
621eab
%{_bindir}/%{name}*
621eab
%{_bindir}/lstopo-no-graphics
621eab
%{_mandir}/man1/%{name}*
621eab
%{_mandir}/man1/lstopo-no-graphics*
63dd24
/etc/bash_completion.d/hwloc-completion.bash
621eab
%ifarch %{ix86} x86_64
621eab
%{_sbindir}/hwloc-dump-hwdata
621eab
%{_unitdir}/hwloc-dump-hwdata.service
621eab
%endif
621eab
621eab
%files devel
621eab
%{_libdir}/pkgconfig/*
621eab
%{_mandir}/man3/*
621eab
%dir %{_includedir}/%{name}
621eab
%{_includedir}/%{name}/*
621eab
%{_includedir}/%{name}.h
621eab
%{_pkgdocdir}/examples
621eab
%{_libdir}/*.so
63dd24
/usr/share/hwloc/hwloc-ps.www/*
621eab
621eab
%files libs
621eab
%{_mandir}/man7/%{name}*
621eab
%dir %{_datadir}/%{name}
63dd24
%{_datadir}/hwloc/hwloc.dtd
63dd24
%{_datadir}/hwloc/hwloc-valgrind.supp
63dd24
%{_datadir}/hwloc/hwloc2.dtd
63dd24
%{_datadir}/hwloc/hwloc2-diff.dtd
621eab
%dir %{_pkgdocdir}/
621eab
%{_pkgdocdir}/*[^c]
63dd24
%{_libdir}/libhwloc*so.15*
621eab
621eab
%files gui
621eab
%{_bindir}/lstopo
621eab
%{_mandir}/man1/lstopo.1*
621eab
%{_datadir}/applications/lstopo.desktop
621eab
621eab
%files plugins
621eab
%dir %{_libdir}/%{name}
621eab
%{_libdir}/%{name}/hwloc*
621eab
621eab
%changelog
63dd24
* Mon Oct 12 2020 Prarit Bhargava <prarit@redhat.com> - 2.2.0-1
63dd24
- Rebuild for 8.4.0
ed9491
63dd24
* Tue Jun 2 2020 Prarit Bhargava <prarit@redhat.com> - 2.2.0-0
63dd24
- Upgrade RHEL to 2.2.0
63dd24
63dd24
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
63dd24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
63dd24
63dd24
* Mon Dec 09 2019 Orion Poplawski <orion@nwra.com> - 2.0.4-2
63dd24
- Drop BR/R on rdma-core-devel on arm (bz#1780813)
63dd24
63dd24
* Sat Aug 24 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.4-1
63dd24
- Update to latest version (#1663624)
63dd24
63dd24
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.12-3
63dd24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
63dd24
63dd24
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.12-2
63dd24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
63dd24
63dd24
* Wed Jan 30 2019 Michal Schmidt <mschmidt@redhat.com> - 1.11.12-1
63dd24
- Upstream release 1.11.12.
63dd24
- BR rdma-core-devel even on arm.
63dd24
63dd24
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.9-2
63dd24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
621eab
621eab
* Mon Mar 05 2018 Michal Schmidt <mschmidt@redhat.com> - 1.11.9-1
621eab
- Update to 1.11.9.
621eab
- BuildRequire gcc, gcc-c++. Drop Group tags.
621eab
- BuildRequire numactl-devel on s390x too.
621eab
621eab
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.8-6
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
621eab
621eab
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.11.8-5
621eab
- Switch to %%ldconfig_scriptlets
621eab
621eab
* Thu Nov 16 2017 Michal Schmidt <mschmidt@redhat.com> - 1.11.8-4
621eab
- Configure with runstatedir set to /run.
621eab
621eab
* Tue Nov 14 2017 Michal Schmidt <mschmidt@redhat.com> - 1.11.8-3
621eab
- BuildRequire rdma-core-devel on s390(x).
621eab
- Install the hwloc-dump-hwdata.service systemd service on x86/x86_64.
621eab
621eab
* Thu Nov 02 2017 Michal Schmidt <mschmidt@redhat.com> - 1.11.8-2
621eab
- Use the _pkgdocdir macro.
621eab
- Deal with rpaths using the method from Packaging Guidelines.
621eab
621eab
* Fri Oct 27 2017 Michal Schmidt <mschmidt@redhat.com> - 1.11.8-1
621eab
- Update to 1.11.8.
621eab
621eab
* Wed Aug 23 2017 Adam Williamson <awilliam@redhat.com> - 1.11.5-6
621eab
- Use 'rdma-core-devel' not 'libibverbs-devel' for dependencies
621eab
621eab
* Wed Aug 23 2017 Adam Williamson <awilliam@redhat.com> - 1.11.5-5
621eab
- Disable libibverbs support on 32-bit ARM (#1484155)
621eab
621eab
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-4
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
621eab
621eab
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-3
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
621eab
621eab
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.5-2
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
621eab
621eab
* Fri Dec 23 2016 Orion Poplawski <orion@cora.nwra.com> - 1.11.5-1
621eab
- Update to 1.11.5
621eab
621eab
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-6
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
621eab
621eab
* Fri Oct 16 2015 Orion Poplawski <orion@cora.nwra.com> - 1.11.0-5
621eab
- numactl is available on aarch64 now
621eab
621eab
* Fri Sep 04 2015 Dan Horák <dan[at]danny.cz> - 1.11.0-4
621eab
- fix devel Requires for s390(x)
621eab
621eab
* Tue Aug 18 2015 Jirka Hladky <hladky.jiri@gmail.com> - 1.10.0-3
621eab
- Fix for BZ1253977
621eab
621eab
* Tue Jul 21 2015 Orion Poplwski <orion@cora.nwra.com> - 1.11.0-1
621eab
- Update to version 1.11.0 (fixes bug #1208279)
621eab
- Drop arm patch applied upstream
621eab
- Make hwloc-devel require libibverbs-devel (bug #1191770)
621eab
- Fix man page manipulation (bug #1235954)
621eab
621eab
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-3
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
621eab
621eab
* Sat Apr 4 2015 Orion Poplwski <orion@cora.nwra.com> - 1.10.1-2
621eab
- Fix hwloc issue on arm
621eab
621eab
* Wed Apr 1 2015 Orion Poplwski <orion@cora.nwra.com> - 1.10.1-1
621eab
- Update to version 1.10.1
621eab
621eab
* Tue Oct 07 2014 Jirka Hladky <hladky.jiri@gmail.com> - 1.10.0-1
621eab
- Update to version 1.10.0
621eab
621eab
* Fri Sep 26 2014 Jirka Hladky <hladky.jiri@gmail.com> - 1.9.1-1
621eab
- Update to version 1.9.1
621eab
- Added support for plugins
621eab
621eab
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-3
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
621eab
621eab
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-2
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
621eab
621eab
* Tue Apr  1 2014 Jirka Hladky <hladky.jiri@gmail.com> - 1.9-1
621eab
- Update to 1.9
621eab
- Split out lstopo into a -gui subpackage, so the hwloc base package
621eab
  does not pull in all of X.
621eab
621eab
* Fri Feb 14 2014 Jirka Hladky <hladky.jiri@gmail.com> - 1.8.1-2
621eab
- Fixed BuildRequires
621eab
621eab
* Thu Feb 13 2014 Jirka Hladky <hladky.jiri@gmail.com> - 1.8.1-1
621eab
- Update to 1.8.1
621eab
621eab
* Sat Jan 04 2014 Jirka Hladky <hladky.jiri@gmail.com> - 1.8-2
621eab
- Unversioned docdir change, more info on 
621eab
  https://fedoraproject.org/wiki/Changes/UnversionedDocdirs
621eab
621eab
* Thu Dec 19 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.8-1
621eab
- Update to 1.8
621eab
- No numa on aarch64
621eab
- Cleanup and modernise spec
621eab
621eab
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
621eab
621eab
* Thu May  9 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.7-1
621eab
- Minor issue with the man page fixed
621eab
621eab
* Tue Apr 23 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.7-0
621eab
- Update to version 1.7
621eab
621eab
* Thu Jan 31 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.6.1-1
621eab
- Created libs package with reduced dependencies
621eab
621eab
* Sat Jan 19 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.6.1-0
621eab
- Update to version 1.6.1
621eab
621eab
* Mon Nov  5 2012  Jirka Hladky  <hladky.jiri@gmail.com> - 1.5.1-1
621eab
- Update to version 1.5.1
621eab
621eab
* Wed Aug 15 2012 Jirka Hladky  <hladky.jiri@gmail.com> - 1.5-1
621eab
- Update to version 1.5
621eab
621eab
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-2
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
621eab
621eab
* Tue May 15 2012 Orion Poplawski <orion@cora.nwra.com> - 1.4.2-1
621eab
- Update to version 1.4.2
621eab
621eab
* Wed Apr 18 2012 Jirka Hladky  <hladky.jiri@gmail.com> - 1.4.1-2
621eab
- Fixed build dependency for s390x
621eab
621eab
* Mon Apr 16 2012 Jirka Hladky  <hladky.jiri@gmail.com> - 1.4.1-1
621eab
- Update to version 1.4.1
621eab
- BZ812622 - libnuma was splitted out of numactl package
621eab
621eab
* Thu Apr 12 2012 Dan Horák <dan[at]danny.cz> - 1.4-2
621eab
- no InfiniBand on s390(x)
621eab
621eab
* Tue Feb 14 2012 Jirka Hladky  <hladky.jiri@gmail.com> - 1.4-1
621eab
- Update to 1.4 release
621eab
621eab
* Mon Nov 14 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3-1
621eab
- Update build for ARM support
621eab
621eab
* Sat Oct 15 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.3-0
63dd24
- 1.3 release
63dd24
- added dependency on libibverbs-devel pciutils-devel
63dd24
- cannot provide support for cuda (cuda_runtime_api.h).
63dd24
- Nvidia CUDA is free but not open-source therefore not in Fedora.
621eab
621eab
* Fri Oct 07 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2.2-1
63dd24
- moved *.so to the devel package
63dd24
- libhwloc*so* in the main package
621eab
621eab
* Wed Oct 05 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2.2-0
621eab
- 1.2.2 release
621eab
- Fix for BZ https://bugzilla.redhat.com/show_bug.cgi?id=724937 for 32-bit PPC
621eab
621eab
* Sat Sep 17 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2.1-0
621eab
- 1.2.1 release
621eab
- Moved libhwloc*.so* to the main package
621eab
621eab
* Mon Jun 27 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2-0
621eab
- 1.2 release
621eab
621eab
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-0.2
621eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
621eab
621eab
* Mon Jan  3 2011 Dan Horák <dan[at]danny.cz> - 1.1-0.1
621eab
- fix build on s390(x) where numactl is missing
621eab
621eab
* Sat Jan  1 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.1-0
621eab
- 1.1 rel# Patch to the 1.1 fix 2967 http://www.open-mpi.org/software/hwloc/nightly/v1.1/hwloc-1.1rc6r2967.tar.bz2
621eab
- Fix hwloc_bitmap_to_ulong right after allocating the bitmap.
621eab
- Fix the minimum width of NUMA nodes, caches and the legend in the graphical lstopo output.
621eab
- Cleanup error management in hwloc-gather-topology.sh.
621eab
- Add a manpage and usage for hwloc-gather-topology.sh on Linux.
621eab
- Rename hwloc-gather-topology.sh to hwloc-gather-topology to be consistent with the upcoming version 1.2ease
621eab
621eab
* Mon Jul 19 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.2-1
621eab
- 1.0.2 release
621eab
- added "check" section to the RPM SPEC file
621eab
621eab
* Mon Jul 19 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.2-0.1.rc1r2330
621eab
- 1.0.2 release candidate
621eab
621eab
* Mon Jul 12 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.1-19
621eab
- Fixed issues as described at https://bugzilla.redhat.com/show_bug.cgi?id=606498#c6
621eab
621eab
* Fri Jul 09 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.1-18
621eab
- Fixed issues as described at https://bugzilla.redhat.com/show_bug.cgi?id=606498
621eab
621eab
* Fri Jun 18 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.1-17
621eab
- Initial build