Accepting request 1128315 from KDE:Extra

- Fix RPATH problem with cmake options instead of chrpath

OBS-URL: https://build.opensuse.org/request/show/1128315
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kbibtex?expand=0&rev=13
This commit is contained in:
Ana Guerrero 2023-11-23 20:42:09 +00:00 committed by Git OBS Bridge
commit 4be89b018c
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 options 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