From 362a4373d557767e9145362535269b0ad81f7f3a Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Fri, 23 May 2014 10:07:34 +0200 Subject: [PATCH] Do not build external tools. Instead of building them and then removing them in the %install section, do not build them at home. Depending on the user .rpmmacrosthe installation could fail entirely as the folder might not be actually there. --- remmina.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remmina.spec b/remmina.spec index cb95c5a..855f5d2 100644 --- a/remmina.spec +++ b/remmina.spec @@ -164,6 +164,9 @@ client. # Remove useless tags from desktop file sed -i -e '/^OnlyShowIn/d' %{name}/desktop/%{name}.desktop +# Remove external_tools (test scripts) +sed -i -e '/add_subdirectory(external_tools)/d' %{name}/CMakeLists.txt + %build mkdir -p build pushd build @@ -201,9 +204,6 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %find_lang %{name} %find_lang %{name}-plugins -# Remove strange external_tools -rm -rf %{buildroot}/$HOME/.%{name} - %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :