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