- 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:
parent
0054dd0e0f
commit
8c455e214f
@ -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>
|
Sun Oct 29 21:38:16 UTC 2023 - Cor Blom <cornelis@solcon.nl>
|
||||||
|
|
||||||
|
11
kbibtex.spec
11
kbibtex.spec
@ -25,7 +25,6 @@ License: GPL-2.0-only
|
|||||||
Group: Productivity/Publishing/TeX/Utilities
|
Group: Productivity/Publishing/TeX/Utilities
|
||||||
URL: https://apps.kde.org/nl/kbibtex/
|
URL: https://apps.kde.org/nl/kbibtex/
|
||||||
Source: https://download.kde.org/stable/KBibTeX/%{version}/%{name}-%{version}.tar.xz
|
Source: https://download.kde.org/stable/KBibTeX/%{version}/%{name}-%{version}.tar.xz
|
||||||
BuildRequires: chrpath
|
|
||||||
BuildRequires: extra-cmake-modules
|
BuildRequires: extra-cmake-modules
|
||||||
BuildRequires: libicu-devel
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: libpoppler-qt5-devel
|
BuildRequires: libpoppler-qt5-devel
|
||||||
@ -73,7 +72,7 @@ embedded into Kile or Konqueror.
|
|||||||
%autosetup -n %{name}-%{version}
|
%autosetup -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake_kf5 -d build
|
%cmake_kf5 -d build -- -DCMAKE_SKIP_RPATH=FALSE -DCMAKE_SKIP_INSTALL_RPATH=TRUE
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -85,14 +84,6 @@ rm -rf %{buildroot}/%{_includedir}/KBibTeX
|
|||||||
rm -rf %{buildroot}/%{_kf5_libdir}/libkbibtex*.so
|
rm -rf %{buildroot}/%{_kf5_libdir}/libkbibtex*.so
|
||||||
rm -rf %{buildroot}/%{_kf5_libdir}/cmake/KBibTeX
|
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}
|
%if %{with lang}
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user