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