1 # TODO: CUDA >= 30.20, NVML/nvidia-ml on bcond?
3 # - kerrighed library is only checked for; kerrighed support in hwloc uses /proc filesystem
4 # - myriexpress (open-mx) library is only checked for, but not used by hwloc code
5 # (just in one test); in binary packages only interface header is included
6 Summary: Portable Hardware Locality
7 Summary(pl.UTF-8): Przenośna lokalizacja sprzętu
12 Group: Applications/System
13 Source0: http://www.open-mpi.org/software/hwloc/v1.10/downloads/%{name}-%{version}.tar.bz2
14 # Source0-md5: c0502d93b1b8800cde28f84010bccfe0
15 URL: http://www.open-mpi.org/projects/hwloc/
16 BuildRequires: OpenCL-devel
17 BuildRequires: OpenGL-devel
18 BuildRequires: cairo-devel
19 BuildRequires: libXNVCtrl-devel
20 BuildRequires: libibverbs-devel
21 BuildRequires: libltdl-devel
22 BuildRequires: libstdc++-devel
23 BuildRequires: libxml2-devel >= 2.0
24 BuildRequires: ncurses-devel
25 BuildRequires: numactl-devel
26 BuildRequires: pkgconfig >= 1:0.9.0
27 BuildRequires: xorg-lib-libX11-devel
28 BuildRequires: xorg-lib-libXext-devel
29 BuildRequires: xorg-lib-libpciaccess-devel
30 BuildRequires: xorg-proto-xproto-devel
31 Requires: %{name}-libs = %{version}-%{release}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The Portable Hardware Locality (hwloc) software package provides a
36 portable abstraction (across OS, versions, architectures, ...) of the
37 hierarchical topology of modern architectures, including NUMA memory
38 nodes, sockets, shared caches, cores and simultaneous multithreading.
39 It also gathers various system attributes such as cache and memory
40 information. It primarily aims at helping applications with gathering
41 information about modern computing hardware so as to exploit it
42 accordingly and efficiently.
44 %description -l pl.UTF-8
45 Pakiet HWLOC (Portable Hardware Locality) zapewnia przenośną (między
46 systemami operacyjnymi, werjami, architekturami...) abstrakcję
47 hierarchicznej topologii współczesnych architektur, w tym węzłów z
48 pamięcią NUMA, gniazd, współdzielonych pamięci podręcznych, rdzeni i
49 wielowątkowości. Gromadzi też różne właściwości systemów, takie jak
50 informacje o pamięci głównej i podręcznej. Głównym celem jest pomoc
51 aplikacjom w gromadzeniu informacji o współczesnym sprzęcie
52 obliczeniowym w celu jego właściwego i wydajnego wykorzystania.
55 Summary: Portable Hardware Locality (hwloc) library
56 Summary(pl.UTF-8): Biblioteka przenośnej lokalizacji sprzętu (hwloc)
60 Portable Hardware Locality (hwloc) library.
62 %description libs -l pl.UTF-8
63 Biblioteka przenośnej lokalizacji sprzętu (hwloc).
66 Summary: Header files for hwloc library
67 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hwloc
68 Group: Development/Libraries
69 Requires: %{name}-libs = %{version}-%{release}
70 Requires: libltdl-devel
71 Requires: numactl-devel
74 Header files for hwloc library.
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe biblioteki hwloc.
85 --disable-silent-rules
89 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhwloc.la \
95 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
98 %{__rm} $RPM_BUILD_ROOT%{_docdir}/hwloc/hwloc*.pdf
101 rm -rf $RPM_BUILD_ROOT
103 %post libs -p /sbin/ldconfig
104 %postun libs -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/hwloc-*
109 %attr(755,root,root) %{_bindir}/lstopo
110 %attr(755,root,root) %{_bindir}/lstopo-no-graphics
111 %dir %{_libdir}/%{name}
112 %attr(755,root,root) %{_libdir}/%{name}/hwloc_opencl.so
113 %attr(755,root,root) %{_libdir}/%{name}/hwloc_pci.so
114 %attr(755,root,root) %{_libdir}/%{name}/hwloc_xml_libxml.so
116 %{_desktopdir}/hwloc-ls.desktop
117 %{_mandir}/man1/hwloc-*.1*
118 %{_mandir}/man1/lstopo.1*
119 %{_mandir}/man1/lstopo-no-graphics.1*
120 %{_mandir}/man7/hwloc.7*
123 %defattr(644,root,root,755)
124 %doc AUTHORS COPYING NEWS README
125 %attr(755,root,root) %{_libdir}/libhwloc.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libhwloc.so.5
129 %defattr(644,root,root,755)
130 %doc doc/doxygen-doc/html doc/doxygen-doc/hwloc-a4.pdf
131 %attr(755,root,root) %{_libdir}/libhwloc.so
132 %{_pkgconfigdir}/hwloc.pc
134 %{_includedir}/hwloc.h
135 %{_mandir}/man3/HWLOC_*.3*
136 %{_mandir}/man3/hwloc_*.3*
137 %{_mandir}/man3/hwlocality_*.3*