Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
SOURCES/hwloc-1.11.9.tar.bz2
|
||||
SOURCES/hwloc-2.2.0.tar.bz2
|
||||
/hwloc-*.tar.bz2
|
||||
/lstopo.desktop
|
||||
/32ppc-4n4c2c.tar.bz2
|
||||
|
@ -1,2 +0,0 @@
|
||||
f403351c2ab08e4a1bef24f466a6e992feb8b0b8 SOURCES/hwloc-1.11.9.tar.bz2
|
||||
1b87ff3820b28e718dfdca626a1d27521ea613f6 SOURCES/hwloc-2.2.0.tar.bz2
|
@ -1,223 +1,43 @@
|
||||
Summary: Portable Hardware Locality - portable abstraction of hierarchical architectures
|
||||
Name: hwloc
|
||||
Version: 2.2.0
|
||||
Release: 3%{?dist}
|
||||
License: BSD
|
||||
URL: http://www.open-mpi.org/projects/hwloc/
|
||||
Source0: http://www.open-mpi.org/software/hwloc/v2.0/downloads/%{name}-%{version}.tar.bz2
|
||||
Source1: http://www.open-mpi.org/software/hwloc/v1.11/downloads/%{name}-1.11.9.tar.bz2
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
BuildRequires: gcc
|
||||
# C++ only for hwloc-hello-cpp test:
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cairo-devel
|
||||
BuildRequires: libpciaccess-devel
|
||||
BuildRequires: libtool-ltdl-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libXNVCtrl-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: transfig doxygen
|
||||
BuildRequires: texlive-latex texlive-makeindex
|
||||
BuildRequires: desktop-file-utils
|
||||
%ifnarch s390 %{arm}
|
||||
BuildRequires: numactl-devel
|
||||
%endif
|
||||
%ifnarch %{arm}
|
||||
BuildRequires: rdma-core-devel
|
||||
%endif
|
||||
%ifarch %{ix86} x86_64
|
||||
%{?systemd_requires}
|
||||
BuildRequires: systemd
|
||||
%endif
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
%description
|
||||
The Portable Hardware Locality (hwloc) software package provides
|
||||
a portable abstraction (across OS, versions, architectures, ...)
|
||||
of the hierarchical topology of modern architectures, including
|
||||
NUMA memory nodes, shared caches, processor sockets, processor cores
|
||||
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.
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
hwloc may display the topology in multiple convenient formats.
|
||||
It also offers a powerful programming interface (C API) to gather information
|
||||
about the hardware, bind processes, and much more.
|
||||
* Sun Jul 11 2021 Jirka Hladky <hladky.jiri@gmail.com> - 2.5.0-1
|
||||
- Update to 2.5.0
|
||||
|
||||
%package devel
|
||||
Summary: Headers and shared development libraries for hwloc
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
%ifnarch %{arm}
|
||||
Requires: rdma-core-devel%{?_isa}
|
||||
%endif
|
||||
* Thu Mar 18 2021 Dan Horák <dan[at]danny.cz> - 2.4.1-3
|
||||
- use lynx instead of w3m to reduce deps
|
||||
|
||||
%description devel
|
||||
Headers and shared object symbolic links for the hwloc.
|
||||
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.4.1-2
|
||||
- Rebuilt for updated systemd-rpm-macros
|
||||
See https://pagure.io/fesco/issue/2583.
|
||||
|
||||
%package libs
|
||||
Summary: Run time libraries for the hwloc
|
||||
* Mon Mar 01 2021 Jirka Hladky <hladky.jiri@gmail.com> - 2.4.1-1
|
||||
- Update to 2.4.1
|
||||
|
||||
%description libs
|
||||
Run time libraries for the hwloc
|
||||
* Wed Feb 24 2021 Prarit Bhargava <prarit@redhat.com> - 2.2.0-3
|
||||
- remove libXNVCtrl dependency
|
||||
|
||||
%package gui
|
||||
Summary: The gui-based hwloc program(s)
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
%description gui
|
||||
GUI-based tool for displaying system topology information.
|
||||
* Mon Aug 03 2020 Orion Poplawski <orion@nwra.com> - 2.2.0-1
|
||||
- Update to 2.2.0
|
||||
|
||||
%package plugins
|
||||
Summary: Plugins for hwloc
|
||||
Requires: %{name}-plugins%{?_isa} = %{version}-%{release}
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-5
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
%description plugins
|
||||
This package contains plugins for hwloc. This includes
|
||||
- PCI support
|
||||
- GL support
|
||||
- libxml support
|
||||
|
||||
%package -n compat-hwloc1
|
||||
Summary: Compat package for hwloc-1.11.9
|
||||
|
||||
%description -n compat-hwloc1
|
||||
This package contains a compat library for hwloc-1.11.9.
|
||||
|
||||
%prep
|
||||
%setup -q hwloc_src -b 1
|
||||
%build
|
||||
|
||||
# BUILD THE PACKAGE
|
||||
|
||||
# The ./configure script will support --runstatedir= when generated with
|
||||
# autoconf 2.70. Until then, tell it about /run using the export:
|
||||
export runstatedir=/run
|
||||
%configure --enable-plugins --disable-silent-rules
|
||||
# Remove rpaths
|
||||
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 %{?_smp_mflags}
|
||||
|
||||
|
||||
# BUILD THE COMPAT LIBRARY
|
||||
|
||||
cd ../%{name}-1.11.9
|
||||
# The ./configure script will support --runstatedir= when generated with
|
||||
# autoconf 2.70. Until then, tell it about /run using the export:
|
||||
export runstatedir=/run
|
||||
%configure --enable-plugins --disable-silent-rules
|
||||
# Remove rpaths
|
||||
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 %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
|
||||
# INSTALL THE PACKAGE
|
||||
|
||||
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
||||
|
||||
# We don't ship .la files.
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
cp -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_pkgdocdir}
|
||||
cp -pr doc/examples %{buildroot}%{_pkgdocdir}
|
||||
# Fix for BZ1253977
|
||||
mv %{buildroot}%{_pkgdocdir}/examples/Makefile %{buildroot}%{_pkgdocdir}/examples/Makefile_%{_arch}
|
||||
|
||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/lstopo.desktop
|
||||
|
||||
# Avoid making hwloc-gui depend on hwloc
|
||||
rm %{buildroot}%{_mandir}/man1/lstopo.1
|
||||
ln %{buildroot}%{_mandir}/man1/lstopo-no-graphics.1 %{buildroot}%{_mandir}/man1/lstopo.1
|
||||
|
||||
# Deal with service file
|
||||
# https://github.com/open-mpi/hwloc/issues/221
|
||||
%ifarch %{ix86} x86_64
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
mv %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service %{buildroot}%{_unitdir}/
|
||||
%else
|
||||
rm %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service
|
||||
%endif
|
||||
|
||||
# INSTALL THE COMPAT LIBRARY
|
||||
|
||||
cd ../%{name}-1.11.9
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
cp ./src/.libs/libhwloc.so.5 %{buildroot}%{_libdir}/
|
||||
|
||||
%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
|
||||
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%files
|
||||
%{_bindir}/%{name}*
|
||||
%{_bindir}/lstopo-no-graphics
|
||||
%{_mandir}/man1/%{name}*
|
||||
%{_mandir}/man1/lstopo-no-graphics*
|
||||
/etc/bash_completion.d/hwloc-completion.bash
|
||||
%ifarch %{ix86} x86_64
|
||||
%{_sbindir}/hwloc-dump-hwdata
|
||||
%{_unitdir}/hwloc-dump-hwdata.service
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_mandir}/man3/*
|
||||
%dir %{_includedir}/%{name}
|
||||
%{_includedir}/%{name}/*
|
||||
%{_includedir}/%{name}.h
|
||||
%{_pkgdocdir}/examples
|
||||
%{_libdir}/*.so
|
||||
/usr/share/hwloc/hwloc-ps.www/*
|
||||
|
||||
%files libs
|
||||
%{_mandir}/man7/%{name}*
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/hwloc/hwloc.dtd
|
||||
%{_datadir}/hwloc/hwloc-valgrind.supp
|
||||
%{_datadir}/hwloc/hwloc2.dtd
|
||||
%{_datadir}/hwloc/hwloc2-diff.dtd
|
||||
%dir %{_pkgdocdir}/
|
||||
%{_pkgdocdir}/*[^c]
|
||||
%{_libdir}/libhwloc*so.15*
|
||||
|
||||
%files gui
|
||||
%{_bindir}/lstopo
|
||||
%{_mandir}/man1/lstopo.1*
|
||||
%{_datadir}/applications/lstopo.desktop
|
||||
|
||||
%files plugins
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/hwloc*
|
||||
|
||||
%files -n compat-hwloc1
|
||||
%{_libdir}/libhwloc*so.5*
|
||||
|
||||
%changelog
|
||||
* Wed Jul 7 2021 Prarit Bhargava <prarit@redhat.com> - 2.2.0-3
|
||||
- Add compat-hwloc1 subpackage [1979150]
|
||||
|
||||
* Mon May 17 2021 Prarit Bhargava <prarit@redhat.com> - 2.2.0-2
|
||||
- Add support for node 0 offline
|
||||
|
||||
* Mon Oct 12 2020 Prarit Bhargava <prarit@redhat.com> - 2.2.0-1
|
||||
- Rebuild for 8.4.0
|
||||
|
||||
* Tue Jun 2 2020 Prarit Bhargava <prarit@redhat.com> - 2.2.0-0
|
||||
- Upgrade RHEL to 2.2.0
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
155
hwloc.spec
Normal file
155
hwloc.spec
Normal file
@ -0,0 +1,155 @@
|
||||
Summary: Portable Hardware Locality - portable abstraction of hierarchical architectures
|
||||
Name: hwloc
|
||||
Version: 2.11.1
|
||||
Release: %autorelease
|
||||
License: BSD-2-Clause
|
||||
URL: http://www.open-mpi.org/projects/hwloc/
|
||||
Source0: https://download.open-mpi.org/release/hwloc/v2.11/hwloc-%{version}.tar.bz2
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
BuildRequires: gcc
|
||||
# C++ only for hwloc-hello-cpp test:
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cairo-devel
|
||||
BuildRequires: libpciaccess-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: lynx
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequireS: opencl-headers
|
||||
BuildRequireS: ocl-icd-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: numactl-devel
|
||||
BuildRequires: rdma-core-devel
|
||||
BuildRequires: systemd-devel
|
||||
%ifarch %{ix86} x86_64
|
||||
%{?systemd_requires}
|
||||
BuildRequires: systemd
|
||||
%endif
|
||||
BuildRequires: make
|
||||
|
||||
%description
|
||||
The Portable Hardware Locality (hwloc) software package provides
|
||||
a portable abstraction (across OS, versions, architectures, ...)
|
||||
of the hierarchical topology of modern architectures, including
|
||||
NUMA memory nodes, shared caches, processor sockets, processor cores
|
||||
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.
|
||||
|
||||
hwloc may display the topology in multiple convenient formats.
|
||||
It also offers a powerful programming interface (C API) to gather information
|
||||
about the hardware, bind processes, and much more.
|
||||
|
||||
%package devel
|
||||
Summary: Headers and shared development libraries for hwloc
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
%ifnarch %{arm}
|
||||
Requires: rdma-core-devel%{?_isa}
|
||||
%endif
|
||||
|
||||
%description devel
|
||||
Headers and shared object symbolic links for the hwloc.
|
||||
|
||||
%package libs
|
||||
Summary: Run time libraries for the hwloc
|
||||
|
||||
%description libs
|
||||
Run time libraries for the hwloc
|
||||
|
||||
%package gui
|
||||
Summary: The gui-based hwloc program(s)
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description gui
|
||||
GUI-based tool for displaying system topology information.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --disable-silent-rules --runstatedir=/run
|
||||
# Remove rpaths
|
||||
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
|
||||
|
||||
# We don't ship .la files.
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
cp -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_pkgdocdir}
|
||||
cp -pr doc/examples %{buildroot}%{_pkgdocdir}
|
||||
# Fix for BZ1253977
|
||||
mv %{buildroot}%{_pkgdocdir}/examples/Makefile %{buildroot}%{_pkgdocdir}/examples/Makefile_%{_arch}
|
||||
|
||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/lstopo.desktop
|
||||
|
||||
# Avoid making hwloc-gui depend on hwloc
|
||||
rm %{buildroot}%{_mandir}/man1/lstopo.1
|
||||
ln %{buildroot}%{_mandir}/man1/lstopo-no-graphics.1 %{buildroot}%{_mandir}/man1/lstopo.1
|
||||
|
||||
# Deal with service file
|
||||
# https://github.com/open-mpi/hwloc/issues/221
|
||||
%ifarch %{ix86} x86_64
|
||||
mkdir -p %{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 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
|
||||
%{_datadir}/bash-completion/completions/*
|
||||
%{_bindir}/%{name}*
|
||||
%{_bindir}/lstopo-no-graphics
|
||||
%{_datadir}/hwloc/hwloc-ps.www/
|
||||
%{_mandir}/man1/%{name}*
|
||||
%{_mandir}/man1/lstopo-no-graphics*
|
||||
%ifarch %{ix86} x86_64
|
||||
%{_sbindir}/hwloc-dump-hwdata
|
||||
%{_unitdir}/hwloc-dump-hwdata.service
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_mandir}/man3/*
|
||||
%dir %{_includedir}/%{name}
|
||||
%{_includedir}/%{name}/*
|
||||
%{_includedir}/%{name}.h
|
||||
%{_pkgdocdir}/examples
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files libs
|
||||
%{_mandir}/man7/%{name}*
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/hwloc/hwloc.dtd
|
||||
%{_datadir}/hwloc/hwloc-valgrind.supp
|
||||
%{_datadir}/hwloc/hwloc2.dtd
|
||||
%{_datadir}/hwloc/hwloc2-diff.dtd
|
||||
%dir %{_pkgdocdir}/
|
||||
%{_pkgdocdir}/*[^c]
|
||||
%{_libdir}/libhwloc*so.15*
|
||||
|
||||
%files gui
|
||||
%{_bindir}/lstopo
|
||||
%{_mandir}/man1/lstopo.1*
|
||||
%{_datadir}/applications/lstopo.desktop
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (hwloc-2.11.1.tar.bz2) = 095afab5e7caf2099266b71d7803f2695987eed1c62d7315867b12f8db059d5a5e6f64d6303351cc1a14cfbcf0f7f5a3acedb775a0220f3648d158941c270b28
|
7
whatever.fmf
Normal file
7
whatever.fmf
Normal file
@ -0,0 +1,7 @@
|
||||
summary: Basic smoke tests
|
||||
discover:
|
||||
- name: internal
|
||||
how: fmf
|
||||
url: git://pkgs.devel.redhat.com/tests/hwloc
|
||||
execute:
|
||||
how: tmt
|
Loading…
Reference in New Issue
Block a user