2013-10-17 13:20:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package hwloc
|
|
|
|
#
|
2021-01-26 17:50:29 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-10-17 13:20:18 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-01 09:05:07 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-17 13:20:18 +02:00
|
|
|
#
|
|
|
|
|
2014-08-18 10:40:45 +02:00
|
|
|
|
2019-10-01 09:05:07 +02:00
|
|
|
%global lname libhwloc15
|
2013-10-17 13:20:18 +02:00
|
|
|
Name: hwloc
|
2021-01-26 17:50:29 +01:00
|
|
|
Version: 2.4.0
|
2015-03-07 09:11:24 +01:00
|
|
|
Release: 0
|
2013-10-17 13:20:18 +02:00
|
|
|
Summary: Portable Hardware Locality
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Clustering/Computing
|
2020-08-18 19:34:53 +02:00
|
|
|
URL: https://www.open-mpi.org/projects/hwloc/
|
2021-01-26 17:50:29 +01:00
|
|
|
Source0: https://download.open-mpi.org/release/hwloc/v2.4/hwloc-%{version}.tar.bz2
|
2013-10-17 13:20:18 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2020-08-18 19:42:12 +02:00
|
|
|
BuildRequires: libnuma-devel
|
2013-10-17 13:20:18 +02:00
|
|
|
BuildRequires: libtool
|
2015-03-07 09:11:24 +01:00
|
|
|
BuildRequires: ncurses-devel
|
2017-01-26 15:48:20 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: pkgconfig
|
2020-08-18 19:34:53 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2015-03-07 09:11:24 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2013-10-17 13:20:18 +02:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(pciaccess)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
2017-01-26 15:48:20 +01:00
|
|
|
Requires: %{lname} = %{version}-%{release}
|
|
|
|
Requires: perl-JSON
|
|
|
|
Requires: perl-base >= 5.18.2
|
|
|
|
Requires(post): desktop-file-utils
|
|
|
|
Requires(postun): desktop-file-utils
|
2020-08-18 19:34:53 +02:00
|
|
|
%{?systemd_ordering}
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%description
|
2015-03-07 09:11:24 +01:00
|
|
|
The Portable Hardware Locality (hwloc) software package provides
|
2017-02-08 18:39:13 +01:00
|
|
|
an abstraction (across OS, versions, architectures, ...)
|
2015-03-07 09:11:24 +01:00
|
|
|
of the hierarchical topology of modern architectures, including
|
2017-02-08 18:39:13 +01:00
|
|
|
NUMA memory nodes, shared caches, processor sockets, processor cores
|
2013-10-17 13:20:18 +02:00
|
|
|
and processing units (logical processors or "threads"). It also gathers
|
|
|
|
various system attributes such as cache and memory information. It primarily
|
|
|
|
aims at helping applications with gathering information about modern
|
|
|
|
computing hardware so as to exploit it accordingly and efficiently.
|
|
|
|
|
2015-03-07 09:11:24 +01:00
|
|
|
hwloc may display the topology in multiple convenient formats.
|
|
|
|
It also offers a powerful programming interface (C API) to gather information
|
2013-10-17 13:20:18 +02:00
|
|
|
about the hardware, bind processes, and much more.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers and shared development libraries for hwloc
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{lname} = %{version}
|
2017-01-26 15:48:20 +01:00
|
|
|
Provides: libhwloc-devel = %{version}
|
|
|
|
Obsoletes: libhwloc-devel < %{version}
|
|
|
|
Obsoletes: libhwloc-devel = 0.0.0
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%description devel
|
2017-02-08 18:39:13 +01:00
|
|
|
This package contains the headers and shared object symbolic links
|
|
|
|
for the hwloc.
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%package -n %{lname}
|
2017-02-08 18:39:13 +01:00
|
|
|
Summary: Runtime libraries for hwloc
|
2013-10-17 13:20:18 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{name}-data
|
|
|
|
|
|
|
|
%description -n %{lname}
|
2017-03-06 16:28:30 +01:00
|
|
|
This package contains the run time libraries for hwloc.
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%package data
|
2017-03-06 16:28:30 +01:00
|
|
|
Summary: Run time data for hwloc
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-01-26 15:48:20 +01:00
|
|
|
BuildArch: noarch
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%description data
|
2017-03-06 16:28:30 +01:00
|
|
|
This package contains the run time data for the hwloc.
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for hwloc
|
|
|
|
Group: Documentation/Other
|
2017-01-26 15:48:20 +01:00
|
|
|
BuildArch: noarch
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%description doc
|
2017-03-06 16:28:30 +01:00
|
|
|
This package contains the documentation for hwloc.
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%prep
|
2020-08-18 19:34:53 +02:00
|
|
|
%setup -q
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%build
|
2017-01-26 15:48:20 +01:00
|
|
|
autoreconf -fvi
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
--disable-silent-rules
|
2020-08-18 19:34:53 +02:00
|
|
|
%make_build
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%install
|
2017-01-26 15:48:20 +01:00
|
|
|
%make_install
|
2015-03-07 09:11:24 +01:00
|
|
|
%suse_update_desktop_file -r lstopo System Monitor
|
2013-10-17 13:20:18 +02:00
|
|
|
# We don't ship .la files.
|
2015-03-07 09:11:24 +01:00
|
|
|
rm -rf %{buildroot}%{_libdir}/libhwloc.la
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
# documentation will be handled by % doc macro
|
2015-03-07 09:11:24 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/
|
2017-03-06 16:28:30 +01:00
|
|
|
|
|
|
|
# This binary is built only for intel architectures
|
|
|
|
%ifarch %{ix86} x86_64
|
2020-08-18 19:34:53 +02:00
|
|
|
install -D -m 644 %{buildroot}%{_datadir}/hwloc/hwloc-dump-hwdata.service %{buildroot}%{_unitdir}/hwloc-dump-hwdata.service
|
2017-03-06 16:28:30 +01:00
|
|
|
%endif
|
2020-08-18 19:34:53 +02:00
|
|
|
rm %{buildroot}%{_datadir}/hwloc/hwloc-dump-hwdata.service
|
2017-03-06 16:28:30 +01:00
|
|
|
|
2013-10-17 13:20:18 +02:00
|
|
|
%fdupes -s %{buildroot}/%{_mandir}/man1
|
|
|
|
%fdupes -s %{buildroot}/%{_mandir}/man7
|
2016-03-10 17:18:00 +01:00
|
|
|
|
2013-10-17 13:20:18 +02:00
|
|
|
%check
|
|
|
|
#XXX: this is weird, but make check got broken by removing doxygen-doc/man above
|
|
|
|
# the only one fix is to install documentation by hand, or to ignore check error
|
2020-08-18 19:34:53 +02:00
|
|
|
%make_build check || :
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2020-08-18 19:42:12 +02:00
|
|
|
|
|
|
|
%ifarch %{ix86} x86_64
|
2020-08-21 00:58:44 +02:00
|
|
|
%pre
|
2020-08-18 19:34:53 +02:00
|
|
|
%service_add_pre hwloc-dump-hwdata.service
|
2020-08-18 19:42:12 +02:00
|
|
|
%endif
|
2013-10-17 13:20:18 +02:00
|
|
|
|
2017-01-26 15:48:20 +01:00
|
|
|
%post
|
2020-08-18 19:42:12 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
2020-08-18 19:34:53 +02:00
|
|
|
%service_add_post hwloc-dump-hwdata.service
|
2020-08-18 19:42:12 +02:00
|
|
|
%endif
|
2017-01-26 15:48:20 +01:00
|
|
|
%desktop_database_post
|
|
|
|
|
2020-08-18 19:42:12 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
2020-08-21 00:58:44 +02:00
|
|
|
%preun
|
2020-08-18 19:34:53 +02:00
|
|
|
%service_del_preun hwloc-dump-hwdata.service
|
2020-08-18 19:42:12 +02:00
|
|
|
%endif
|
2020-08-18 19:34:53 +02:00
|
|
|
|
2017-01-26 15:48:20 +01:00
|
|
|
%postun
|
2020-08-18 19:42:12 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
2020-08-18 19:34:53 +02:00
|
|
|
%service_del_postun hwloc-dump-hwdata.service
|
2020-08-18 19:42:12 +02:00
|
|
|
%endif
|
|
|
|
|
2017-01-26 15:48:20 +01:00
|
|
|
%desktop_database_postun
|
|
|
|
|
2013-10-17 13:20:18 +02:00
|
|
|
%files
|
2020-08-18 19:34:53 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README VERSION
|
2020-11-23 16:23:43 +01:00
|
|
|
%{_mandir}/man7/hwloc*
|
2017-01-26 15:48:20 +01:00
|
|
|
%{_mandir}/man1/hwloc*
|
|
|
|
%{_mandir}/man1/lstopo*
|
2016-03-10 17:18:00 +01:00
|
|
|
%{_bindir}/hwloc*
|
|
|
|
%{_bindir}/lstopo*
|
2014-12-18 15:00:33 +01:00
|
|
|
%{_datadir}/applications/*.desktop
|
2021-01-26 17:50:29 +01:00
|
|
|
%{_datadir}/bash-completion/completions/%{name}
|
2017-03-06 16:28:30 +01:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%attr(0755,root,root) %{_sbindir}/hwloc-dump-hwdata
|
2020-08-18 19:34:53 +02:00
|
|
|
%{_unitdir}/hwloc-dump-hwdata.service
|
2017-03-06 16:28:30 +01:00
|
|
|
%endif
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%files devel
|
2017-01-26 15:48:20 +01:00
|
|
|
%{_includedir}/hwloc
|
|
|
|
%{_includedir}/hwloc.h
|
|
|
|
%{_libdir}/libhwloc.so
|
|
|
|
%{_libdir}/pkgconfig/hwloc.pc
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%files -n %{lname}
|
|
|
|
%{_libdir}/libhwloc*so.*
|
|
|
|
|
|
|
|
%files data
|
2017-01-26 15:48:20 +01:00
|
|
|
%dir %{_datadir}/hwloc
|
2019-10-30 12:15:33 +01:00
|
|
|
%dir %{_datadir}/hwloc/hwloc-ps.www
|
2017-01-26 15:48:20 +01:00
|
|
|
%{_datadir}/hwloc/hwloc.dtd
|
2019-10-01 09:05:07 +02:00
|
|
|
%{_datadir}/hwloc/hwloc2-diff.dtd
|
|
|
|
%{_datadir}/hwloc/hwloc2.dtd
|
2017-01-26 15:48:20 +01:00
|
|
|
%{_datadir}/hwloc/hwloc-valgrind.supp
|
2019-10-30 12:15:33 +01:00
|
|
|
%{_datadir}/hwloc/hwloc-ps.www/*
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%files doc
|
2019-10-01 09:05:07 +02:00
|
|
|
%doc ./doc/doxygen-doc/html/*
|
|
|
|
%{_mandir}/man3/*
|
2013-10-17 13:20:18 +02:00
|
|
|
|
|
|
|
%changelog
|