blob: 0f462477fb9f3ed8db31e755d0e212a97633d6f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
Name: hwloc
Version: 2.11.1
Release: 1
Summary: Hardware locality utilities and libraries
License: BSD-3-Clause
URL: https://www.open-mpi.org/projects/hwloc/
Source0: https://download.open-mpi.org/release/%{name}/v2.11/%{name}-%{version}.tar.bz2
BuildRequires: gcc-c++
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(numa)
BuildRequires: pkgconfig(pciaccess)
BuildRequires: libX11-devel
BuildRequires: ncurses-devel
BuildRequires: systemd
Provides: hwloc-libs hwloc-gui hwloc-plugins
Obsoletes: hwloc-libs hwloc-gui hwloc-plugins
%description
hwloc provides command line tools and a C API to obtain the hierarchical map of key computing elements,
such as: NUMA memory nodes, shared caches, processor sockets, processor cores, and processor "threads".
hwloc also gathers various attributes such as cache and memory information,
and is portable across a variety of different operating systems and platforms.
%package devel
Summary: Development files for hwloc
Requires: %{name} = %{version}-%{release}
%description devel
Contains header files, development libraries and shared object symbolic links for hwloc.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
export runstatedir=/run
%configure --enable-plugins --disable-silent-rules
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install
%delete_la
cp -pr doc/examples %{buildroot}%{_pkgdocdir}
# Fix for BZ1253977
mv %{buildroot}%{_pkgdocdir}/examples/Makefile %{buildroot}%{_pkgdocdir}/examples/Makefile_%{_arch}
# Make hwloc-gui not depend on hwl
rm %{buildroot}%{_mandir}/man1/lstopo.1
ln %{buildroot}%{_mandir}/man1/lstopo-no-graphics.1 %{buildroot}%{_mandir}/man1/lstopo.1
# https://github.com/open-mpi/hwloc/issues/221
# This binary is built only for intel architectures
%ifarch %{ix86} x86_64
install -d %{buildroot}%{_unitdir}
mv %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service %{buildroot}%{_unitdir}/
%else
rm %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service
%endif
%check
LD_LIBRARY_PATH=$PWD/hwloc/.libs %make_build check
%ifarch %{ix86} x86_64
%post
%systemd_post hwloc-dump-hwdata.service
%preun
%systemd_preun hwloc-dump-hwdata.service
%postun
%systemd_postun_with_restart hwloc-dump-hwdata.service
%endif
%files
%license COPYING
%doc AUTHORS NEWS README
%{_bindir}/%{name}*
%{_bindir}/lstopo*
%{_datadir}/%{name}
%{_datadir}/applications/lstopo.desktop
%{_datadir}/bash-completion/completions/hwloc
%ifarch %{ix86} x86_64
%{_sbindir}/hwloc-dump-hwdata
%{_unitdir}/hwloc-dump-hwdata.service
%endif
%{_libdir}/%{name}
%{_libdir}/libhwloc*so.15*
%files devel
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}
%{_libdir}/*.so
%{_pkgdocdir}/examples
%files help
%{_mandir}/man?/*
%changelog
* Thu Aug 01 2024 Funda Wang <fundawang@yeah.net> - 2.11.1-1
- update to 2.11.1
* Thu Mar 21 2024 xuhe <xuhe@kylinos.cn> - 2.10.0-2
- Fix Source0 info
* Mon Mar 18 2024 xu_ping <707078654@qq.com> - 2.10.0-1
- Upgrade version to 2.10.0
* Wed Aug 30 2023 wangkai <13474090681@163.com> - 2.9.1-2
- Fix CVE-2022-47022
* Thu Apr 13 2023 liyanan <thistleslyn@163.com> - 2.9.1-1
- Update to 2.9.1
* Sun May 22 2022 Yicong Yang <young.yicong@outlook.com> - 2.7.1-1
- Update to 2.7.1 stable
* Mon May 9 2022 caodongxia <caodongxia@h-partners.com> - 1.11.9-5
- License compliance rectification
* Thu Jul 22 2021 shixuantong <shixuantong@huawei.com> - 1.11.9-4
- move %{_pkgdocdir} to help subpackage
* Fri Nov 15 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.11.9-3
- Package init
|