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