############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = gettext version = 0.21.1 release = 3 groups = System/Base url = https://www.gnu.org/software/gettext/ license = GPLv3 LGPL2+ summary = GNU libraries and utilities for producing multi-lingual messages. description The GNU gettext package provides a set of tools and documentation for producing multi-lingual messages in programs. Tools include a set of conventions about how programs should be written to support message catalogs, a directory and file naming organization for the message catalogs, a runtime library which supports the retrieval of translated messages, and stand-alone programs for handling the translatable and the already translated strings. Gettext provides an easy to use library and tools for creating, using, and modifying natural language catalogs and is a powerful and simple method for internationalizing programs. end source_dl = https://ftp.gnu.org/pub/gnu/gettext/ sources = %{thisapp}.tar.xz build requires bison chrpath expat-devel glib2-devel libunistring-devel libxml2-devel ncurses-devel end configure_options += \ --disable-static \ --enable-shared \ --disable-rpath configure_cmds # Add additional compiler flages to build gettext-tools binaries with # proper hardening. sed -i '/^CFLAGS =/ s/$/ -fno-builtin-exit -D__noreturn__=/' \ %{DIR_APP}/gettext-tools/src/Makefile end test make check || : end install_cmds # cleanup rpaths for i in $(find %{BUILDROOT}%{bindir} %{BUILDROOT}%{libdir} -type f); do if file ${i} | grep "ELF 64-bit" >/dev/null; then chrpath -l ${i} && chrpath --delete ${i} fi done # Fix library permissions. chmod 755 %{BUILDROOT}%{libdir}/preloadable_libintl.so end end packages package %{name} provides bundled(gnulib) bundled(libcroco) = 0.6.12 end filter_requires = (Shell) end package %{name}-common-devel summary = Common development files for gettext. description = %{summary} arch = noarch files /usr/share/gettext/ end filter_requires = (Shell) end package %{name}-devel template DEVEL requires gettext-common-devel=%{thisver} gettext-libs=%{thisver} git end filter_requires = (Shell) files += \ /usr/bin/autopoint \ /usr/share/man/man1/autopoint.1 end package %{name}-libs template LIBS filter_requires = (Shell) files %{libdir}/libgettextlib-*.so %{libdir}/libgettextpo.so.* %{libdir}/libgettextsrc-*.so %{libdir}/preloadable_libintl.so end end package %{name}-debuginfo template DEBUGINFO end end