]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
gettext: Drop unneccessary stuff
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 18 Mar 2023 13:19:01 +0000 (14:19 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:25:39 +0000 (18:25 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
gettext/gettext.nm

index 1e2af67f74f01e40392fc442e54e2d6828979971..f49862f0dd20d2712328615ae3b46a4044d73840 100644 (file)
@@ -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