Blame SPECS/hwloc.spec

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