Blame SPECS/hwloc.spec

fa9c97
Summary:   Portable Hardware Locality - portable abstraction of hierarchical architectures
fa9c97
Name:      hwloc
3ddd73
Version:   1.11.2
28302e
Release:   2%{?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
3ddd73
Patch0:    hwloc-1.11.2-x2apic.patch
3ddd73
Patch1:    hwloc-1.11.2-dump-service.patch
3ddd73
Patch2:    hwloc-1.11.2-dump-remove-hardwire.patch
3ddd73
Patch3:    hwloc-1.11.2-dump-cleanups.patch
3ddd73
Patch4:    hwloc-1.11.2-dump-remove-stop.patch
3ddd73
Patch5:    hwloc-1.11.2-hwloc-dump-x86-only.patch
28302e
Patch6:    hwloc-1.11.5-Add-Knights-Mill-KNM-CPUID.patch
3ddd73
fa9c97
Requires:  %{name}-libs = %{version}-%{release} 
fa9c97
fa9c97
BuildRequires: libX11-devel libxml2-devel cairo-devel ncurses-devel libpciaccess-devel transfig doxygen texlive-latex texlive-makeindex libtool-ltdl-devel autoconf automake libtool
ecd4e2
BuildRequires: desktop-file-utils
fa9c97
%ifnarch s390 s390x
fa9c97
BuildRequires: libibverbs-devel
fa9c97
%endif
fa9c97
%ifnarch s390 s390x %{arm}
fa9c97
BuildRequires: numactl-devel
fa9c97
##Requires: numactl-libs
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
fa9c97
Requires:  %{name}-libs = %{version}-%{release}
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
fa9c97
Requires:  %{name}-libs = %{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
3ddd73
Requires:  %{name}-plugins = %{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
fa9c97
%setup -q
fa9c97
%patch0 -p1
fa9c97
%patch1 -p1
ecd4e2
%patch2 -p1
ecd4e2
%patch3 -p1
ecd4e2
%patch4 -p1
3ddd73
%patch5 -p1
28302e
%patch6 -p1
fa9c97
fa9c97
%build
fa9c97
autoreconf --force --install
3ddd73
%configure --enable-plugins --disable-silent-rules
fa9c97
##sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
fa9c97
##sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
fa9c97
%{__make} %{?_smp_mflags} V=1
fa9c97
fa9c97
%install
fa9c97
%{__make} install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
fa9c97
fa9c97
#Fix wrong permition on file hwloc-assembler-remote => I have reported this to upstream already
fa9c97
%{__chmod} 0755 %{buildroot}%{_bindir}/hwloc-assembler-remote
fa9c97
fa9c97
# We don't ship .la files.
3ddd73
find %{buildroot} -name '*.la' -exec rm -f {} ';'
fa9c97
fa9c97
%{__mv} %{buildroot}%{_defaultdocdir}/%{name} %{buildroot}%{_defaultdocdir}/%{name}-%{version}
fa9c97
%{__cp} -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_defaultdocdir}/%{name}-%{version}
3ddd73
%{__cp} -rp doc/examples %{buildroot}%{_defaultdocdir}/%{name}-%{version}
3ddd73
mv  %{buildroot}%{_defaultdocdir}/%{name}-%{version}/examples/Makefile  %{buildroot}%{_defaultdocdir}/%{name}-%{version}/examples/Makefile_%{_arch}
ecd4e2
desktop-file-validate %{buildroot}/%{_datadir}/applications/lstopo.desktop
3ddd73
%ifarch x86_64 i686
3ddd73
mkdir -p %{buildroot}%{_unitdir}
3ddd73
%{__mv} %{buildroot}/usr/share/hwloc/hwloc-dump-hwdata.service %{buildroot}%{_unitdir}/hwloc-dump-hwdata.service
3ddd73
%endif
fa9c97
fa9c97
%check
fa9c97
%{__make} check
fa9c97
3ddd73
%ifarch x86_64 i686
3ddd73
%post
3ddd73
%systemd_post hwloc-dump-hwdata.service
3ddd73
3ddd73
%preun
3ddd73
%systemd_preun hwloc-dump-hwdata.service
3ddd73
%endif
3ddd73
fa9c97
%post libs -p /sbin/ldconfig
fa9c97
fa9c97
%postun libs -p /sbin/ldconfig
fa9c97
fa9c97
%files
fa9c97
%defattr(-, root, root, -)
3ddd73
%ifarch x86_64 i686
3ddd73
%{_sbindir}/%{name}*
3ddd73
%{_unitdir}/hwloc-dump-hwdata.service
3ddd73
%endif
fa9c97
%{_bindir}/%{name}*
fa9c97
%{_bindir}/lstopo-no-graphics
fa9c97
%{_mandir}/man1/%{name}*
fa9c97
%{_mandir}/man1/lstopo-no-graphics*
fa9c97
fa9c97
%files devel
fa9c97
%defattr(-, root, root, -)
fa9c97
%{_libdir}/pkgconfig/*
fa9c97
%{_mandir}/man3/*
fa9c97
%dir %{_includedir}/%{name}
fa9c97
%{_includedir}/%{name}/*
fa9c97
%{_includedir}/%{name}.h
3ddd73
%{_defaultdocdir}/%{name}-%{version}/examples
fa9c97
%{_libdir}/*.so
fa9c97
fa9c97
%files libs
fa9c97
%defattr(-, root, root, -)
fa9c97
%{_mandir}/man7/%{name}*
fa9c97
%dir %{_datadir}/%{name}
fa9c97
%{_datadir}/%{name}/%{name}.dtd
fa9c97
%{_datadir}/%{name}/%{name}-valgrind.supp
fa9c97
%dir %{_defaultdocdir}/%{name}-%{version}
fa9c97
%{_defaultdocdir}/%{name}-%{version}/*[^c]
fa9c97
%{_libdir}/libhwloc*so.*
fa9c97
fa9c97
%files gui
fa9c97
%{_bindir}/lstopo
fa9c97
%{_mandir}/man1/lstopo.*
ecd4e2
%{_datadir}/applications/lstopo.desktop
fa9c97
3ddd73
%files plugins
3ddd73
%dir %{_libdir}/%{name}
3ddd73
%{_libdir}/%{name}/hwloc*
3ddd73
fa9c97
fa9c97
%changelog
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