diff --git a/gmic.spec b/gmic.spec index 3c65d54..f7812d4 100644 --- a/gmic.spec +++ b/gmic.spec @@ -46,6 +46,8 @@ BuildRequires: libcurl-devel BuildRequires: gcc-c++ BuildRequires: desktop-file-utils BuildRequires: make +BuildRequires: chrpath + # The C library binding was mistakenly put in a -static # package despite being a shared library Obsoletes: gmic-static <= 2.1.8 @@ -156,6 +158,11 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/bash-completion/completions/ # Sourced files shouldn't be executable chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/gmic +# remove rpaths +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gmic +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libcgmic.so.* +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgmic.so.* + %ldconfig_scriptlets %post @@ -204,6 +211,7 @@ fi - bump version - disable patch0 - disable patch2 +- BuildRequires: chrpath * Wed Jan 26 2022 josef radinger - 3.0.2-1 - bump version