4af47c
Summary:   Portable Hardware Locality - portable abstraction of hierarchical architectures
4af47c
Name:      hwloc
Jiri Hladky cd3b29
Version:   1.7
58c94c
Release:   1%{?dist}
4af47c
License:   BSD
4af47c
Group:     Applications/System
4af47c
URL:       http://www.open-mpi.org/projects/hwloc/
Jiri Hladky cd3b29
Source0:   http://www.open-mpi.org/software/hwloc/v1.7/downloads/%{name}-%{version}.tar.bz2
Jiri Hladky cd3b29
Patch0:    hwloc-1.7.patch
Jiri Hladky cd3b29
Patch1:    hwloc-1.7-manpage.patch
58c94c
Requires:  %{name}-libs = %{version}-%{release} 
39da1e
Jiri Hladky cd3b29
BuildRequires: libX11-devel libxml2-devel cairo-devel ncurses-devel libpciaccess-devel libXNVCtrl-devel transfig doxygen w3m texlive-latex texlive-makeindex libtool-ltdl-devel autoconf automake libtool
63a3dc
%ifnarch s390 s390x
63a3dc
BuildRequires: libibverbs-devel
63a3dc
%endif
39da1e
%ifnarch s390 s390x %{arm}
7510ad
BuildRequires: numactl-devel
5f0f50
##Requires: numactl-libs
7510ad
%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
4af47c
Group:     Development/Libraries
58c94c
Requires:  %{name}-libs = %{version}-%{release}
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
Group:     Development/Libraries
58c94c
58c94c
%description libs
58c94c
Run time libraries for the hwloc
58c94c
4af47c
%prep
4af47c
%setup -q
Jiri Hladky cd3b29
%patch0 -p1
Jiri Hladky cd3b29
%patch1 -p1
255b13
4af47c
%build
Jiri Hladky cd3b29
autoreconf --force --install
4af47c
%configure
Jiri Hladky cd3b29
##sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
Jiri Hladky cd3b29
##sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
4af47c
%{__make} %{?_smp_mflags} V=1
4af47c
4af47c
%install
4af47c
%{__make} install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
4af47c
a79c02
#Fix wrong permition on file hwloc-assembler-remote => I have reported this to upstream already
a79c02
%{__chmod} 0755 %{buildroot}%{_bindir}/hwloc-assembler-remote
a79c02
4af47c
# We don't ship .la files.
6f0064
%{__rm} -rf %{buildroot}%{_libdir}/libhwloc.la
6f0064
4af47c
%{__mv} %{buildroot}%{_defaultdocdir}/%{name} %{buildroot}%{_defaultdocdir}/%{name}-%{version}
4af47c
%{__cp} -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_defaultdocdir}/%{name}-%{version}
4af47c
%{__cp} -p doc/hwloc-hello.c %{buildroot}%{_defaultdocdir}/%{name}-%{version}
4af47c
4af47c
%check
4af47c
%{__make} check
4af47c
58c94c
%post libs -p /sbin/ldconfig
4af47c
58c94c
%postun libs -p /sbin/ldconfig
4af47c
4af47c
%files
4af47c
%defattr(-, root, root, -)
4af47c
%{_bindir}/%{name}*
4af47c
%{_bindir}/lstopo
5f0f50
%{_bindir}/lstopo-no-graphics
4af47c
%{_mandir}/man1/%{name}*
4af47c
%{_mandir}/man1/lstopo*
4af47c
4af47c
%files devel
4af47c
%defattr(-, root, root, -)
4af47c
%{_libdir}/pkgconfig/*
4af47c
%{_mandir}/man3/*
4af47c
%dir %{_includedir}/%{name}
4af47c
%{_includedir}/%{name}/*
4af47c
%{_includedir}/%{name}.h
4af47c
%{_defaultdocdir}/%{name}-%{version}/*c
14f0f6
%{_libdir}/*.so
4af47c
58c94c
%files libs
58c94c
%defattr(-, root, root, -)
58c94c
%{_mandir}/man7/%{name}*
58c94c
%dir %{_datadir}/%{name}
58c94c
%{_datadir}/%{name}/%{name}.dtd
58c94c
%{_datadir}/%{name}/%{name}-valgrind.supp
58c94c
%dir %{_defaultdocdir}/%{name}-%{version}
58c94c
%{_defaultdocdir}/%{name}-%{version}/*[^c]
58c94c
%{_libdir}/libhwloc*so.*
58c94c
4af47c
4af47c
%changelog
Jiri Hladky cd3b29
* Thu May  9 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.7-1
Jiri Hladky cd3b29
- Minor issue with the man page fixed
Jiri Hladky cd3b29
Jiri Hladky cd3b29
* Tue Apr 23 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.7-0
Jiri Hladky cd3b29
- Update to version 1.7
Jiri Hladky cd3b29
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
a79c02
* Wed 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
e2dc92
 - 1.3 release
e2dc92
 - added dependency on libibverbs-devel pciutils-devel
e2dc92
 - cannot provide support for cuda (cuda_runtime_api.h). 
93698e
 - 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
14f0f6
 - moved *.so to the devel package
14f0f6
 - 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