Package hwloc: Specfile

%define _unpackaged_files_terminate_build 1

Name: hwloc
Version: 2.10.0
Release: alt1
Summary: Portable Hardware Locality (hwloc)
License: BSD
Group: Development/Tools
Url: http://www.open-mpi.org/projects/hwloc/


Source: %name-%version.tar

BuildPreReq: libxml2-devel libX11-devel libcairo-devel
BuildPreReq: libpci-devel libncurses-devel xml-utils
BuildPreReq: libnuma-devel gcc-c++ libICE-devel libSM-devel
BuildPreReq: texlive-extra-utils ghostscript-classic doxygen transfig

Requires: lib%name = %version-%release

%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, sockets, shared caches, cores and simultaneous multithreading. It
also gathers various system attributes such as cache and memory
information as well as the locality of I/O devices such as network
interfaces, InfiniBand HCAs or GPUs. It primarily aims at helping
applications with gathering information about modern computing hardware
so as to exploit it accordingly and efficiently.

%package -n lib%name
Summary: Shared libraries of the Portable Hardware Locality (hwloc)
Group: System/Libraries

%description -n lib%name
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, sockets, shared caches, cores and simultaneous multithreading. It
also gathers various system attributes such as cache and memory
information as well as the locality of I/O devices such as network
interfaces, InfiniBand HCAs or GPUs. It primarily aims at helping
applications with gathering information about modern computing hardware
so as to exploit it accordingly and efficiently.

This package contains shared libraries of hwloc.

%package -n lib%name-devel
Summary: Development files of the Portable Hardware Locality (hwloc)
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
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, sockets, shared caches, cores and simultaneous multithreading. It
also gathers various system attributes such as cache and memory
information as well as the locality of I/O devices such as network
interfaces, InfiniBand HCAs or GPUs. It primarily aims at helping
applications with gathering information about modern computing hardware
so as to exploit it accordingly and efficiently.

This package contains development files of hwloc.

%package docs
Summary: Documentation for the Portable Hardware Locality (hwloc)
Group: Documentation
BuildArch: noarch

%description docs
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, sockets, shared caches, cores and simultaneous multithreading. It
also gathers various system attributes such as cache and memory
information as well as the locality of I/O devices such as network
interfaces, InfiniBand HCAs or GPUs. It primarily aims at helping
applications with gathering information about modern computing hardware
so as to exploit it accordingly and efficiently.

This package contains documentation for hwloc.

%prep
%setup

%build
%autoreconf
%configure \
	--with-sysroot=%prefix \
	--localstatedir=%_runtimedir \
	--with-x \
	--enable-doxygen \
	--disable-silent-rules

%make_build

%install
%makeinstall_std

%files
%doc AUTHORS COPYING NEWS README
%_bindir/*
%ifarch %ix86 x86_64
%_sbindir/*
%endif
%_desktopdir/lstopo.desktop
%_datadir/%name
%_man1dir/*
%_datadir/bash-completion/completions/hwloc

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%_man3dir/*
%_man7dir/*

%files docs
%doc %_docdir/%name
%doc doc/doxygen-doc/html

%changelog
* Thu Dec 07 2023 Andrey Cherepanov <cas@altlinux.org> 2.10.0-alt1
- New version.

* Wed Oct 11 2023 Andrey Cherepanov <cas@altlinux.org> 2.9.3-alt1
- New version.

* Tue Aug 01 2023 Andrey Cherepanov <cas@altlinux.org> 2.9.2-alt1
- New version.

* Mon Apr 10 2023 Andrey Cherepanov <cas@altlinux.org> 2.9.1-alt1
- New version.

* Sat Jan 21 2023 Andrey Cherepanov <cas@altlinux.org> 2.9.0-alt1
- New version.

* Sat Jul 30 2022 Andrey Cherepanov <cas@altlinux.org> 2.8.0-alt1
- New version.

* Mon Apr 25 2022 Andrey Cherepanov <cas@altlinux.org> 2.7.1-alt1
- New version.

* Wed Dec 22 2021 Andrey Cherepanov <cas@altlinux.org> 2.7.0-alt1
- New version.

* Wed Jun 16 2021 Andrey Cherepanov <cas@altlinux.org> 2.5.0-alt1
- New version.

* Thu May 29 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9-alt1
- Version 1.9

* Wed Nov 13 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt1.rc1
- Version 1.8rc1

* Tue Jun 25 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.7.1-alt1
- Version 1.7.1

* Tue Feb 05 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.6.1-alt1
- Version 1.6.1

* Wed Sep 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5-alt1
- Version 1.5

* Fri Feb 24 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4-alt1
- Version 1.4

* Wed Dec 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3-alt1
- Initial build for Sisyphus