]>
Commit | Line | Data |
---|---|---|
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.18.1.1 | |
8 | release = 6 | |
9 | ||
10 | groups = System/Base | |
11 | url = http://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 = http://ftp.gnu.org/pub/gnu/gettext/ | |
29 | ||
30 | build | |
31 | requires | |
32 | bison | |
33 | chrpath | |
34 | libcroco-devel | |
35 | libxml2-devel | |
36 | end | |
37 | ||
38 | configure_options += \ | |
39 | --disable-static \ | |
40 | --enable-shared \ | |
41 | --disable-rpath | |
42 | ||
43 | test | |
44 | make check | |
45 | end | |
46 | ||
47 | install_cmds | |
48 | # cleanup rpaths | |
49 | for i in $(find %{BUILDROOT}%{bindir} %{BUILDROOT}%{libdir} -type f); do | |
50 | if file ${i} | grep "ELF 64-bit" >/dev/null; then | |
51 | chrpath -l ${i} && chrpath --delete ${i} | |
52 | fi | |
53 | done | |
54 | end | |
55 | end | |
56 | ||
57 | packages | |
58 | package %{name} | |
59 | ||
60 | package %{name}-common-devel | |
61 | summary = Common development files for gettext. | |
62 | description = %{summary} | |
63 | arch = noarch | |
64 | ||
65 | files | |
66 | /usr/share/gettext/ | |
67 | end | |
68 | end | |
69 | ||
70 | package %{name}-devel | |
71 | template DEVEL | |
72 | ||
73 | requires | |
74 | gettext-common-devel=%{thisver} | |
75 | gettext-libs=%{thisver} | |
76 | end | |
77 | ||
78 | files += \ | |
79 | /usr/bin/autopoint \ | |
80 | /usr/share/man/man1/autopoint.1 | |
81 | end | |
82 | ||
83 | package %{name}-libs | |
84 | template LIBS | |
85 | ||
86 | files | |
87 | %{libdir}/libgettextlib-*.so | |
88 | %{libdir}/libgettextpo.so.* | |
89 | %{libdir}/libgettextsrc-*.so | |
90 | %{libdir}/preloadable_libintl.so | |
91 | end | |
92 | end | |
93 | ||
94 | package %{name}-debuginfo | |
95 | template DEBUGINFO | |
96 | end | |
97 | end |