]>
Commit | Line | Data |
---|---|---|
13c24e40 | 1 | # TODO |
81dbd131 | 2 | # - package emacs stuff |
13c24e40 | 3 | # |
ae0be00c | 4 | Summary: GNU smalltalk |
eadb5e7f | 5 | Summary(pl.UTF-8): GNU smalltalk |
38df49cb | 6 | Name: smalltalk |
bb5ff558 | 7 | Version: 3.2.5 |
7fc444f0 JB |
8 | Release: 12 |
9 | License: GPL v2+ | |
38df49cb | 10 | Group: Development/Languages |
7fc444f0 | 11 | Source0: https://ftp.gnu.org/gnu/smalltalk/%{name}-%{version}.tar.xz |
bb5ff558 | 12 | # Source0-md5: 772d2ac09f96dda203d49f0b80bc58f3 |
b85013d1 | 13 | Source1: %{name}.desktop |
14 | Source2: %{name}.png | |
1f3deafd | 15 | Patch0: %{name}-proc.patch |
7fc444f0 | 16 | Patch1: %{name}-info.patch |
deb252f4 JB |
17 | Patch2: %{name}-x32.patch |
18 | Patch3: %{name}-longdouble.patch | |
7fc444f0 | 19 | URL: http://www.gnu.org/software/smalltalk/ |
1f3deafd | 20 | BuildRequires: OpenGL-devel |
5e6a3169 | 21 | BuildRequires: OpenGL-glut-devel |
7fc444f0 | 22 | BuildRequires: SDL-devel >= 1.2 |
64d1da21 | 23 | BuildRequires: atk-devel >= 1.0.0 |
7fc444f0 JB |
24 | BuildRequires: autoconf >= 2.63 |
25 | BuildRequires: automake >= 1:1.11 | |
26 | BuildRequires: expat-devel >= 1.95 | |
64d1da21 JB |
27 | BuildRequires: gawk |
28 | BuildRequires: gdbm-devel | |
29 | BuildRequires: glib2-devel >= 2.0.0 | |
7fc444f0 | 30 | BuildRequires: gmp-devel |
bb5ff558 | 31 | BuildRequires: gnutls-devel |
71789ab8 | 32 | BuildRequires: gtk+2-devel >= 1:2.0.0 |
1f3deafd | 33 | BuildRequires: libffi-devel |
76604e72 | 34 | BuildRequires: libltdl-devel |
7fc444f0 | 35 | BuildRequires: libsigsegv-devel |
3a945cfe | 36 | BuildRequires: libtool >= 2:1.5 |
99e6eec0 | 37 | BuildRequires: ncurses-devel >= 5.0 |
02edefbf | 38 | BuildRequires: pango-devel >= 1:1.0.0 |
64d1da21 | 39 | BuildRequires: pkgconfig |
8878c06a | 40 | BuildRequires: readline-devel >= 4.2 |
17dccebf | 41 | BuildRequires: sqlite3-devel |
c236bd4c | 42 | BuildRequires: rpmbuild(macros) >= 1.213 |
7fc444f0 | 43 | BuildRequires: tcl-devel >= 8.4 |
afc15661 | 44 | BuildRequires: texinfo |
35f29eea | 45 | BuildRequires: tk-devel >= 8.4 |
7fc444f0 | 46 | BuildRequires: zlib-devel |
994a6b77 | 47 | Requires(post,postun): /sbin/ldconfig |
deb252f4 JB |
48 | # as of 3.2.5 fails probably because of issues with size of limb != size of pointer |
49 | ExcludeArch: x32 | |
b1f9d944 | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d61b9668 | 51 | |
29134151 AM |
52 | # smalltalk uses -Wno-format (see GST_PROG_CC in configure.ac) |
53 | %define filterout_c -Wformat -Werror=format-security | |
54 | ||
38df49cb | 55 | %description |
b85013d1 | 56 | GNU Smalltalk is a Free (or Open Source) implementation that closely |
57 | follows the Smalltalk-80 language as described in the book | |
58 | Smalltalk-80: the Language and its Implementation by Adele Goldberg | |
59 | and David Robson. GNUSmalltalk runs on most versions of Unix or Unix | |
60 | like systems (GNU/Linux, FreeBSD, etc...). There is even a version for | |
61 | commercial operating systems like MS-NT. | |
38df49cb | 62 | |
f47a83a7 JR |
63 | %description -l pl.UTF-8 |
64 | GNU Smalltalk jest Wolną (lub Open Source) implementacją tak bliską | |
65 | językowi Smalltalk-80 jak to jest opisane w książce Smalltalk-80: the | |
41cf5c01 | 66 | Language and its Implementation napisanej przez Adele Goldberg oraz |
f47a83a7 JR |
67 | David Robson. GNUSmalltalk działa na większości wersji Unix'ów lub |
68 | systemów uniksopodobnych (GNU/Linux, FreeBSD, etc...). Jest nawet | |
69 | wersja dla systemów komercyjnych, takich jak M$-NT. | |
38df49cb SZ |
70 | |
71 | %package devel | |
72 | Summary: GNU SmallTalk header files | |
eadb5e7f | 73 | Summary(pl.UTF-8): Pliki nagłówkowe dla GNU SmallTalka |
35f29eea JB |
74 | Group: Development/Libraries |
75 | Requires: %{name} = %{version}-%{release} | |
17dccebf | 76 | Requires: gmp-devel |
7fc444f0 JB |
77 | Requires: libffi-devel |
78 | Requires: libltdl-devel | |
79 | Requires: libsigsegv-devel | |
17dccebf | 80 | Requires: readline-devel |
38df49cb SZ |
81 | |
82 | %description devel | |
83 | The GNU SmallTalk header files. | |
84 | ||
f47a83a7 JR |
85 | %description devel -l pl.UTF-8 |
86 | Pliki nagłówkowe dla GNU SmallTalka. | |
38df49cb SZ |
87 | |
88 | %package static | |
89 | Summary: Static libraries for GNU Smalltalk | |
eadb5e7f | 90 | Summary(pl.UTF-8): Biblioteki statyczne dla GNU Smalltalka |
35f29eea JB |
91 | Group: Development/Libraries |
92 | Requires: %{name}-devel = %{version}-%{release} | |
38df49cb SZ |
93 | |
94 | %description static | |
95 | The GNU SmallTalk static libraries. | |
96 | ||
f47a83a7 | 97 | %description static -l pl.UTF-8 |
865bbb4f | 98 | Biblioteki statyczne dla GNU SmallTalka. |
38df49cb | 99 | |
35f29eea JB |
100 | %package tk |
101 | Summary: blox-tk module for GNU Smalltalk | |
eadb5e7f | 102 | Summary(pl.UTF-8): Moduł blox-tk dla GNU Smalltalka |
35f29eea JB |
103 | Group: Libraries |
104 | Requires: %{name} = %{version}-%{release} | |
105 | ||
106 | %description tk | |
107 | blox-tk module for GNU Smalltalk. | |
108 | ||
f47a83a7 JR |
109 | %description tk -l pl.UTF-8 |
110 | Moduł blox-tk dla GNU Smalltalka. | |
35f29eea | 111 | |
bb5ff558 JR |
112 | %package expat |
113 | Summary: Expat module for GNU Smalltalk | |
114 | Summary(pl.UTF-8): Moduł Expat dla GNU Smalltalka | |
115 | Group: Libraries | |
116 | Requires: %{name} = %{version}-%{release} | |
117 | ||
118 | %description expat | |
119 | Expat module for GNU Smalltalk. | |
120 | ||
121 | %description expat -l pl.UTF-8 | |
122 | Moduł Expat dla GNU Smalltalka. | |
123 | ||
35f29eea JB |
124 | %package gdbm |
125 | Summary: GDBM module for GNU Smalltalk | |
eadb5e7f | 126 | Summary(pl.UTF-8): Moduł GDBM dla GNU Smalltalka |
35f29eea JB |
127 | Group: Libraries |
128 | Requires: %{name} = %{version}-%{release} | |
129 | ||
130 | %description gdbm | |
131 | GDBM module for GNU Smalltalk. | |
132 | ||
f47a83a7 JR |
133 | %description gdbm -l pl.UTF-8 |
134 | Moduł GDBM dla GNU Smalltalka. | |
35f29eea JB |
135 | |
136 | %package gtk | |
276b58b4 | 137 | Summary: GTK+ module for GNU Smalltalk |
eadb5e7f | 138 | Summary(pl.UTF-8): Moduł GTK+ dla GNU Smalltalka |
35f29eea JB |
139 | Group: Libraries |
140 | Requires: %{name} = %{version}-%{release} | |
141 | ||
142 | %description gtk | |
276b58b4 | 143 | GTK+ module for GNU Smalltalk. |
35f29eea | 144 | |
f47a83a7 JR |
145 | %description gtk -l pl.UTF-8 |
146 | Moduł GTK+ dla GNU Smalltalka. | |
35f29eea | 147 | |
17dccebf JR |
148 | %package sqlite3 |
149 | Summary: Sqlite3 module for GNU Smalltalk | |
150 | Summary(pl.UTF-8): Moduł Sqlite3 dla GNU Smalltalka | |
151 | Group: Libraries | |
152 | Requires: %{name} = %{version}-%{release} | |
153 | ||
154 | %description sqlite3 | |
155 | Sqlite3 module for GNU Smalltalk. | |
156 | ||
157 | %description sqlite3 -l pl.UTF-8 | |
158 | Moduł Sqlite3 dla GNU Smalltalka. | |
159 | ||
1f3deafd JR |
160 | %package sdl |
161 | Summary: SDL module for GNU Smalltalk | |
162 | Summary(pl.UTF-8): Moduł SDL dla GNU Smalltalka | |
163 | Group: Libraries | |
164 | Requires: %{name} = %{version}-%{release} | |
165 | ||
166 | %description sdl | |
167 | SDL module for GNU Smalltalk. | |
168 | ||
169 | %description sdl -l pl.UTF-8 | |
170 | Moduł SDL dla GNU Smalltalka. | |
171 | ||
172 | %package opengl | |
39465728 | 173 | Summary: OpenGL module for GNU Smalltalk |
1f3deafd JR |
174 | Summary(pl.UTF-8): Moduł OpenGL dla GNU Smalltalka |
175 | Group: Libraries | |
176 | Requires: %{name} = %{version}-%{release} | |
177 | ||
178 | %description opengl | |
179 | openGL module for GNU Smalltalk. | |
180 | ||
181 | %description opengl -l pl.UTF-8 | |
182 | Moduł OpenGL dla GNU Smalltalka. | |
183 | ||
38df49cb SZ |
184 | %prep |
185 | %setup -q | |
35f29eea | 186 | %patch0 -p1 |
7fc444f0 | 187 | %patch1 -p1 |
deb252f4 JB |
188 | %patch2 -p1 |
189 | %patch3 -p1 | |
69ff8d2c | 190 | |
38df49cb | 191 | %build |
64d1da21 | 192 | %configure \ |
7fc444f0 | 193 | AWK=gawk \ |
95feaa7b | 194 | CPPFLAGS="-DUSE_INTERP_RESULT %{rpmcppflags}" \ |
17dccebf | 195 | --enable-disassembler \ |
7fc444f0 | 196 | --enable-gtk \ |
1f3deafd | 197 | --enable-preemption \ |
7fc444f0 | 198 | --with-imagedir=/var/lib/smalltalk \ |
299061e2 | 199 | --with-system-libffi \ |
3c56d9c4 | 200 | --with-system-libsigsegv \ |
7fc444f0 | 201 | --without-emacs |
c5e9608b | 202 | |
69ff8d2c JB |
203 | # gtk things are generated improperly when some locale are set |
204 | %{__make} \ | |
bb5ff558 | 205 | LIBTHREAD="-lpthread" \ |
69ff8d2c | 206 | LC_ALL=C |
38df49cb | 207 | |
38df49cb SZ |
208 | %install |
209 | rm -rf $RPM_BUILD_ROOT | |
51ac8a12 | 210 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
d61b9668 | 211 | |
64d1da21 JB |
212 | %{__make} install \ |
213 | DESTDIR=$RPM_BUILD_ROOT | |
d61b9668 | 214 | |
1f3deafd | 215 | ln -sf ../../bin/gst $RPM_BUILD_ROOT%{_datadir}/smalltalk/gst |
865bbb4f | 216 | |
7fc444f0 JB |
217 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
218 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
38df49cb | 219 | |
35f29eea | 220 | # no static modules (*.la used by ltdl) |
7fc444f0 | 221 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/smalltalk/*.a |
35f29eea | 222 | |
b85013d1 | 223 | %clean |
224 | rm -rf $RPM_BUILD_ROOT | |
efb43e97 | 225 | |
38df49cb | 226 | %post |
994a6b77 | 227 | /sbin/ldconfig |
e8949881 | 228 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
38df49cb SZ |
229 | |
230 | %postun | |
994a6b77 | 231 | /sbin/ldconfig |
e8949881 | 232 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
38df49cb SZ |
233 | |
234 | %files | |
513ce3b2 | 235 | %defattr(644,root,root,755) |
8878c06a | 236 | %doc AUTHORS NEWS README THANKS |
994a6b77 | 237 | %attr(755,root,root) %{_bindir}/gst |
17dccebf | 238 | %attr(755,root,root) %{_bindir}/gst-blox |
bb5ff558 | 239 | %attr(755,root,root) %{_bindir}/gst-browser |
17dccebf JR |
240 | %attr(755,root,root) %{_bindir}/gst-convert |
241 | %attr(755,root,root) %{_bindir}/gst-doc | |
994a6b77 | 242 | %attr(755,root,root) %{_bindir}/gst-load |
bb5ff558 | 243 | %attr(755,root,root) %{_bindir}/gst-profile |
994a6b77 | 244 | %attr(755,root,root) %{_bindir}/gst-reload |
1f3deafd | 245 | %attr(755,root,root) %{_bindir}/gst-remote |
994a6b77 JB |
246 | %attr(755,root,root) %{_bindir}/gst-sunit |
247 | %attr(755,root,root) %{_libdir}/libgst.so.*.*.* | |
bb5ff558 | 248 | %attr(755,root,root) %ghost %{_libdir}/libgst.so.7 |
1f3deafd JR |
249 | %dir %{_libdir}/smalltalk |
250 | %{_libdir}/smalltalk/libc.la | |
251 | %attr(755,root,root) %{_libdir}/smalltalk/digest*.so | |
252 | %{_libdir}/smalltalk/digest.la | |
253 | %attr(755,root,root) %{_libdir}/smalltalk/i18n*.so | |
254 | %{_libdir}/smalltalk/i18n.la | |
255 | %attr(755,root,root) %{_libdir}/smalltalk/iconv*.so | |
256 | %{_libdir}/smalltalk/iconv.la | |
257 | %attr(755,root,root) %{_libdir}/smalltalk/zlib*.so | |
258 | %{_libdir}/smalltalk/zlib.la | |
7fc444f0 | 259 | %if "%{_libexecdir}" != "%{_libdir}" |
29134151 | 260 | %dir %{_libexecdir}/smalltalk |
7fc444f0 | 261 | %endif |
29134151 AM |
262 | %attr(755,root,root) %{_libexecdir}/smalltalk/gnutls-wrapper |
263 | %dir %{_libexecdir}/smalltalk/vfs | |
264 | %attr(755,root,root) %{_libexecdir}/smalltalk/vfs/* | |
1f3deafd | 265 | %{_datadir}/smalltalk |
7fc444f0 JB |
266 | %{_desktopdir}/smalltalk.desktop |
267 | %{_pixmapsdir}/smalltalk.png | |
268 | %{_infodir}/gst.info* | |
269 | %{_infodir}/gst-base.info* | |
270 | %{_infodir}/gst-libs.info* | |
994a6b77 | 271 | %{_mandir}/man1/gst.1* |
17dccebf JR |
272 | %{_mandir}/man1/gst-convert.1* |
273 | %{_mandir}/man1/gst-doc.1* | |
274 | %{_mandir}/man1/gst-load.1* | |
bb5ff558 | 275 | %{_mandir}/man1/gst-profile.1* |
1f3deafd | 276 | %{_mandir}/man1/gst-reload.1* |
17dccebf | 277 | %{_mandir}/man1/gst-sunit.1* |
1f3deafd JR |
278 | %dir /var/lib/smalltalk |
279 | /var/lib/smalltalk/gst.im | |
38df49cb SZ |
280 | |
281 | %files devel | |
513ce3b2 | 282 | %defattr(644,root,root,755) |
b85013d1 | 283 | %attr (755,root,root) %{_bindir}/gst-config |
284 | %attr (755,root,root) %{_bindir}/gst-package | |
994a6b77 JB |
285 | %attr(755,root,root) %{_libdir}/libgst.so |
286 | %{_libdir}/libgst.la | |
7fc444f0 JB |
287 | %{_includedir}/gst.h |
288 | %{_includedir}/gstpub.h | |
35f29eea | 289 | %{_aclocaldir}/gst.m4 |
17dccebf | 290 | %{_aclocaldir}/gst-package.m4 |
994a6b77 | 291 | %{_pkgconfigdir}/gnu-smalltalk.pc |
17dccebf JR |
292 | %{_mandir}/man1/gst-config.1* |
293 | %{_mandir}/man1/gst-package.1* | |
38df49cb SZ |
294 | |
295 | %files static | |
513ce3b2 | 296 | %defattr(644,root,root,755) |
994a6b77 | 297 | %{_libdir}/libgst.a |
35f29eea JB |
298 | |
299 | %files tk | |
300 | %defattr(644,root,root,755) | |
1f3deafd JR |
301 | %attr(755,root,root) %{_libdir}/smalltalk/blox-tk*.so |
302 | %{_libdir}/smalltalk/blox-tk.la | |
35f29eea | 303 | |
bb5ff558 JR |
304 | %files expat |
305 | %defattr(644,root,root,755) | |
306 | %attr(755,root,root) %{_libdir}/smalltalk/expat*.so | |
307 | %{_libdir}/smalltalk/expat.la | |
308 | ||
35f29eea JB |
309 | %files gdbm |
310 | %defattr(644,root,root,755) | |
1f3deafd JR |
311 | %attr(755,root,root) %{_libdir}/smalltalk/gdbm*.so |
312 | %{_libdir}/smalltalk/gdbm.la | |
35f29eea JB |
313 | |
314 | %files gtk | |
315 | %defattr(644,root,root,755) | |
1f3deafd JR |
316 | %attr(755,root,root) %{_libdir}/smalltalk/gst-gtk*.so |
317 | %{_libdir}/smalltalk/gst-gtk.la | |
17dccebf JR |
318 | |
319 | %files sqlite3 | |
320 | %defattr(644,root,root,755) | |
1f3deafd JR |
321 | %attr(755,root,root) %{_libdir}/smalltalk/dbd-sqlite3*.so |
322 | %{_libdir}/smalltalk/dbd-sqlite3.la | |
323 | ||
324 | %files sdl | |
325 | %defattr(644,root,root,755) | |
326 | %attr(755,root,root) %{_libdir}/smalltalk/sdl*.so | |
327 | %{_libdir}/smalltalk/sdl.la | |
328 | ||
329 | %files opengl | |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{_libdir}/smalltalk/gstglut*.so | |
332 | %{_libdir}/smalltalk/gstglut.la | |
333 | %attr(755,root,root) %{_libdir}/smalltalk/gstopengl*.so | |
334 | %{_libdir}/smalltalk/gstopengl.la |