|
|
fa9c97 |
Summary: Portable Hardware Locality - portable abstraction of hierarchical architectures
|
|
|
fa9c97 |
Name: hwloc
|
|
|
f9a9e8 |
Version: 1.11.8
|
|
|
f9a9e8 |
Release: 4%{?dist}
|
|
|
fa9c97 |
License: BSD
|
|
|
fa9c97 |
Group: Applications/System
|
|
|
fa9c97 |
URL: http://www.open-mpi.org/projects/hwloc/
|
|
|
3ddd73 |
Source0: http://www.open-mpi.org/software/hwloc/v1.11/downloads/%{name}-%{version}.tar.bz2
|
|
|
f9a9e8 |
# fix build with -Werror=format-security
|
|
|
f9a9e8 |
Patch0: 0001-Avoid-letting-snprintf-interpret-process-name-as-for.patch
|
|
|
f9a9e8 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
f9a9e8 |
|
|
|
f9a9e8 |
BuildRequires: cairo-devel
|
|
|
f9a9e8 |
BuildRequires: libpciaccess-devel
|
|
|
f9a9e8 |
BuildRequires: libtool-ltdl-devel
|
|
|
f9a9e8 |
BuildRequires: libX11-devel
|
|
|
f9a9e8 |
BuildRequires: libxml2-devel
|
|
|
f9a9e8 |
BuildRequires: ncurses-devel
|
|
|
f9a9e8 |
BuildRequires: transfig doxygen
|
|
|
f9a9e8 |
BuildRequires: texlive-latex texlive-makeindex
|
|
|
ecd4e2 |
BuildRequires: desktop-file-utils
|
|
|
fa9c97 |
%ifnarch s390 s390x %{arm}
|
|
|
fa9c97 |
BuildRequires: numactl-devel
|
|
|
f9a9e8 |
%endif
|
|
|
f9a9e8 |
%ifnarch %{arm}
|
|
|
f9a9e8 |
BuildRequires: rdma-core-devel
|
|
|
f9a9e8 |
%endif
|
|
|
f9a9e8 |
%ifarch %{ix86} x86_64
|
|
|
f9a9e8 |
%{?systemd_requires}
|
|
|
f9a9e8 |
BuildRequires: systemd
|
|
|
fa9c97 |
%endif
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%description
|
|
|
fa9c97 |
The Portable Hardware Locality (hwloc) software package provides
|
|
|
fa9c97 |
a portable abstraction (across OS, versions, architectures, ...)
|
|
|
fa9c97 |
of the hierarchical topology of modern architectures, including
|
|
|
fa9c97 |
NUMA memory nodes, shared caches, processor sockets, processor cores
|
|
|
fa9c97 |
and processing units (logical processors or "threads"). It also gathers
|
|
|
fa9c97 |
various system attributes such as cache and memory information. It primarily
|
|
|
fa9c97 |
aims at helping applications with gathering information about modern
|
|
|
fa9c97 |
computing hardware so as to exploit it accordingly and efficiently.
|
|
|
fa9c97 |
|
|
|
fa9c97 |
hwloc may display the topology in multiple convenient formats.
|
|
|
fa9c97 |
It also offers a powerful programming interface (C API) to gather information
|
|
|
fa9c97 |
about the hardware, bind processes, and much more.
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%package devel
|
|
|
fa9c97 |
Summary: Headers and shared development libraries for hwloc
|
|
|
fa9c97 |
Group: Development/Libraries
|
|
|
f9a9e8 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
f9a9e8 |
%ifnarch %{arm}
|
|
|
f9a9e8 |
Requires: rdma-core-devel%{?_isa}
|
|
|
f9a9e8 |
%endif
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%description devel
|
|
|
fa9c97 |
Headers and shared object symbolic links for the hwloc.
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%package libs
|
|
|
fa9c97 |
Summary: Run time libraries for the hwloc
|
|
|
fa9c97 |
Group: Development/Libraries
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%description libs
|
|
|
fa9c97 |
Run time libraries for the hwloc
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%package gui
|
|
|
fa9c97 |
Summary: The gui-based hwloc program(s)
|
|
|
fa9c97 |
Group: Development/Libraries
|
|
|
f9a9e8 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%description gui
|
|
|
fa9c97 |
GUI-based tool for displaying system topology information.
|
|
|
fa9c97 |
|
|
|
3ddd73 |
%package plugins
|
|
|
3ddd73 |
Summary: Plugins for hwloc
|
|
|
3ddd73 |
Group: Development/Libraries
|
|
|
f9a9e8 |
Requires: %{name}-plugins%{?_isa} = %{version}-%{release}
|
|
|
3ddd73 |
|
|
|
3ddd73 |
%description plugins
|
|
|
3ddd73 |
This package contains plugins for hwloc. This includes
|
|
|
3ddd73 |
- PCI support
|
|
|
3ddd73 |
- GL support
|
|
|
3ddd73 |
- libxml support
|
|
|
3ddd73 |
|
|
|
fa9c97 |
%prep
|
|
|
f9a9e8 |
%autosetup -p1
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%build
|
|
|
f9a9e8 |
# The ./configure script will support --runstatedir= when generated with
|
|
|
f9a9e8 |
# autoconf 2.70. Until then, tell it about /run using the export:
|
|
|
f9a9e8 |
export runstatedir=/run
|
|
|
f9a9e8 |
%configure --enable-plugins --disable-silent-rules --docdir=%{_pkgdocdir}
|
|
|
f9a9e8 |
# Remove rpaths
|
|
|
f9a9e8 |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
f9a9e8 |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
f9a9e8 |
make %{?_smp_mflags}
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%install
|
|
|
f9a9e8 |
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
|
|
fa9c97 |
|
|
|
fa9c97 |
# We don't ship .la files.
|
|
|
3ddd73 |
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
fa9c97 |
|
|
|
f9a9e8 |
cp -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_pkgdocdir}
|
|
|
f9a9e8 |
cp -pr doc/examples %{buildroot}%{_pkgdocdir}
|
|
|
f9a9e8 |
# Fix for BZ1253977
|
|
|
f9a9e8 |
mv %{buildroot}%{_pkgdocdir}/examples/Makefile %{buildroot}%{_pkgdocdir}/examples/Makefile_%{_arch}
|
|
|
f9a9e8 |
|
|
|
ecd4e2 |
desktop-file-validate %{buildroot}/%{_datadir}/applications/lstopo.desktop
|
|
|
f9a9e8 |
|
|
|
f9a9e8 |
# Avoid making hwloc-gui depend on hwloc
|
|
|
f9a9e8 |
rm %{buildroot}%{_mandir}/man1/lstopo.1
|
|
|
f9a9e8 |
ln %{buildroot}%{_mandir}/man1/lstopo-no-graphics.1 %{buildroot}%{_mandir}/man1/lstopo.1
|
|
|
f9a9e8 |
|
|
|
f9a9e8 |
# Deal with service file
|
|
|
f9a9e8 |
# https://github.com/open-mpi/hwloc/issues/221
|
|
|
f9a9e8 |
%ifarch %{ix86} x86_64
|
|
|
3ddd73 |
mkdir -p %{buildroot}%{_unitdir}
|
|
|
f9a9e8 |
mv %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service %{buildroot}%{_unitdir}/
|
|
|
f9a9e8 |
%else
|
|
|
f9a9e8 |
rm %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service
|
|
|
3ddd73 |
%endif
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%check
|
|
|
f9a9e8 |
LD_LIBRARY_PATH=$PWD/src/.libs make check
|
|
|
fa9c97 |
|
|
|
f9a9e8 |
%ifarch %{ix86} x86_64
|
|
|
3ddd73 |
%post
|
|
|
3ddd73 |
%systemd_post hwloc-dump-hwdata.service
|
|
|
3ddd73 |
|
|
|
3ddd73 |
%preun
|
|
|
3ddd73 |
%systemd_preun hwloc-dump-hwdata.service
|
|
|
f9a9e8 |
|
|
|
f9a9e8 |
%postun
|
|
|
f9a9e8 |
%systemd_postun_with_restart hwloc-dump-hwdata.service
|
|
|
3ddd73 |
%endif
|
|
|
3ddd73 |
|
|
|
fa9c97 |
%post libs -p /sbin/ldconfig
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%postun libs -p /sbin/ldconfig
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%files
|
|
|
fa9c97 |
%{_bindir}/%{name}*
|
|
|
fa9c97 |
%{_bindir}/lstopo-no-graphics
|
|
|
fa9c97 |
%{_mandir}/man1/%{name}*
|
|
|
fa9c97 |
%{_mandir}/man1/lstopo-no-graphics*
|
|
|
f9a9e8 |
%ifarch %{ix86} x86_64
|
|
|
f9a9e8 |
%{_sbindir}/hwloc-dump-hwdata
|
|
|
f9a9e8 |
%{_unitdir}/hwloc-dump-hwdata.service
|
|
|
f9a9e8 |
%endif
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%files devel
|
|
|
fa9c97 |
%{_libdir}/pkgconfig/*
|
|
|
fa9c97 |
%{_mandir}/man3/*
|
|
|
fa9c97 |
%dir %{_includedir}/%{name}
|
|
|
fa9c97 |
%{_includedir}/%{name}/*
|
|
|
fa9c97 |
%{_includedir}/%{name}.h
|
|
|
f9a9e8 |
%{_pkgdocdir}/examples
|
|
|
fa9c97 |
%{_libdir}/*.so
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%files libs
|
|
|
fa9c97 |
%{_mandir}/man7/%{name}*
|
|
|
fa9c97 |
%dir %{_datadir}/%{name}
|
|
|
fa9c97 |
%{_datadir}/%{name}/%{name}.dtd
|
|
|
fa9c97 |
%{_datadir}/%{name}/%{name}-valgrind.supp
|
|
|
f9a9e8 |
%dir %{_pkgdocdir}/
|
|
|
f9a9e8 |
%{_pkgdocdir}/*[^c]
|
|
|
f9a9e8 |
%{_libdir}/libhwloc*so.5*
|
|
|
fa9c97 |
|
|
|
fa9c97 |
%files gui
|
|
|
fa9c97 |
%{_bindir}/lstopo
|
|
|
f9a9e8 |
%{_mandir}/man1/lstopo.1*
|
|
|
ecd4e2 |
%{_datadir}/applications/lstopo.desktop
|
|
|
fa9c97 |
|
|
|
3ddd73 |
%files plugins
|
|
|
3ddd73 |
%dir %{_libdir}/%{name}
|
|
|
3ddd73 |
%{_libdir}/%{name}/hwloc*
|
|
|
3ddd73 |
|
|
|
fa9c97 |
%changelog
|
|
|
f9a9e8 |
* Thu Nov 16 2017 Michal Schmidt <mschmidt@redhat.com> - 1.11.8-4
|
|
|
f9a9e8 |
- Rebase to 1.11.8.
|
|
|
f9a9e8 |
- Deal with rpaths using the method from Packaging Guidelines.
|
|
|
f9a9e8 |
- BuildRequire rdma-core-devel on s390(x).
|
|
|
f9a9e8 |
- Fix scriptlets related to hwloc-dump-hwdata.service.
|
|
|
f9a9e8 |
- Configure with /run as runstatedir.
|
|
|
f9a9e8 |
- Spec file cleanup.
|
|
|
f9a9e8 |
- Related: rhbz1482585
|
|
|
f9a9e8 |
|
|
|
f9a9e8 |
* Tue Nov 7 2017 Don Zickus <dzickus@redhat.com> - 1.11.5-2
|
|
|
f9a9e8 |
- Build failure due to extra service file
|
|
|
f9a9e8 |
- Resolves: rhbz1482585
|
|
|
f9a9e8 |
|
|
|
f9a9e8 |
* Fri Oct 27 2017 Don Zickus <dzickus@redhat.com> - 1.11.5-1
|
|
|
f9a9e8 |
- Rebase to 1.11.5
|
|
|
f9a9e8 |
- Resolves: rhbz1482585
|
|
|
f9a9e8 |
|
|
|
28302e |
* Fri Mar 24 2017 Don Zickus <dzickus@redhat.com> - 1.11.2-2
|
|
|
28302e |
- Add support for Knights Mill
|
|
|
28302e |
Resolves: rhbz1381313
|
|
|
28302e |
|
|
|
3ddd73 |
* Fri Jul 1 2016 Don Zickus <dzickus@redhat.com> - 1.11.2-1
|
|
|
3ddd73 |
- Rebase to 1.11.2
|
|
|
3ddd73 |
- Xeon Phi dump support
|
|
|
3ddd73 |
Resolves: rhbz1273325 rhbz1314459
|
|
|
3ddd73 |
|
|
|
ecd4e2 |
* Tue Jul 14 2015 Don Zickus <dzickus@redhat.com> - 1.7-5
|
|
|
ecd4e2 |
- Xeon Phi fixes
|
|
|
ecd4e2 |
Resolves: rhbz1227786
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
* Tue Jul 14 2015 Don Zickus <dzickus@redhat.com> - 1.7-4
|
|
|
ecd4e2 |
- Fix dangling symlink for hwloc-ls manpage
|
|
|
ecd4e2 |
Resolves: rhbz1081236
|
|
|
ecd4e2 |
Add desktop entry for lstopo
|
|
|
ecd4e2 |
Resolves: rhbz1229313
|
|
|
ecd4e2 |
|
|
|
c0d0d9 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.7-3
|
|
|
c0d0d9 |
- Mass rebuild 2014-01-24
|
|
|
c0d0d9 |
|
|
|
c0d0d9 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.7-2
|
|
|
c0d0d9 |
- Mass rebuild 2013-12-27
|
|
|
c0d0d9 |
|
|
|
fa9c97 |
* Fri Sep 13 2013 Jay Fenlason <fenlason@redhat.com> - 1.7-1.2
|
|
|
fa9c97 |
- Split out lstopo into a -gui subpackage, so the hwloc base package
|
|
|
fa9c97 |
does not pull in all of X.
|
|
|
fa9c97 |
Resolves: rhbz910165
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Thu Aug 1 2013 Jay Fenlason <fenlason@redhat.com> - 1.7-1.1
|
|
|
fa9c97 |
- Remove build dependencies on libXNVCtrl-devel and w3m because RHEL
|
|
|
fa9c97 |
does not have them (w3m is available on x86_64, but not s390).
|
|
|
fa9c97 |
Resolves: rhbz978752
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Thu May 9 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.7-1
|
|
|
fa9c97 |
- Minor issue with the man page fixed
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Tue Apr 23 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.7-0
|
|
|
fa9c97 |
- Update to version 1.7
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Thu Jan 31 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.6.1-1
|
|
|
fa9c97 |
- Created libs package with reduced dependencies
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Sat Jan 19 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.6.1-0
|
|
|
fa9c97 |
- Update to version 1.6.1
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Mon Nov 5 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.5.1-1
|
|
|
fa9c97 |
- Update to version 1.5.1
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Wed Aug 15 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.5-1
|
|
|
fa9c97 |
- Update to version 1.5
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-2
|
|
|
fa9c97 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Tue May 15 2012 Orion Poplawski <orion@cora.nwra.com> - 1.4.2-1
|
|
|
fa9c97 |
- Update to version 1.4.2
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Wed Apr 18 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.4.1-2
|
|
|
fa9c97 |
- Fixed build dependency for s390x
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Mon Apr 16 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.4.1-1
|
|
|
fa9c97 |
- Update to version 1.4.1
|
|
|
fa9c97 |
- BZ812622 - libnuma was splitted out of numactl package
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Thu Apr 12 2012 Dan Horák <dan[at]danny.cz> - 1.4-2
|
|
|
fa9c97 |
- no InfiniBand on s390(x)
|
|
|
fa9c97 |
|
|
|
3ddd73 |
* Tue Feb 14 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.4-1
|
|
|
fa9c97 |
- Update to 1.4 release
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Mon Nov 14 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3-1
|
|
|
fa9c97 |
- Update build for ARM support
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Sat Oct 15 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.3-0
|
|
|
fa9c97 |
- 1.3 release
|
|
|
fa9c97 |
- added dependency on libibverbs-devel pciutils-devel
|
|
|
fa9c97 |
- cannot provide support for cuda (cuda_runtime_api.h).
|
|
|
fa9c97 |
- Nvidia CUDA is free but not open-source therefore not in Fedora.
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Fri Oct 07 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2.2-1
|
|
|
fa9c97 |
- moved *.so to the devel package
|
|
|
fa9c97 |
- libhwloc*so* in the main package
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Wed Oct 05 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2.2-0
|
|
|
fa9c97 |
- 1.2.2 release
|
|
|
fa9c97 |
- Fix for BZ https://bugzilla.redhat.com/show_bug.cgi?id=724937 for 32-bit PPC
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Sat Sep 17 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2.1-0
|
|
|
fa9c97 |
- 1.2.1 release
|
|
|
fa9c97 |
- Moved libhwloc*.so* to the main package
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Mon Jun 27 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2-0
|
|
|
fa9c97 |
- 1.2 release
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-0.2
|
|
|
fa9c97 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Mon Jan 3 2011 Dan Horák <dan[at]danny.cz> - 1.1-0.1
|
|
|
fa9c97 |
- fix build on s390(x) where numactl is missing
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Sat Jan 1 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.1-0
|
|
|
fa9c97 |
- 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
|
|
|
fa9c97 |
- Fix hwloc_bitmap_to_ulong right after allocating the bitmap.
|
|
|
fa9c97 |
- Fix the minimum width of NUMA nodes, caches and the legend in the graphical lstopo output.
|
|
|
fa9c97 |
- Cleanup error management in hwloc-gather-topology.sh.
|
|
|
fa9c97 |
- Add a manpage and usage for hwloc-gather-topology.sh on Linux.
|
|
|
fa9c97 |
- Rename hwloc-gather-topology.sh to hwloc-gather-topology to be consistent with the upcoming version 1.2ease
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Mon Jul 19 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.2-1
|
|
|
fa9c97 |
- 1.0.2 release
|
|
|
fa9c97 |
- added "check" section to the RPM SPEC file
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Mon Jul 19 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.2-0.1.rc1r2330
|
|
|
fa9c97 |
- 1.0.2 release candidate
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Mon Jul 12 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.1-19
|
|
|
fa9c97 |
- Fixed issues as described at https://bugzilla.redhat.com/show_bug.cgi?id=606498#c6
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Fri Jul 09 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.1-18
|
|
|
fa9c97 |
- Fixed issues as described at https://bugzilla.redhat.com/show_bug.cgi?id=606498
|
|
|
fa9c97 |
|
|
|
fa9c97 |
* Fri Jun 18 2010 Jirka Hladky <jhladky@redhat.com> - 1.0.1-17
|
|
|
fa9c97 |
- Initial build
|