]> git.pld-linux.org Git - packages/hwloc.git/blobdiff - hwloc.spec
hwloc-dump-hwdata available only on x86
[packages/hwloc.git] / hwloc.spec
index 3292c4caabb7e312640b1981227b2dd3801501f7..09aff578be4c535e8ec73814832ae3ca6d22cf80 100644 (file)
@@ -1,31 +1,40 @@
 # TODO: CUDA >= 30.20, NVML/nvidia-ml on bcond?
-# kerrighed >= 2.0 ?
-# myriexpress ?
+# NOTES (as of 1.9-1.11):
+# - kerrighed library (>= 2.0) is only checked for; kerrighed support in hwloc uses /proc filesystem
+# - myriexpress (open-mx) library is only checked for, but not used by hwloc code
+#   (just in one test); in binary packages only interface header is included
+# - same with libibverbs
 Summary:       Portable Hardware Locality
 Summary(pl.UTF-8):     Przenośna lokalizacja sprzętu
 Name:          hwloc
-Version:       1.9
+Version:       1.11.13
 Release:       1
 License:       BSD
 Group:         Applications/System
-Source0:       http://www.open-mpi.org/software/hwloc/v%{version}/downloads/%{name}-%{version}.tar.bz2
-# Source0-md5: 1954f690211227cb0a665624aab6aaa6
-URL:           http://www.open-mpi.org/projects/hwloc/
+#Future TODO (breaks API): https://www.open-mpi.org/software/hwloc/v2.0/
+#Source0Download: https://www.open-mpi.org/software/hwloc/v1.11/
+Source0:       https://download.open-mpi.org/release/hwloc/v1.11/%{name}-%{version}.tar.bz2
+# Source0-md5: 3c792e23c209e9e1bafe9bdbc613d401
+URL:           https://www.open-mpi.org/projects/hwloc/
 BuildRequires: OpenCL-devel
 BuildRequires: OpenGL-devel
 BuildRequires: cairo-devel
 BuildRequires: libXNVCtrl-devel
-BuildRequires: libibverbs-devel
-BuildRequires: libltdl-devel
+BuildRequires: libltdl-devel >= 2:2.2.6
 BuildRequires: libstdc++-devel
 BuildRequires: libxml2-devel >= 2.0
 BuildRequires: ncurses-devel
 BuildRequires: numactl-devel
 BuildRequires: pkgconfig >= 1:0.9.0
+BuildRequires: udev-devel
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXext-devel
 BuildRequires: xorg-lib-libpciaccess-devel
 BuildRequires: xorg-proto-xproto-devel
+%if %{with tests}
+BuildRequires: libibverbs-devel
+BuildRequires: open-mx-devel
+%endif
 Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -65,10 +74,9 @@ Summary:     Header files for hwloc library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki hwloc
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
-Requires:      OpenCL-devel
-Requires:      libxml2-devel >= 2.0
+Requires:      libltdl-devel >= 2:2.2.6
 Requires:      numactl-devel
-Requires:      xorg-lib-libpciaccess-devel
+Requires:      udev-devel
 
 %description devel
 Header files for hwloc library.
@@ -94,6 +102,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhwloc.la \
        $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
 
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/hwloc/hwloc*.pdf
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -105,11 +116,15 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/hwloc-*
 %attr(755,root,root) %{_bindir}/lstopo
 %attr(755,root,root) %{_bindir}/lstopo-no-graphics
+%ifarch %{ix86} %{x8664} x32
+%attr(755,root,root) %{_sbindir}/hwloc-dump-hwdata
+%endif
 %dir %{_libdir}/%{name}
 %attr(755,root,root) %{_libdir}/%{name}/hwloc_opencl.so
 %attr(755,root,root) %{_libdir}/%{name}/hwloc_pci.so
 %attr(755,root,root) %{_libdir}/%{name}/hwloc_xml_libxml.so
 %{_datadir}/%{name}
+%{_desktopdir}/lstopo.desktop
 %{_mandir}/man1/hwloc-*.1*
 %{_mandir}/man1/lstopo.1*
 %{_mandir}/man1/lstopo-no-graphics.1*
This page took 0.050856 seconds and 4 git commands to generate.