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