]> git.pld-linux.org Git - packages/smalltalk.git/blob - smalltalk.spec
- tcl rebuild
[packages/smalltalk.git] / smalltalk.spec
1 #
2 # TODO
3 #       - failure on athlon arch:
4 # ./gst-tool gst-package --kernel-dir="/home/users/builder/rpm/BUILD/smalltalk-3.1/kernel" --image="/home/users/builder/rpm/BUILD/smalltalk-3.1/gst.im" --srcdir=.  --target-directory=. packages/blox/tk/package.xml
5 # Illegal instruction
6 # - package emacs stuff
7 #
8 Summary:        GNU smalltalk
9 Summary(pl.UTF-8):      GNU smalltalk
10 Name:           smalltalk
11 Version:        3.2.5
12 Release:        2
13 License:        GPL
14 Group:          Development/Languages
15 Source0:        ftp://ftp.gnu.org/pub/gnu/smalltalk/%{name}-%{version}.tar.xz
16 # Source0-md5:  772d2ac09f96dda203d49f0b80bc58f3
17 Source1:        %{name}.desktop
18 Source2:        %{name}.png
19 Patch0:         %{name}-proc.patch
20 URL:            http://smalltalk.gnu.org/
21 BuildRequires:  OpenGL-devel
22 BuildRequires:  OpenGL-glut-devel
23 BuildRequires:  SDL-devel
24 BuildRequires:  atk-devel >= 1.0.0
25 BuildRequires:  autoconf >= 2.52
26 BuildRequires:  automake
27 BuildRequires:  expat-devel
28 BuildRequires:  gawk
29 BuildRequires:  gdbm-devel
30 BuildRequires:  glib2-devel >= 2.0.0
31 BuildRequires:  gnutls-devel
32 BuildRequires:  gtk+2-devel >= 1:2.0.0
33 BuildRequires:  libffi-devel
34 BuildRequires:  libltdl-devel
35 BuildRequires:  libsigsegv
36 BuildRequires:  libtool >= 2:1.5
37 BuildRequires:  ncurses-devel >= 5.0
38 BuildRequires:  pango-devel >= 1:1.0.0
39 BuildRequires:  pkgconfig
40 BuildRequires:  readline-devel >= 4.2
41 BuildRequires:  sqlite3-devel
42 BuildRequires:  rpmbuild(macros) >= 1.213
43 BuildRequires:  texinfo
44 BuildRequires:  tk-devel >= 8.4
45 Requires(post,postun):  /sbin/ldconfig
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 GNU Smalltalk is a Free (or Open Source) implementation that closely
50 follows the Smalltalk-80 language as described in the book
51 Smalltalk-80: the Language and its Implementation by Adele Goldberg
52 and David Robson. GNUSmalltalk runs on most versions of Unix or Unix
53 like systems (GNU/Linux, FreeBSD, etc...). There is even a version for
54 commercial operating systems like MS-NT.
55
56 %description -l pl.UTF-8
57 GNU Smalltalk jest Wolną (lub Open Source) implementacją tak bliską
58 językowi Smalltalk-80 jak to jest opisane w książce Smalltalk-80: the
59 Language and its Implementation napisanej przez Adele Goldberg oraz
60 David Robson. GNUSmalltalk działa na większości wersji Unix'ów lub
61 systemów uniksopodobnych (GNU/Linux, FreeBSD, etc...). Jest nawet
62 wersja dla systemów komercyjnych, takich jak M$-NT.
63
64 %package devel
65 Summary:        GNU SmallTalk header files
66 Summary(pl.UTF-8):      Pliki nagłówkowe dla GNU SmallTalka
67 Group:          Development/Libraries
68 Requires:       %{name} = %{version}-%{release}
69 Requires:       gmp-devel
70 Requires:       readline-devel
71
72 %description devel
73 The GNU SmallTalk header files.
74
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe dla GNU SmallTalka.
77
78 %package static
79 Summary:        Static libraries for GNU Smalltalk
80 Summary(pl.UTF-8):      Biblioteki statyczne dla GNU Smalltalka
81 Group:          Development/Libraries
82 Requires:       %{name}-devel = %{version}-%{release}
83
84 %description static
85 The GNU SmallTalk static libraries.
86
87 %description static -l pl.UTF-8
88 Biblioteki statyczne dla GNU SmallTalka.
89
90 %package tk
91 Summary:        blox-tk module for GNU Smalltalk
92 Summary(pl.UTF-8):      Moduł blox-tk dla GNU Smalltalka
93 Group:          Libraries
94 Requires:       %{name} = %{version}-%{release}
95
96 %description tk
97 blox-tk module for GNU Smalltalk.
98
99 %description tk -l pl.UTF-8
100 Moduł blox-tk dla GNU Smalltalka.
101
102 %package expat
103 Summary:        Expat module for GNU Smalltalk
104 Summary(pl.UTF-8):      Moduł Expat dla GNU Smalltalka
105 Group:          Libraries
106 Requires:       %{name} = %{version}-%{release}
107
108 %description expat
109 Expat module for GNU Smalltalk.
110
111 %description expat -l pl.UTF-8
112 Moduł Expat dla GNU Smalltalka.
113
114 %package gdbm
115 Summary:        GDBM module for GNU Smalltalk
116 Summary(pl.UTF-8):      Moduł GDBM dla GNU Smalltalka
117 Group:          Libraries
118 Requires:       %{name} = %{version}-%{release}
119
120 %description gdbm
121 GDBM module for GNU Smalltalk.
122
123 %description gdbm -l pl.UTF-8
124 Moduł GDBM dla GNU Smalltalka.
125
126 %package gtk
127 Summary:        GTK+ module for GNU Smalltalk
128 Summary(pl.UTF-8):      Moduł GTK+ dla GNU Smalltalka
129 Group:          Libraries
130 Requires:       %{name} = %{version}-%{release}
131
132 %description gtk
133 GTK+ module for GNU Smalltalk.
134
135 %description gtk -l pl.UTF-8
136 Moduł GTK+ dla GNU Smalltalka.
137
138 %package sqlite3
139 Summary:        Sqlite3 module for GNU Smalltalk
140 Summary(pl.UTF-8):      Moduł Sqlite3 dla GNU Smalltalka
141 Group:          Libraries
142 Requires:       %{name} = %{version}-%{release}
143
144 %description sqlite3
145 Sqlite3 module for GNU Smalltalk.
146
147 %description sqlite3 -l pl.UTF-8
148 Moduł Sqlite3 dla GNU Smalltalka.
149
150 %package sdl
151 Summary:        SDL module for GNU Smalltalk
152 Summary(pl.UTF-8):      Moduł SDL dla GNU Smalltalka
153 Group:          Libraries
154 Requires:       %{name} = %{version}-%{release}
155
156 %description sdl
157 SDL module for GNU Smalltalk.
158
159 %description sdl -l pl.UTF-8
160 Moduł SDL dla GNU Smalltalka.
161
162 %package opengl
163 Summary:        OpenGL module for GNU Smalltalk
164 Summary(pl.UTF-8):      Moduł OpenGL dla GNU Smalltalka
165 Group:          Libraries
166 Requires:       %{name} = %{version}-%{release}
167
168 %description opengl
169 openGL module for GNU Smalltalk.
170
171 %description opengl -l pl.UTF-8
172 Moduł OpenGL dla GNU Smalltalka.
173
174 %prep
175 %setup -q
176 %patch0 -p1
177
178 %build
179 %configure \
180         --with-imagedir=/var/lib/smalltalk \
181         --enable-gtk=yes \
182         --enable-disassembler \
183         --enable-preemption \
184         --with-system-libffi \
185         --with-system-libsigsegv \
186         --without-emacs \
187         AWK=gawk
188
189 # gtk things are generated improperly when some locale are set
190 %{__make} \
191         LIBTHREAD="-lpthread" \
192         LC_ALL=C
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
197
198 %{__make} install \
199         DESTDIR=$RPM_BUILD_ROOT
200
201 ln -sf ../../bin/gst $RPM_BUILD_ROOT%{_datadir}/smalltalk/gst
202
203 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
204 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
205
206 # no static modules (*.la used by ltdl)
207 rm -f $RPM_BUILD_ROOT%{_libdir}/smalltalk/*.a
208 # doesn't belong here
209 rm -rf $RPM_BUILD_ROOT{%{_aclocaldir}/snprintfv.m4,%{_includedir}/snprintfv}
210
211 %clean
212 rm -rf $RPM_BUILD_ROOT
213
214 %post
215 /sbin/ldconfig
216 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
217
218 %postun
219 /sbin/ldconfig
220 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
221
222 %files
223 %defattr(644,root,root,755)
224 %doc AUTHORS NEWS README THANKS
225 %attr(755,root,root) %{_bindir}/gst
226 %attr(755,root,root) %{_bindir}/gst-blox
227 %attr(755,root,root) %{_bindir}/gst-browser
228 %attr(755,root,root) %{_bindir}/gst-convert
229 %attr(755,root,root) %{_bindir}/gst-doc
230 %attr(755,root,root) %{_bindir}/gst-load
231 %attr(755,root,root) %{_bindir}/gst-profile
232 %attr(755,root,root) %{_bindir}/gst-reload
233 %attr(755,root,root) %{_bindir}/gst-remote
234 %attr(755,root,root) %{_bindir}/gst-sunit
235 %attr(755,root,root) %{_libdir}/libgst.so.*.*.*
236 %attr(755,root,root) %ghost %{_libdir}/libgst.so.7
237 %dir %{_libdir}/smalltalk
238 %{_libdir}/smalltalk/libc.la
239 %attr(755,root,root) %{_libdir}/smalltalk/digest*.so
240 %{_libdir}/smalltalk/digest.la
241 %attr(755,root,root) %{_libdir}/smalltalk/i18n*.so
242 %attr(755,root,root) %{_libdir}/smalltalk/gnutls-wrapper
243 %{_libdir}/smalltalk/i18n.la
244 %attr(755,root,root) %{_libdir}/smalltalk/iconv*.so
245 %{_libdir}/smalltalk/iconv.la
246 %attr(755,root,root) %{_libdir}/smalltalk/zlib*.so
247 %{_libdir}/smalltalk/zlib.la
248 %dir %{_libdir}/smalltalk/vfs
249 %attr(755,root,root) %{_libdir}/smalltalk/vfs/*
250 %{_datadir}/smalltalk
251 %{_infodir}/gst*
252 %{_mandir}/man1/gst.1*
253 %{_mandir}/man1/gst-convert.1*
254 %{_mandir}/man1/gst-doc.1*
255 %{_mandir}/man1/gst-load.1*
256 %{_mandir}/man1/gst-profile.1*
257 %{_mandir}/man1/gst-reload.1*
258 %{_mandir}/man1/gst-sunit.1*
259 %{_desktopdir}/*.desktop
260 %{_pixmapsdir}/*
261 %dir /var/lib/smalltalk
262 /var/lib/smalltalk/gst.im
263
264 %files devel
265 %defattr(644,root,root,755)
266 %attr (755,root,root) %{_bindir}/gst-config
267 %attr (755,root,root) %{_bindir}/gst-package
268 %attr(755,root,root) %{_libdir}/libgst.so
269 %{_libdir}/libgst.la
270 %{_includedir}/*.h
271 %{_aclocaldir}/gst.m4
272 %{_aclocaldir}/gst-package.m4
273 %{_pkgconfigdir}/gnu-smalltalk.pc
274 %{_mandir}/man1/gst-config.1*
275 %{_mandir}/man1/gst-package.1*
276
277 %files static
278 %defattr(644,root,root,755)
279 %{_libdir}/libgst.a
280
281 %files tk
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_libdir}/smalltalk/blox-tk*.so
284 %{_libdir}/smalltalk/blox-tk.la
285
286 %files expat
287 %defattr(644,root,root,755)
288 %attr(755,root,root) %{_libdir}/smalltalk/expat*.so
289 %{_libdir}/smalltalk/expat.la
290
291 %files gdbm
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_libdir}/smalltalk/gdbm*.so
294 %{_libdir}/smalltalk/gdbm.la
295
296 %files gtk
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/smalltalk/gst-gtk*.so
299 %{_libdir}/smalltalk/gst-gtk.la
300
301 %files sqlite3
302 %defattr(644,root,root,755)
303 %attr(755,root,root) %{_libdir}/smalltalk/dbd-sqlite3*.so
304 %{_libdir}/smalltalk/dbd-sqlite3.la
305
306 %files sdl
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/smalltalk/sdl*.so
309 %{_libdir}/smalltalk/sdl.la
310
311 %files opengl
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/smalltalk/gstglut*.so
314 %{_libdir}/smalltalk/gstglut.la
315 %attr(755,root,root) %{_libdir}/smalltalk/gstopengl*.so
316 %{_libdir}/smalltalk/gstopengl.la
This page took 0.046756 seconds and 4 git commands to generate.