From c64008121bb22325c37973b9e53b2ca8bc997562 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 18 Mar 2023 14:19:01 +0100 Subject: [PATCH] gettext: Drop unneccessary stuff Signed-off-by: Stefan Schantl --- gettext/gettext.nm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gettext/gettext.nm b/gettext/gettext.nm index 1e2af67f7..f49862f0d 100644 --- a/gettext/gettext.nm +++ b/gettext/gettext.nm @@ -5,7 +5,7 @@ name = gettext version = 0.21.1 -release = 3 +release = 4 groups = System/Base url = https://www.gnu.org/software/gettext/ @@ -65,6 +65,19 @@ build # Fix library permissions. chmod 755 %{BUILDROOT}%{libdir}/preloadable_libintl.so + + # Remove examples. + rm -rvf %{BUILDROOT}%{docdir}/%{name}/examples + + # Gettext provides only a HTML documentation, so we + # safely can drop the remaining doc directory. + rm -rvf %{BUILDROOT}%{docdir} + + # Drop trigger and team-address files for GNOME, KDE and TP projects + rm -rvf %{BUILDROOT}%{datadir}/%{name}/projects + + # Fix permissions of gettext config.rpath script. + chmod 644 %{BUILDROOT}%{datadir}/%{name}/config.rpath end end -- 2.47.3