Projects
OpenHPC3:3.3:Factory
hwloc
_service:extract_file:hwloc.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:hwloc.spec of Package hwloc
#----------------------------------------------------------------------------bh- # This RPM .spec file is part of the OpenHPC project. # # It may have been modified from the default version supplied by the underlying # release package (if available) in order to apply patches, perform customized # build/install configurations, and supply additional files to support # desired integration conventions. # #----------------------------------------------------------------------------eh- %include %{_sourcedir}/OHPC_macros %define pname hwloc Name: %{pname}%{PROJ_DELIM} Version: 2.12.0 Release: %{?dist}.1 Summary: Portable Hardware Locality License: BSD-3-Clause Group: %{PROJ_NAME}/dev-tools Url: http://www.open-mpi.org/projects/hwloc/ Source0: https://download.open-mpi.org/release/hwloc/v2.12/%{pname}-%{version}.tar.bz2 BuildRequires: make BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: cairo-devel BuildRequires: libxml2-devel BuildRequires: ncurses-devel BuildRequires: ncurses-devel BuildRequires: transfig %if 0%{?sle_version} BuildRequires: libnuma-devel %else BuildRequires: numactl-devel %endif #!BuildIgnore: post-build-checks rpmlint-Factory #!BuildIgnore: #!BuildIgnore: brp-check-suse Requires: libxml2-devel # Default library install path # note that this install path is purposefully not including a version # so that RMS packages that do not rely on Lmod environments can # access in a fixed location. As a result, this package does not support # multi-version coinstalls. %define install_path %{OHPC_LIBS}/%{pname} %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. %prep %setup -q -n %{pname}-%{version} %build ./configure --prefix=%{install_path} %{__make} %{?_smp_mflags} V=1 %install %{__make} install DESTDIR=%{buildroot} INSTALL="%{__install} -p" # We don't ship .la files. %{__rm} -rf %{buildroot}%{install_path}/lib/libhwloc.la # documentation will be handled by % doc macro %{__rm} -rf %{buildroot}%{install_path}/doc/ doc/doxygen-doc/man %{__rm} -rf doc/.deps %if 0%{?sles_version} || 0%{?suse_version} %fdupes -s %{buildroot}/%{install_path}/share/man/man1 %fdupes -s %{buildroot}/%{install_path}/share/man/man3 %fdupes -s %{buildroot}/%{install_path}/share/man/man7 %fdupes -s doc/ %endif # OpenHPC module file %{__mkdir_p} %{buildroot}%{OHPC_MODULES}/%{pname} %{__cat} << EOF > %{buildroot}/%{OHPC_MODULES}/%{pname}/%{version} #%Module1.0##################################################################### proc ModulesHelp { } { puts stderr " " puts stderr "This module loads the %{pname} utility" puts stderr "\nVersion %{version}\n" } module-whatis "Name: %{pname}" module-whatis "Version: %{version}" module-whatis "Category: python module" module-whatis "Description: %{summary}" module-whatis "URL %{url}" set version %{version} prepend-path PATH %{install_path}/bin prepend-path LD_LIBRARY_PATH %{install_path}/lib prepend-path MANPATH %{install_path}/man setenv %{PNAME}_DIR %{install_path} setenv %{PNAME}_BIN %{install_path}/bin setenv %{PNAME}_INC %{install_path}/include setenv %{PNAME}_LIB %{install_path}/lib EOF %{__cat} << EOF > %{buildroot}/%{OHPC_MODULES}/%{pname}/.version.%{version} #%Module1.0##################################################################### ## ## version file for %{pname}-%{version} ## set ModulesVersion "%{version}" EOF %{__mkdir_p} ${RPM_BUILD_ROOT}/%{_docdir} %files %doc AUTHORS COPYING NEWS README VERSION %{OHPC_PUB}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.