- Fix RPATH problem with cmake optionis instead of chrpath

OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kbibtex?expand=0&rev=64
This commit is contained in:
Cor Blom 2023-11-22 20:02:30 +00:00 committed by Git OBS Bridge
parent 0054dd0e0f
commit 8c455e214f
2 changed files with 6 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 22 20:01:21 UTC 2023 - Cor Blom <cornelis@solcon.nl>
- Fix RPATH problem with cmake optionis instead of chrpath
-------------------------------------------------------------------
Sun Oct 29 21:38:16 UTC 2023 - Cor Blom <cornelis@solcon.nl>

View File

@ -25,7 +25,6 @@ License: GPL-2.0-only
Group: Productivity/Publishing/TeX/Utilities
URL: https://apps.kde.org/nl/kbibtex/
Source: https://download.kde.org/stable/KBibTeX/%{version}/%{name}-%{version}.tar.xz
BuildRequires: chrpath
BuildRequires: extra-cmake-modules
BuildRequires: libicu-devel
BuildRequires: libpoppler-qt5-devel
@ -73,7 +72,7 @@ embedded into Kile or Konqueror.
%autosetup -n %{name}-%{version}
%build
%cmake_kf5 -d build
%cmake_kf5 -d build -- -DCMAKE_SKIP_RPATH=FALSE -DCMAKE_SKIP_INSTALL_RPATH=TRUE
%cmake_build
%install
@ -85,14 +84,6 @@ rm -rf %{buildroot}/%{_includedir}/KBibTeX
rm -rf %{buildroot}/%{_kf5_libdir}/libkbibtex*.so
rm -rf %{buildroot}/%{_kf5_libdir}/cmake/KBibTeX
# Remove the rpaths that rpmlint complains about
# According to https://en.opensuse.org/openSUSE:Packaging_checks
# this is a last resort option.
# Reported in kde#476502
chrpath -d %{buildroot}/%{_kf5_bindir}/kbibtex
chrpath -d %{buildroot}%{_kf5_libdir}/libkbibtex*.so.*
chrpath -d %{buildroot}%{_kf5_plugindir}/kbibtexpart.so*
%if %{with lang}
%find_lang %{name}
%endif