]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - gettext/gettext.nm
bison: Proper use LDFLAGS to link liby
[people/stevee/ipfire-3.x.git] / gettext / gettext.nm
CommitLineData
166a6c21 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
166a6c21
MT
4###############################################################################
5
802ea3af 6name = gettext
ae42ca81 7version = 0.21.1
b23cda09 8release = 2.1
166a6c21 9
802ea3af 10groups = System/Base
ae42ca81 11url = https://www.gnu.org/software/gettext/
802ea3af
MT
12license = GPLv3 LGPL2+
13summary = GNU libraries and utilities for producing multi-lingual messages.
48add3fd 14
802ea3af 15description
c28cd4f9
SS
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
166a6c21 25 programs.
802ea3af
MT
26end
27
ae42ca81
MT
28source_dl = https://ftp.gnu.org/pub/gnu/gettext/
29sources = %{thisapp}.tar.xz
802ea3af
MT
30
31build
32 requires
33 bison
5697a8bb 34 chrpath
5dd3a80e
MT
35 expat-devel
36 glib2-devel
5dd3a80e 37 libunistring-devel
802ea3af 38 libxml2-devel
5dd3a80e 39 ncurses-devel
802ea3af
MT
40 end
41
42 configure_options += \
43 --disable-static \
44 --enable-shared \
45 --disable-rpath
46
3f942a52 47 test
1a6465d9 48 make check || :
3f942a52 49 end
5697a8bb
MT
50
51 install_cmds
52 # cleanup rpaths
53 for i in $(find %{BUILDROOT}%{bindir} %{BUILDROOT}%{libdir} -type f); do
54 if file ${i} | grep "ELF 64-bit" >/dev/null; then
55 chrpath -l ${i} && chrpath --delete ${i}
56 fi
57 done
b0fdf190
MT
58
59 # Fix library permissions.
60 chmod 755 %{BUILDROOT}%{libdir}/preloadable_libintl.so
5697a8bb 61 end
802ea3af
MT
62end
63
64packages
65 package %{name}
d4b092db
MT
66 provides
67 bundled(gnulib)
68 bundled(libcroco) = 0.6.12
69 end
b23cda09
SS
70
71 filter_requires = (Shell)
5dd3a80e 72 end
1f9bc2f0 73
997373fd
SS
74 package %{name}-common-devel
75 summary = Common development files for gettext.
76 description = %{summary}
77 arch = noarch
78
79 files
80 /usr/share/gettext/
81 end
b23cda09
SS
82
83 filter_requires = (Shell)
997373fd
SS
84 end
85
802ea3af
MT
86 package %{name}-devel
87 template DEVEL
c28cd4f9 88
5697a8bb 89 requires
997373fd 90 gettext-common-devel=%{thisver}
c28cd4f9 91 gettext-libs=%{thisver}
d137cccc 92 git
5697a8bb 93 end
997373fd 94
b23cda09
SS
95 filter_requires = (Shell)
96
997373fd
SS
97 files += \
98 /usr/bin/autopoint \
99 /usr/share/man/man1/autopoint.1
c28cd4f9
SS
100 end
101
102 package %{name}-libs
103 template LIBS
104
b23cda09
SS
105 filter_requires = (Shell)
106
c28cd4f9 107 files
5697a8bb
MT
108 %{libdir}/libgettextlib-*.so
109 %{libdir}/libgettextpo.so.*
110 %{libdir}/libgettextsrc-*.so
111 %{libdir}/preloadable_libintl.so
c28cd4f9 112 end
802ea3af 113 end
1f9bc2f0
MT
114
115 package %{name}-debuginfo
116 template DEBUGINFO
117 end
802ea3af 118end