]> git.pld-linux.org Git - packages/hwloc.git/blame - hwloc.spec
hwloc-dump-hwdata available only on x86
[packages/hwloc.git] / hwloc.spec
CommitLineData
ad5914df 1# TODO: CUDA >= 30.20, NVML/nvidia-ml on bcond?
3121520b
JB
2# NOTES (as of 1.9-1.11):
3# - kerrighed library (>= 2.0) is only checked for; kerrighed support in hwloc uses /proc filesystem
33daa92c
JB
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
3121520b 6# - same with libibverbs
8c44f071 7Summary: Portable Hardware Locality
ad5914df 8Summary(pl.UTF-8): Przenośna lokalizacja sprzętu
8c44f071 9Name: hwloc
aad928f5 10Version: 1.11.13
3121520b 11Release: 1
8c44f071
TP
12License: BSD
13Group: Applications/System
3121520b
JB
14#Future TODO (breaks API): https://www.open-mpi.org/software/hwloc/v2.0/
15#Source0Download: https://www.open-mpi.org/software/hwloc/v1.11/
16Source0: https://download.open-mpi.org/release/hwloc/v1.11/%{name}-%{version}.tar.bz2
aad928f5 17# Source0-md5: 3c792e23c209e9e1bafe9bdbc613d401
3121520b 18URL: https://www.open-mpi.org/projects/hwloc/
ad5914df
JB
19BuildRequires: OpenCL-devel
20BuildRequires: OpenGL-devel
8c44f071 21BuildRequires: cairo-devel
ad5914df 22BuildRequires: libXNVCtrl-devel
3121520b 23BuildRequires: libltdl-devel >= 2:2.2.6
ad5914df
JB
24BuildRequires: libstdc++-devel
25BuildRequires: libxml2-devel >= 2.0
26BuildRequires: ncurses-devel
8c44f071 27BuildRequires: numactl-devel
ad5914df 28BuildRequires: pkgconfig >= 1:0.9.0
3121520b 29BuildRequires: udev-devel
8c44f071 30BuildRequires: xorg-lib-libX11-devel
ad5914df
JB
31BuildRequires: xorg-lib-libXext-devel
32BuildRequires: xorg-lib-libpciaccess-devel
8c44f071 33BuildRequires: xorg-proto-xproto-devel
3121520b
JB
34%if %{with tests}
35BuildRequires: libibverbs-devel
36BuildRequires: open-mx-devel
37%endif
8c44f071
TP
38Requires: %{name}-libs = %{version}-%{release}
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42The Portable Hardware Locality (hwloc) software package provides a
43portable abstraction (across OS, versions, architectures, ...) of the
44hierarchical topology of modern architectures, including NUMA memory
45nodes, sockets, shared caches, cores and simultaneous multithreading.
46It also gathers various system attributes such as cache and memory
47information. It primarily aims at helping applications with gathering
48information about modern computing hardware so as to exploit it
49accordingly and efficiently.
50
ad5914df
JB
51%description -l pl.UTF-8
52Pakiet HWLOC (Portable Hardware Locality) zapewnia przenośną (między
53systemami operacyjnymi, werjami, architekturami...) abstrakcję
54hierarchicznej topologii współczesnych architektur, w tym węzłów z
55pamięcią NUMA, gniazd, współdzielonych pamięci podręcznych, rdzeni i
56wielowątkowości. Gromadzi też różne właściwości systemów, takie jak
57informacje o pamięci głównej i podręcznej. Głównym celem jest pomoc
58aplikacjom w gromadzeniu informacji o współczesnym sprzęcie
59obliczeniowym w celu jego właściwego i wydajnego wykorzystania.
60
8c44f071 61%package libs
ad5914df
JB
62Summary: Portable Hardware Locality (hwloc) library
63Summary(pl.UTF-8): Biblioteka przenośnej lokalizacji sprzętu (hwloc)
8c44f071
TP
64Group: Libraries
65
66%description libs
ad5914df
JB
67Portable Hardware Locality (hwloc) library.
68
69%description libs -l pl.UTF-8
70Biblioteka przenośnej lokalizacji sprzętu (hwloc).
8c44f071
TP
71
72%package devel
ad5914df
JB
73Summary: Header files for hwloc library
74Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hwloc
8c44f071
TP
75Group: Development/Libraries
76Requires: %{name}-libs = %{version}-%{release}
3121520b 77Requires: libltdl-devel >= 2:2.2.6
ad5914df 78Requires: numactl-devel
3121520b 79Requires: udev-devel
8c44f071
TP
80
81%description devel
ad5914df
JB
82Header files for hwloc library.
83
84%description devel -l pl.UTF-8
85Pliki nagłówkowe biblioteki hwloc.
8c44f071
TP
86
87%prep
88%setup -q
89
90%build
ad5914df
JB
91%configure \
92 --enable-plugins \
93 --disable-silent-rules
94%{__make}
8c44f071
TP
95
96%install
97rm -rf $RPM_BUILD_ROOT
98
99%{__make} install \
100 DESTDIR=$RPM_BUILD_ROOT
101
ad5914df
JB
102%{__rm} $RPM_BUILD_ROOT%{_libdir}/libhwloc.la \
103 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
8c44f071 104
fe9dbd5e
JB
105# packaged as %doc
106%{__rm} $RPM_BUILD_ROOT%{_docdir}/hwloc/hwloc*.pdf
107
8c44f071
TP
108%clean
109rm -rf $RPM_BUILD_ROOT
110
111%post libs -p /sbin/ldconfig
112%postun libs -p /sbin/ldconfig
113
114%files
115%defattr(644,root,root,755)
ad5914df 116%attr(755,root,root) %{_bindir}/hwloc-*
8c44f071 117%attr(755,root,root) %{_bindir}/lstopo
ad5914df 118%attr(755,root,root) %{_bindir}/lstopo-no-graphics
e2534726 119%ifarch %{ix86} %{x8664} x32
3121520b 120%attr(755,root,root) %{_sbindir}/hwloc-dump-hwdata
e2534726 121%endif
ad5914df
JB
122%dir %{_libdir}/%{name}
123%attr(755,root,root) %{_libdir}/%{name}/hwloc_opencl.so
124%attr(755,root,root) %{_libdir}/%{name}/hwloc_pci.so
125%attr(755,root,root) %{_libdir}/%{name}/hwloc_xml_libxml.so
8c44f071 126%{_datadir}/%{name}
3121520b 127%{_desktopdir}/lstopo.desktop
ad5914df 128%{_mandir}/man1/hwloc-*.1*
8c44f071 129%{_mandir}/man1/lstopo.1*
ad5914df
JB
130%{_mandir}/man1/lstopo-no-graphics.1*
131%{_mandir}/man7/hwloc.7*
8c44f071
TP
132
133%files libs
134%defattr(644,root,root,755)
ad5914df
JB
135%doc AUTHORS COPYING NEWS README
136%attr(755,root,root) %{_libdir}/libhwloc.so.*.*.*
137%attr(755,root,root) %ghost %{_libdir}/libhwloc.so.5
8c44f071
TP
138
139%files devel
140%defattr(644,root,root,755)
ad5914df
JB
141%doc doc/doxygen-doc/html doc/doxygen-doc/hwloc-a4.pdf
142%attr(755,root,root) %{_libdir}/libhwloc.so
143%{_pkgconfigdir}/hwloc.pc
144%{_includedir}/hwloc
145%{_includedir}/hwloc.h
8c44f071
TP
146%{_mandir}/man3/HWLOC_*.3*
147%{_mandir}/man3/hwloc_*.3*
148%{_mandir}/man3/hwlocality_*.3*
This page took 0.073642 seconds and 4 git commands to generate.