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