Blame SPECS/hwloc.spec

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