1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = https://www.gnu.org/software/gettext/
12 license = GPLv3 LGPL2+
13 summary = GNU libraries and utilities for producing multi-lingual messages.
16 The GNU gettext package provides a set of tools and documentation for
17 producing multi-lingual messages in programs. Tools include a set of
18 conventions about how programs should be written to support message
19 catalogs, a directory and file naming organization for the message
20 catalogs, a runtime library which supports the retrieval of translated
21 messages, and stand-alone programs for handling the translatable and
22 the already translated strings. Gettext provides an easy to use
23 library and tools for creating, using, and modifying natural language
24 catalogs and is a powerful and simple method for internationalizing
28 source_dl = https://ftp.gnu.org/pub/gnu/gettext/
29 sources = %{thisapp}.tar.xz
42 configure_options += \
48 # Add additional compiler flages to build gettext-tools binaries with
50 sed -i '/^CFLAGS =/ s/$/ -fno-builtin-exit -D__noreturn__=/' \
51 %{DIR_APP}/gettext-tools/src/Makefile
60 for i in $(find %{BUILDROOT}%{bindir} %{BUILDROOT}%{libdir} -type f); do
61 if file ${i} | grep "ELF 64-bit" >/dev/null; then
62 patchelf --remove-rpath ${i}
66 # Fix library permissions.
67 chmod 755 %{BUILDROOT}%{libdir}/preloadable_libintl.so
70 rm -rvf %{BUILDROOT}%{docdir}/%{name}/examples
72 # Gettext provides only a HTML documentation, so we
73 # safely can drop the remaining doc directory.
74 rm -rvf %{BUILDROOT}%{docdir}
76 # Drop trigger and team-address files for GNOME, KDE and TP projects
77 rm -rvf %{BUILDROOT}%{datadir}/%{name}/projects
85 bundled(libcroco) = 0.6.12
88 filter_requires = (Shell)
91 package %{name}-common-devel
92 summary = Common development files for gettext.
93 description = %{summary}
100 filter_requires = (Shell)
103 package %{name}-devel
107 gettext-common-devel=%{thisver}
108 gettext-libs=%{thisver}
112 filter_requires = (Shell)
116 /usr/share/man/man1/autopoint.1
122 filter_requires = (Shell)
125 %{libdir}/libgettextlib-*.so
126 %{libdir}/libgettextpo.so.*
127 %{libdir}/libgettextsrc-*.so
128 %{libdir}/preloadable_libintl.so
132 package %{name}-debuginfo