加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hwloc.spec 4.05 KB
一键复制 编辑 原始数据 按行查看 历史
xuhe 提交于 2024-03-21 10:17 . Fix Source0 info
Name: hwloc
Version: 2.10.0
Release: 2
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.10/%{name}-%{version}.tar.bz2
BuildRequires: gcc-c++ cairo-devel libpciaccess-devel libtool-ltdl-devel libX11-devel libxml2-devel texlive-latex
BuildRequires: desktop-file-utils systemd texlive-makeindex ncurses-devel transfig doxygen
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
Summary: Help files for hwloc
%description help
Contains documents and manuals files for hwloc
%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
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
# 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
%ifarch 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 check
%ifarch 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_post
%ldconfig_postun
%files
%{_bindir}/%{name}*
%{_bindir}/lstopo*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}.dtd
%{_datadir}/%{name}/%{name}2.dtd
%{_datadir}/%{name}/%{name}2-diff.dtd
%{_datadir}/%{name}/%{name}-valgrind.supp
%{_datadir}/%{name}/%{name}-ps.www
%{_datadir}/applications/lstopo.desktop
%{_datadir}/bash-completion/completions/hwloc
%ifarch x86_64
%{_sbindir}/hwloc-dump-hwdata
%{_unitdir}/hwloc-dump-hwdata.service
%endif
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/hwloc*
%{_libdir}/libhwloc*so.15*
%files devel
%{_libdir}/pkgconfig/*
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_includedir}/%{name}.h
%{_pkgdocdir}/examples
%{_libdir}/*.so
%files help
%{_mandir}/man*/*
%dir %{_pkgdocdir}/
%{_pkgdocdir}/*[^c]
%changelog
* 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化