]> git.ipfire.org Git - ipfire-3.x.git/blob - gettext/gettext.nm
gettext: Filter weird perl dependency.
[ipfire-3.x.git] / gettext / gettext.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = gettext
7 version = 0.21.1
8 release = 2.1
9
10 groups = System/Base
11 url = https://www.gnu.org/software/gettext/
12 license = GPLv3 LGPL2+
13 summary = GNU libraries and utilities for producing multi-lingual messages.
14
15 description
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
25 programs.
26 end
27
28 source_dl = https://ftp.gnu.org/pub/gnu/gettext/
29 sources = %{thisapp}.tar.xz
30
31 build
32 requires
33 bison
34 chrpath
35 expat-devel
36 glib2-devel
37 libunistring-devel
38 libxml2-devel
39 ncurses-devel
40 end
41
42 configure_options += \
43 --disable-static \
44 --enable-shared \
45 --disable-rpath
46
47 test
48 make check || :
49 end
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
58
59 # Fix library permissions.
60 chmod 755 %{BUILDROOT}%{libdir}/preloadable_libintl.so
61 end
62 end
63
64 packages
65 package %{name}
66 provides
67 bundled(gnulib)
68 bundled(libcroco) = 0.6.12
69 end
70
71 filter_requires = (Shell)
72 end
73
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
82
83 filter_requires = (Shell)
84 end
85
86 package %{name}-devel
87 template DEVEL
88
89 requires
90 gettext-common-devel=%{thisver}
91 gettext-libs=%{thisver}
92 git
93 end
94
95 filter_requires = (Shell)
96
97 files += \
98 /usr/bin/autopoint \
99 /usr/share/man/man1/autopoint.1
100 end
101
102 package %{name}-libs
103 template LIBS
104
105 filter_requires = (Shell)
106
107 files
108 %{libdir}/libgettextlib-*.so
109 %{libdir}/libgettextpo.so.*
110 %{libdir}/libgettextsrc-*.so
111 %{libdir}/preloadable_libintl.so
112 end
113 end
114
115 package %{name}-debuginfo
116 template DEBUGINFO
117 end
118 end