]> git.pld-linux.org Git - packages/gettext.git/blob - gettext.spec
BuildRequires: libtool
[packages/gettext.git] / gettext.spec
1 Summary:        Utilties for program national language support
2 Summary(de):    Utilities zum Programmieren von nationaler Sprachunterstützung
3 Summary(fr):    Utilitaires pour le support de la langue nationnalepar les programmes.
4 Summary(pl):    Narzêdzia dla programów ze wsparciem dla jêzyków narodowych
5 Summary(tr):    Desteði için kitaplýk ve araçlar
6 Name:           gettext
7 Version:        0.10.35
8 Release:        20
9 License:        GPL
10 Group:          Development/Tools
11 Group(fr):      Development/Outils
12 Group(pl):      Programowanie/Narzêdzia
13 Source0:        ftp://ftp.gnu.org/pub/gnu/gettext/%{name}-%{version}.tar.gz
14 Patch0:         gettext-jbj.patch
15 Patch1:         gettext-info.patch
16 Patch2:         gettext-arm.patch
17 Patch4:         gettext-Makefile.in.in.patach
18 Patch5:         gettext-DESTDIR.patch
19 Patch6:         gettext-hacks.patch
20 BuildRequires:  automake
21 BuildRequires:  autoconf
22 BuildRequires:  libtool
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 The gettext library provides an easy to use library and tools for
27 creating, using, and modifying natural language catalogs. It is a
28 powerfull and simple method for internationalizing programs.
29
30 %description -l de
31 Die gettext-Library enthält eine einfach anzuwendende Library und
32 Tools zum Erstellen, Verwenden und Ändern von
33 natürlichsprachigen-Kataloge. Es ist ein einfaches und
34 leistungsfähiges Verfahren zum Lokalisieren von Programmen.
35
36 %description -l fr
37 La librarie gettext fournit des outils et une librairie simple à
38 utiliser pour manipuler, créer, et modifier des catalogues de langage
39 naturel. C'est une méthode simple et puissante pour internationnaliser
40 les programmes.
41
42 %description -l pl
43 Pakiet gettext dostarcza narzêdzi do tworzenia, u¿ywania i modyfikacji
44 katalogów jêzyków narodowych. To jest prosta i wydajna metoda
45 lokalizacji (internationalizacji) programów.
46
47 %description -l tr
48 gettext, yerel dil desteðinde kullanýlan kataloglarý deðiþtirebilmek
49 için, kolayca kullanýlabilen kitaplýk ve araçlarý saðlar. Bu,
50 programlarý uluslararasýlaþtýrmak için sýkça baþvurulan, kuvvetli bir
51 yöntemdir.
52
53 %package devel
54 Summary:        Utilties for program national language support
55 Summary(de):    Utilities zum Programmieren von nationaler Sprachunterstützung
56 Summary(fr):    Utilitaires pour le support de la langue nationnalepar les programmes.
57 Summary(pl):    Narzêdzia dla programów ze wsparciem dla jêzyków narodowych
58 Summary(tr):    Desteði için kitaplýk ve araçlar
59 Group:          Development/Tools
60 Group(fr):      Development/Outils
61 Group(pl):      Programowanie/Narzêdzia
62 Requires:       %{name} = %{version}
63
64 %description devel
65 The gettext library provides an easy to use library and tools for
66 creating, using, and modifying natural language catalogs. It is a
67 powerfull and simple method for internationalizing programs.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72 %patch1 -p1
73 %patch2 -p1
74 %patch4 -p1
75 %patch5 -p1
76 %patch6 -p1
77
78 %build
79 cat m4/*.m4 >acinclude.m4
80 aclocal
81 libtoolize --copy --force
82 automake
83 autoconf
84 LDFLAGS="-s"; export LDFLAGS
85 %configure \
86         --enable-shared \
87         --with-included-gettext 
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT/bin
93
94 %{__make} install DESTDIR=$RPM_BUILD_ROOT 
95
96 mv -f $RPM_BUILD_ROOT%{_bindir}/gettext $RPM_BUILD_ROOT/bin/gettext
97
98 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
99         ABOUT-NLS AUTHORS BUGS ChangeLog DISCLAIM NEWS README* THANKS TODO
100         
101 %find_lang %{name}
102
103 %post devel
104 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
105
106 %postun devel
107 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %files -f %{name}.lang
113 %defattr(644,root,root,755)
114 %attr(755,root,root) /bin/*
115
116 %files devel
117 %defattr(644,root,root,755)
118 %doc *.gz
119 %attr(755,root,root) %{_bindir}/*
120 %{_infodir}/*info*
121 %{_aclocaldir}/*
122 %{_datadir}/gettext
This page took 0.064054 seconds and 4 git commands to generate.