Disable plugins reduce dependencies

Resolves: RHEL-55147
This commit is contained in:
Jakub Čajka 2024-08-21 10:10:29 +02:00
parent 33e7a58fe2
commit 5e487e5463
No known key found for this signature in database
GPG Key ID: 48DAAF91F61E4F5D

View File

@ -13,12 +13,8 @@ BuildRequires: gcc-c++
BuildRequires: cairo-devel BuildRequires: cairo-devel
BuildRequires: libpciaccess-devel BuildRequires: libpciaccess-devel
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libxml2-devel
BuildRequires: lynx BuildRequires: lynx
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
%ifarch x86_64
BuildRequires: oneapi-level-zero-devel
%endif
BuildRequireS: opencl-headers BuildRequireS: opencl-headers
BuildRequireS: ocl-icd-devel BuildRequireS: ocl-icd-devel
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
@ -68,21 +64,11 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description gui %description gui
GUI-based tool for displaying system topology information. GUI-based tool for displaying system topology information.
%package plugins
Summary: Plugins for hwloc
Requires: %{name}-plugins%{?_isa} = %{version}-%{release}
%description plugins
This package contains plugins for hwloc. This includes
- PCI support
- GL support
- libxml support
%prep %prep
%autosetup -p1 %autosetup -p1
%build %build
%configure --enable-plugins --disable-silent-rules --runstatedir=/run %configure --disable-silent-rules --runstatedir=/run
# Remove rpaths # Remove rpaths
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 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 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@ -165,9 +151,5 @@ LD_LIBRARY_PATH=$PWD/hwloc/.libs make check
%{_mandir}/man1/lstopo.1* %{_mandir}/man1/lstopo.1*
%{_datadir}/applications/lstopo.desktop %{_datadir}/applications/lstopo.desktop
%files plugins
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/hwloc*
%changelog %changelog
%autochangelog %autochangelog