]> git.pld-linux.org Git - packages/newt.git/blob - newt.spec
- if arch=ppc don't make docs... sgml sucks... somebody fix
[packages/newt.git] / newt.spec
1 %include        /usr/lib/rpm/macros.python
2 Summary:        Not Erik's Windowing Toolkit - text mode windowing with slang
3 Summary(de):    Nicht Eriks Windowing Toolkit - Textmodus-Windowing mit Slang
4 Summary(fr):    Not Erik's Windowing Toolkit - fenêtrage en mode texte avec slang
5 Summary(pl):    Not Erik's Windowing Toolkit - okna w trybie tekstowym ze slangiem
6 Summary(tr):    Not Erik's Windowing Toolkit - metin kipi pencereleme sistemi
7 Name:           newt
8 Version:        0.50.34
9 Release:        3
10 License:        LGPL
11 Group:          Libraries
12 Source0:        ftp://www.msg.com.mx/pub/Newt/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-pythondirs.patch
14 Patch1:         %{name}-textbox.patch
15 Patch2:         %{name}-install_sh.patch
16 Patch3:         %{name}-gpm-fix.diff
17 URL:            http://www.msg.com.mx/Newt/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  popt-devel
21 BuildRequires:  python-devel >= 2.2
22 BuildRequires:  sgml-tools
23 BuildRequires:  slang-devel
24 BuildRequires:  tcl-devel >= 8.3.2
25 BuildRequires:  docbook-utils
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Newt is a windowing toolkit for text mode built from the slang
30 library. It allows color text mode applications to easily use
31 stackable windows, push buttons, check boxes, radio buttons, lists,
32 entry fields, labels, and displayable text. Scrollbars are supported,
33 and forms may be nested to provide extra functionality. This pacakge
34 contains the shared library for programs that have been built with
35 newt.
36
37 %description -l de
38 Newt ist ein Windowing-Toolkit für Textmodus, konstruiert auf der
39 Grundlage der Slang-Library, mit dessen Hilfe Farbtext-Modus-
40 Applikationen leicht mit stapelbaren Fenstern, Schaltflächen,
41 Optionskästchen, Listen, Eingabefeldern, Etiketten und Display-Text
42 arbeiten können. Auch Bildlaufleisten erden unterstützt, und der
43 Einbau von Formularen ist möglich, wenn zusätzliche Funktionalität
44 gefordert ist.
45
46 %description -l fr
47 Newt est une boite à outil de fenétrage en mode texte, construit sur
48 la librarie slang. Elle permet aux applications en mode texte
49 d'utiliser simplement de multiples fenêtres, des bouttons, des cases à
50 cocher... Les barres de défilement sont supportées, et les fenêtres
51 peuvent être imbriquées pour donner des fonctionnalités nouvelles.
52
53 %description -l pl
54 Newt jest bibliotek± typu toolkit ale do trybu tekstowego, osadzon± na
55 bibliotece slang. Umo¿liwia budowanie aplikacji pracuj±cych w trybie
56 tekstowym umo¿liwij±c operowanie na okienkach, przyciskach (push
57 button), listach wyboru, etykietach i elementach tekstowych jakie s±
58 potrzebne przy tworzeniu interfejsu u¿ytkownika w ró¿nych aplikacjach.
59
60 %description -l tr
61 Newt ile karakter tabanlý ekranlarda renkli pencereler, kaydýrma
62 çubuklarý, çeþitli tuþlar oluþturulabilir.
63
64 %package devel
65 Summary:        Developer's toolkit for newt windowing library
66 Summary(de):    Entwickler-Toolkit für die newt-Windowing-Library
67 Summary(fr):    Toolkit de développement pour la bibliothèque de fenêtrage newt
68 Summary(pl):    Pliki nag³ówkowe dla newt
69 Summary(tr):    newt pencere kitaplýðý için geliþtirme dosyalarý
70 Group:          Development/Libraries
71 Requires:       %{name} = %{version}
72
73 %description devel
74 These are the header files and libraries for developing applications
75 which use newt. Newt is a windowing toolkit for text mode, which
76 provides many widgets and stackable windows.
77
78 %description devel -l de
79 Dies sind die Header-Dateien und Libraries zur Entwicklung von
80 Applikationen, die mit newt arbeiten. Newt ist ein Windowing-Toolkit
81 für Textmodus, der viele Widgets und stapelbare Fenster enthält.
82
83 %description devel -l fr
84 En-têtes et bibliothèques pour le développement d'applications
85 utilisant newt. newt est un tookit de fenêtrage pour le mode texte
86 offrant de nombreux widgets et des fenêtres empilables.
87
88 %description devel -l pl
89 Pliki nag³ówkowe dla newt.
90
91 %description devel -l tr
92 Bu paket, newt ile geliþtirme yapmak için gereken baþlýk dosyalarýný
93 ve kitaplýklarý içerir. Newt, metin ekranda çalýþan bir pencereleme
94 kitaplýðýdýr.
95
96 %package static
97 Summary:        Newt static library
98 Summary(pl):    Biblioteka statyczna newt
99 Group:          Development/Libraries
100 Requires:       %{name}-devel = %{version}
101
102 %description static
103 Newt static library.
104
105 %description static -l pl
106 Biblioteka statyczna newt.
107
108 %package tcl
109 Summary:        Newt Tcl bindings
110 Summary(pl):    Dodatki do Tcl z Newta
111 Group:          Development/Languages/Tcl
112 Requires:       %{name} = %{version}
113
114 %description tcl
115 Newt Tcl bindings.
116
117 %description tcl -l pl
118 Dodatki do Tcl z Newta
119
120 %package python
121 Summary:        Newt python bindings
122 Summary(pl):    Dodatki do pythona z Newta
123 Group:          Development/Languages/Python
124 Requires:       %{name} = %{version}
125 Requires:       python >= 1.5
126 Provides:       snack
127 %requires_eq    python
128
129 %description python
130 Newt python bindings
131
132 %description python -l pl
133 Dodatki do pythona z Newta.
134
135 %package -n whiptail
136 Summary:        A dialog compliant program to build tty dialog boxes
137 Summary(pl):    Program do tekstowych okienek dialogowych kompatybilny z dialog
138 Group:          Applications/Terminal
139
140 %description -n whiptail
141 Dialog compliant utility that allows you to build user interfaces in a
142 TTY (text mode only). You can call dialog from within a shell script
143 to ask the user questions or present with choices in a more user
144 friendly manner.
145
146 %description -n whiptail -l pl
147 Program umo¿liwi±cy budowaæ interfejsy u¿ytkownika na terminalu
148 tekstowym, kompatybilny z programem dialog. Pozwala wywo³aæ dialog ze
149 skryptu shella, aby zdaæ pytania u¿ytkownikowi w sposób bardziej
150 przyjazny.
151
152 %prep
153 %setup -q
154 %patch0 -p1
155 %patch1 -p1
156 %patch2 -p1
157 %patch3 -p1
158
159 %build
160 aclocal
161 autoconf
162 %configure \
163         --enable-gpm-support
164 %{__make} PROGS="whiptail whiptcl.so testgrid"
165 %{__make} shared
166
167 %install
168 rm -rf $RPM_BUILD_ROOT
169 install -d $RPM_BUILD_ROOT
170
171 %{__make} instroot=$RPM_BUILD_ROOT install
172 %{__make} instroot=$RPM_BUILD_ROOT install-sh
173
174
175 #it just plain doesn't work... fix it if you can
176 %ifnarch ppc
177 sgml2txt tutorial.sgml
178
179 gzip -9nf CHANGES tutorial.txt
180 %else
181 gzip -9nf CHANGES
182 %endif
183
184 %clean
185 rm -rf $RPM_BUILD_ROOT
186
187 %post   -p /sbin/ldconfig
188 %postun -p /sbin/ldconfig
189
190 %files
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_libdir}/*.so.*.*
193
194 %files -n whiptail
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_bindir}/whiptail
197
198 %files tcl
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_libdir}/*tcl.so
201
202 %files python
203 %defattr(644,root,root,755)
204 %{_libdir}/python*/*.py
205 %attr(755,root,root) %{py_libdir}/lib-dynload/*.so
206
207 %files devel
208 %defattr(644,root,root,755)
209 %doc CHANGES.gz tutorial.txt.gz
210
211 %{_includedir}/*.h
212 %attr(755,root,root) %{_libdir}/lib*.so
213
214 %files static
215 %defattr(644,root,root,755)
216 %{_libdir}/*.a
This page took 0.082898 seconds and 3 git commands to generate.