name = gettext
version = 0.21.1
-release = 3
+release = 4
groups = System/Base
url = https://www.gnu.org/software/gettext/
# 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