]> git.pld-linux.org Git - packages/smalltalk.git/blob - smalltalk.spec
- rel 3; fix build with tcl/tk 8.6
[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:        3
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         CPPFLAGS="-DUSE_INTERP_RESULT %{rpmcppflags}" \
181         --with-imagedir=/var/lib/smalltalk \
182         --enable-gtk=yes \
183         --enable-disassembler \
184         --enable-preemption \
185         --with-system-libffi \
186         --with-system-libsigsegv \
187         --without-emacs \
188         AWK=gawk
189
190 # gtk things are generated improperly when some locale are set
191 %{__make} \
192         LIBTHREAD="-lpthread" \
193         LC_ALL=C
194
195 %install
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
198
199 %{__make} install \
200         DESTDIR=$RPM_BUILD_ROOT
201
202 ln -sf ../../bin/gst $RPM_BUILD_ROOT%{_datadir}/smalltalk/gst
203
204 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
205 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
206
207 # no static modules (*.la used by ltdl)
208 rm -f $RPM_BUILD_ROOT%{_libdir}/smalltalk/*.a
209 # doesn't belong here
210 rm -rf $RPM_BUILD_ROOT{%{_aclocaldir}/snprintfv.m4,%{_includedir}/snprintfv}
211
212 %clean
213 rm -rf $RPM_BUILD_ROOT
214
215 %post
216 /sbin/ldconfig
217 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
218
219 %postun
220 /sbin/ldconfig
221 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
222
223 %files
224 %defattr(644,root,root,755)
225 %doc AUTHORS NEWS README THANKS
226 %attr(755,root,root) %{_bindir}/gst
227 %attr(755,root,root) %{_bindir}/gst-blox
228 %attr(755,root,root) %{_bindir}/gst-browser
229 %attr(755,root,root) %{_bindir}/gst-convert
230 %attr(755,root,root) %{_bindir}/gst-doc
231 %attr(755,root,root) %{_bindir}/gst-load
232 %attr(755,root,root) %{_bindir}/gst-profile
233 %attr(755,root,root) %{_bindir}/gst-reload
234 %attr(755,root,root) %{_bindir}/gst-remote
235 %attr(755,root,root) %{_bindir}/gst-sunit
236 %attr(755,root,root) %{_libdir}/libgst.so.*.*.*
237 %attr(755,root,root) %ghost %{_libdir}/libgst.so.7
238 %dir %{_libdir}/smalltalk
239 %{_libdir}/smalltalk/libc.la
240 %attr(755,root,root) %{_libdir}/smalltalk/digest*.so
241 %{_libdir}/smalltalk/digest.la
242 %attr(755,root,root) %{_libdir}/smalltalk/i18n*.so
243 %attr(755,root,root) %{_libdir}/smalltalk/gnutls-wrapper
244 %{_libdir}/smalltalk/i18n.la
245 %attr(755,root,root) %{_libdir}/smalltalk/iconv*.so
246 %{_libdir}/smalltalk/iconv.la
247 %attr(755,root,root) %{_libdir}/smalltalk/zlib*.so
248 %{_libdir}/smalltalk/zlib.la
249 %dir %{_libdir}/smalltalk/vfs
250 %attr(755,root,root) %{_libdir}/smalltalk/vfs/*
251 %{_datadir}/smalltalk
252 %{_infodir}/gst*
253 %{_mandir}/man1/gst.1*
254 %{_mandir}/man1/gst-convert.1*
255 %{_mandir}/man1/gst-doc.1*
256 %{_mandir}/man1/gst-load.1*
257 %{_mandir}/man1/gst-profile.1*
258 %{_mandir}/man1/gst-reload.1*
259 %{_mandir}/man1/gst-sunit.1*
260 %{_desktopdir}/*.desktop
261 %{_pixmapsdir}/*
262 %dir /var/lib/smalltalk
263 /var/lib/smalltalk/gst.im
264
265 %files devel
266 %defattr(644,root,root,755)
267 %attr (755,root,root) %{_bindir}/gst-config
268 %attr (755,root,root) %{_bindir}/gst-package
269 %attr(755,root,root) %{_libdir}/libgst.so
270 %{_libdir}/libgst.la
271 %{_includedir}/*.h
272 %{_aclocaldir}/gst.m4
273 %{_aclocaldir}/gst-package.m4
274 %{_pkgconfigdir}/gnu-smalltalk.pc
275 %{_mandir}/man1/gst-config.1*
276 %{_mandir}/man1/gst-package.1*
277
278 %files static
279 %defattr(644,root,root,755)
280 %{_libdir}/libgst.a
281
282 %files tk
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/smalltalk/blox-tk*.so
285 %{_libdir}/smalltalk/blox-tk.la
286
287 %files expat
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/smalltalk/expat*.so
290 %{_libdir}/smalltalk/expat.la
291
292 %files gdbm
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_libdir}/smalltalk/gdbm*.so
295 %{_libdir}/smalltalk/gdbm.la
296
297 %files gtk
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/smalltalk/gst-gtk*.so
300 %{_libdir}/smalltalk/gst-gtk.la
301
302 %files sqlite3
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/smalltalk/dbd-sqlite3*.so
305 %{_libdir}/smalltalk/dbd-sqlite3.la
306
307 %files sdl
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/smalltalk/sdl*.so
310 %{_libdir}/smalltalk/sdl.la
311
312 %files opengl
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_libdir}/smalltalk/gstglut*.so
315 %{_libdir}/smalltalk/gstglut.la
316 %attr(755,root,root) %{_libdir}/smalltalk/gstopengl*.so
317 %{_libdir}/smalltalk/gstopengl.la
This page took 0.343963 seconds and 3 git commands to generate.