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