]> git.pld-linux.org Git - packages/smalltalk.git/blob - smalltalk.spec
6135880924ad437899a357fd0fd012c30420ae99
[packages/smalltalk.git] / smalltalk.spec
1 # TODO
2 # - package emacs stuff
3 #
4 Summary:        GNU smalltalk
5 Summary(pl.UTF-8):      GNU smalltalk
6 Name:           smalltalk
7 Version:        3.2.5
8 Release:        12
9 License:        GPL v2+
10 Group:          Development/Languages
11 Source0:        https://ftp.gnu.org/gnu/smalltalk/%{name}-%{version}.tar.xz
12 # Source0-md5:  772d2ac09f96dda203d49f0b80bc58f3
13 Source1:        %{name}.desktop
14 Source2:        %{name}.png
15 Patch0:         %{name}-proc.patch
16 Patch1:         %{name}-info.patch
17 URL:            http://www.gnu.org/software/smalltalk/
18 BuildRequires:  OpenGL-devel
19 BuildRequires:  OpenGL-glut-devel
20 BuildRequires:  SDL-devel >= 1.2
21 BuildRequires:  atk-devel >= 1.0.0
22 BuildRequires:  autoconf >= 2.63
23 BuildRequires:  automake >= 1:1.11
24 BuildRequires:  expat-devel >= 1.95
25 BuildRequires:  gawk
26 BuildRequires:  gdbm-devel
27 BuildRequires:  glib2-devel >= 2.0.0
28 BuildRequires:  gmp-devel
29 BuildRequires:  gnutls-devel
30 BuildRequires:  gtk+2-devel >= 1:2.0.0
31 BuildRequires:  libffi-devel
32 BuildRequires:  libltdl-devel
33 BuildRequires:  libsigsegv-devel
34 BuildRequires:  libtool >= 2:1.5
35 BuildRequires:  ncurses-devel >= 5.0
36 BuildRequires:  pango-devel >= 1:1.0.0
37 BuildRequires:  pkgconfig
38 BuildRequires:  readline-devel >= 4.2
39 BuildRequires:  sqlite3-devel
40 BuildRequires:  rpmbuild(macros) >= 1.213
41 BuildRequires:  tcl-devel >= 8.4
42 BuildRequires:  texinfo
43 BuildRequires:  tk-devel >= 8.4
44 BuildRequires:  zlib-devel
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:       libffi-devel
74 Requires:       libltdl-devel
75 Requires:       libsigsegv-devel
76 Requires:       readline-devel
77
78 %description devel
79 The GNU SmallTalk header files.
80
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe dla GNU SmallTalka.
83
84 %package static
85 Summary:        Static libraries for GNU Smalltalk
86 Summary(pl.UTF-8):      Biblioteki statyczne dla GNU Smalltalka
87 Group:          Development/Libraries
88 Requires:       %{name}-devel = %{version}-%{release}
89
90 %description static
91 The GNU SmallTalk static libraries.
92
93 %description static -l pl.UTF-8
94 Biblioteki statyczne dla GNU SmallTalka.
95
96 %package tk
97 Summary:        blox-tk module for GNU Smalltalk
98 Summary(pl.UTF-8):      Moduł blox-tk dla GNU Smalltalka
99 Group:          Libraries
100 Requires:       %{name} = %{version}-%{release}
101
102 %description tk
103 blox-tk module for GNU Smalltalk.
104
105 %description tk -l pl.UTF-8
106 Moduł blox-tk dla GNU Smalltalka.
107
108 %package expat
109 Summary:        Expat module for GNU Smalltalk
110 Summary(pl.UTF-8):      Moduł Expat dla GNU Smalltalka
111 Group:          Libraries
112 Requires:       %{name} = %{version}-%{release}
113
114 %description expat
115 Expat module for GNU Smalltalk.
116
117 %description expat -l pl.UTF-8
118 Moduł Expat dla GNU Smalltalka.
119
120 %package gdbm
121 Summary:        GDBM module for GNU Smalltalk
122 Summary(pl.UTF-8):      Moduł GDBM dla GNU Smalltalka
123 Group:          Libraries
124 Requires:       %{name} = %{version}-%{release}
125
126 %description gdbm
127 GDBM module for GNU Smalltalk.
128
129 %description gdbm -l pl.UTF-8
130 Moduł GDBM dla GNU Smalltalka.
131
132 %package gtk
133 Summary:        GTK+ module for GNU Smalltalk
134 Summary(pl.UTF-8):      Moduł GTK+ dla GNU Smalltalka
135 Group:          Libraries
136 Requires:       %{name} = %{version}-%{release}
137
138 %description gtk
139 GTK+ module for GNU Smalltalk.
140
141 %description gtk -l pl.UTF-8
142 Moduł GTK+ dla GNU Smalltalka.
143
144 %package sqlite3
145 Summary:        Sqlite3 module for GNU Smalltalk
146 Summary(pl.UTF-8):      Moduł Sqlite3 dla GNU Smalltalka
147 Group:          Libraries
148 Requires:       %{name} = %{version}-%{release}
149
150 %description sqlite3
151 Sqlite3 module for GNU Smalltalk.
152
153 %description sqlite3 -l pl.UTF-8
154 Moduł Sqlite3 dla GNU Smalltalka.
155
156 %package sdl
157 Summary:        SDL module for GNU Smalltalk
158 Summary(pl.UTF-8):      Moduł SDL dla GNU Smalltalka
159 Group:          Libraries
160 Requires:       %{name} = %{version}-%{release}
161
162 %description sdl
163 SDL module for GNU Smalltalk.
164
165 %description sdl -l pl.UTF-8
166 Moduł SDL dla GNU Smalltalka.
167
168 %package opengl
169 Summary:        OpenGL module for GNU Smalltalk
170 Summary(pl.UTF-8):      Moduł OpenGL dla GNU Smalltalka
171 Group:          Libraries
172 Requires:       %{name} = %{version}-%{release}
173
174 %description opengl
175 openGL module for GNU Smalltalk.
176
177 %description opengl -l pl.UTF-8
178 Moduł OpenGL dla GNU Smalltalka.
179
180 %prep
181 %setup -q
182 %patch0 -p1
183 %patch1 -p1
184
185 %build
186 %configure \
187         AWK=gawk \
188         CPPFLAGS="-DUSE_INTERP_RESULT %{rpmcppflags}" \
189         --enable-disassembler \
190         --enable-gtk \
191         --enable-preemption \
192         --with-imagedir=/var/lib/smalltalk \
193         --with-system-libffi \
194         --with-system-libsigsegv \
195         --without-emacs
196
197 # gtk things are generated improperly when some locale are set
198 %{__make} \
199         LIBTHREAD="-lpthread" \
200         LC_ALL=C
201
202 %install
203 rm -rf $RPM_BUILD_ROOT
204 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
205
206 %{__make} install \
207         DESTDIR=$RPM_BUILD_ROOT
208
209 ln -sf ../../bin/gst $RPM_BUILD_ROOT%{_datadir}/smalltalk/gst
210
211 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
212 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
213
214 # no static modules (*.la used by ltdl)
215 %{__rm} $RPM_BUILD_ROOT%{_libdir}/smalltalk/*.a
216
217 %clean
218 rm -rf $RPM_BUILD_ROOT
219
220 %post
221 /sbin/ldconfig
222 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
223
224 %postun
225 /sbin/ldconfig
226 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
227
228 %files
229 %defattr(644,root,root,755)
230 %doc AUTHORS NEWS README THANKS
231 %attr(755,root,root) %{_bindir}/gst
232 %attr(755,root,root) %{_bindir}/gst-blox
233 %attr(755,root,root) %{_bindir}/gst-browser
234 %attr(755,root,root) %{_bindir}/gst-convert
235 %attr(755,root,root) %{_bindir}/gst-doc
236 %attr(755,root,root) %{_bindir}/gst-load
237 %attr(755,root,root) %{_bindir}/gst-profile
238 %attr(755,root,root) %{_bindir}/gst-reload
239 %attr(755,root,root) %{_bindir}/gst-remote
240 %attr(755,root,root) %{_bindir}/gst-sunit
241 %attr(755,root,root) %{_libdir}/libgst.so.*.*.*
242 %attr(755,root,root) %ghost %{_libdir}/libgst.so.7
243 %dir %{_libdir}/smalltalk
244 %{_libdir}/smalltalk/libc.la
245 %attr(755,root,root) %{_libdir}/smalltalk/digest*.so
246 %{_libdir}/smalltalk/digest.la
247 %attr(755,root,root) %{_libdir}/smalltalk/i18n*.so
248 %{_libdir}/smalltalk/i18n.la
249 %attr(755,root,root) %{_libdir}/smalltalk/iconv*.so
250 %{_libdir}/smalltalk/iconv.la
251 %attr(755,root,root) %{_libdir}/smalltalk/zlib*.so
252 %{_libdir}/smalltalk/zlib.la
253 %if "%{_libexecdir}" != "%{_libdir}"
254 %dir %{_libexecdir}/smalltalk
255 %endif
256 %attr(755,root,root) %{_libexecdir}/smalltalk/gnutls-wrapper
257 %dir %{_libexecdir}/smalltalk/vfs
258 %attr(755,root,root) %{_libexecdir}/smalltalk/vfs/*
259 %{_datadir}/smalltalk
260 %{_desktopdir}/smalltalk.desktop
261 %{_pixmapsdir}/smalltalk.png
262 %{_infodir}/gst.info*
263 %{_infodir}/gst-base.info*
264 %{_infodir}/gst-libs.info*
265 %{_mandir}/man1/gst.1*
266 %{_mandir}/man1/gst-convert.1*
267 %{_mandir}/man1/gst-doc.1*
268 %{_mandir}/man1/gst-load.1*
269 %{_mandir}/man1/gst-profile.1*
270 %{_mandir}/man1/gst-reload.1*
271 %{_mandir}/man1/gst-sunit.1*
272 %dir /var/lib/smalltalk
273 /var/lib/smalltalk/gst.im
274
275 %files devel
276 %defattr(644,root,root,755)
277 %attr (755,root,root) %{_bindir}/gst-config
278 %attr (755,root,root) %{_bindir}/gst-package
279 %attr(755,root,root) %{_libdir}/libgst.so
280 %{_libdir}/libgst.la
281 %{_includedir}/gst.h
282 %{_includedir}/gstpub.h
283 %{_aclocaldir}/gst.m4
284 %{_aclocaldir}/gst-package.m4
285 %{_pkgconfigdir}/gnu-smalltalk.pc
286 %{_mandir}/man1/gst-config.1*
287 %{_mandir}/man1/gst-package.1*
288
289 %files static
290 %defattr(644,root,root,755)
291 %{_libdir}/libgst.a
292
293 %files tk
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/smalltalk/blox-tk*.so
296 %{_libdir}/smalltalk/blox-tk.la
297
298 %files expat
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_libdir}/smalltalk/expat*.so
301 %{_libdir}/smalltalk/expat.la
302
303 %files gdbm
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/smalltalk/gdbm*.so
306 %{_libdir}/smalltalk/gdbm.la
307
308 %files gtk
309 %defattr(644,root,root,755)
310 %attr(755,root,root) %{_libdir}/smalltalk/gst-gtk*.so
311 %{_libdir}/smalltalk/gst-gtk.la
312
313 %files sqlite3
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libdir}/smalltalk/dbd-sqlite3*.so
316 %{_libdir}/smalltalk/dbd-sqlite3.la
317
318 %files sdl
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/smalltalk/sdl*.so
321 %{_libdir}/smalltalk/sdl.la
322
323 %files opengl
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_libdir}/smalltalk/gstglut*.so
326 %{_libdir}/smalltalk/gstglut.la
327 %attr(755,root,root) %{_libdir}/smalltalk/gstopengl*.so
328 %{_libdir}/smalltalk/gstopengl.la
This page took 0.089753 seconds and 2 git commands to generate.