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.
epel8
Simone Caronni 11 years ago
parent 347ce86bc8
commit 362a4373d5

@ -164,6 +164,9 @@ client.
# Remove useless tags from desktop file # Remove useless tags from desktop file
sed -i -e '/^OnlyShowIn/d' %{name}/desktop/%{name}.desktop 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 %build
mkdir -p build mkdir -p build
pushd build pushd build
@ -201,9 +204,6 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%find_lang %{name} %find_lang %{name}
%find_lang %{name}-plugins %find_lang %{name}-plugins
# Remove strange external_tools
rm -rf %{buildroot}/$HOME/.%{name}
%post %post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

Loading…
Cancel
Save