michich / rpms / hwloc

Forked from rpms/hwloc 6 years ago
Clone
4af47c4
Summary:   Portable Hardware Locality - portable abstraction of hierarchical architectures
4af47c4
Name:      hwloc
Orion Poplawski 91bbbc2
Version:   1.4.2
4bcbf45
Release:   3%{?dist}
4af47c4
License:   BSD
4af47c4
Group:     Applications/System
4af47c4
URL:       http://www.open-mpi.org/projects/hwloc/
Orion Poplawski e6bdc67
Source0:   http://www.open-mpi.org/software/hwloc/v1.4/downloads/%{name}-%{version}.tar.bz2
4bcbf45
Requires:  %{name}-libs = %{version}-%{release} 
39da1eb
0810d1c
BuildRequires: libX11-devel libxml2-devel cairo-devel ncurses-devel pciutils-devel transfig doxygen w3m
63a3dc8
%ifnarch s390 s390x
63a3dc8
BuildRequires: libibverbs-devel
63a3dc8
%endif
39da1eb
%ifnarch s390 s390x %{arm}
7510ad4
BuildRequires: numactl-devel
7510ad4
%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
4af47c4
Group:     Development/Libraries
4bcbf45
Requires:  %{name}-libs = %{version}-%{release}
4af47c4
4af47c4
%description devel
4af47c4
Headers and shared object symbolic links for the hwloc.
4af47c4
4bcbf45
%package libs
4bcbf45
Summary:   Run time libraries for the hwloc
4bcbf45
Group:     Development/Libraries
4bcbf45
4bcbf45
%description libs
4bcbf45
Run time libraries for the hwloc
4bcbf45
4af47c4
%prep
4af47c4
%setup -q
4af47c4
255b133
4af47c4
%build
4af47c4
4af47c4
%configure
4af47c4
%{__make} %{?_smp_mflags} V=1
4af47c4
4af47c4
%install
4af47c4
%{__make} install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
4af47c4
a79c029
#Fix wrong permition on file hwloc-assembler-remote => I have reported this to upstream already
a79c029
%{__chmod} 0755 %{buildroot}%{_bindir}/hwloc-assembler-remote
a79c029
4af47c4
# We don't ship .la files.
6f00649
%{__rm} -rf %{buildroot}%{_libdir}/libhwloc.la
6f00649
4af47c4
%{__mv} %{buildroot}%{_defaultdocdir}/%{name} %{buildroot}%{_defaultdocdir}/%{name}-%{version}
4af47c4
%{__cp} -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_defaultdocdir}/%{name}-%{version}
4af47c4
%{__cp} -p doc/hwloc-hello.c %{buildroot}%{_defaultdocdir}/%{name}-%{version}
4af47c4
4af47c4
%check
4af47c4
%{__make} check
4af47c4
4bcbf45
%post libs -p /sbin/ldconfig
4af47c4
4bcbf45
%postun libs -p /sbin/ldconfig
4af47c4
4af47c4
%files
4af47c4
%defattr(-, root, root, -)
4af47c4
%{_bindir}/%{name}*
4af47c4
%{_bindir}/lstopo
4af47c4
%{_mandir}/man1/%{name}*
4af47c4
%{_mandir}/man1/lstopo*
4af47c4
4af47c4
%files devel
4af47c4
%defattr(-, root, root, -)
4af47c4
%{_libdir}/pkgconfig/*
4af47c4
%{_mandir}/man3/*
4af47c4
%dir %{_includedir}/%{name}
4af47c4
%{_includedir}/%{name}/*
4af47c4
%{_includedir}/%{name}.h
4af47c4
%{_defaultdocdir}/%{name}-%{version}/*c
14f0f68
%{_libdir}/*.so
4af47c4
4bcbf45
%files libs
4bcbf45
%defattr(-, root, root, -)
4bcbf45
%{_mandir}/man7/%{name}*
4bcbf45
%dir %{_datadir}/%{name}
4bcbf45
%{_datadir}/%{name}/%{name}.dtd
4bcbf45
%{_datadir}/%{name}/%{name}-valgrind.supp
4bcbf45
%dir %{_defaultdocdir}/%{name}-%{version}
4bcbf45
%{_defaultdocdir}/%{name}-%{version}/*[^c]
4bcbf45
%{_libdir}/libhwloc*so.*
4bcbf45
4af47c4
4af47c4
%changelog
4bcbf45
* Sun Feb  3 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.4.2-3
4bcbf45
- Created libs package with reduced dependencies
4bcbf45
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
a79c029
* Wed 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
e2dc92b
 - 1.3 release
e2dc92b
 - added dependency on libibverbs-devel pciutils-devel
e2dc92b
 - cannot provide support for cuda (cuda_runtime_api.h). 
93698e7
 - 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
14f0f68
 - moved *.so to the devel package
14f0f68
 - 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