]>
Commit | Line | Data |
---|---|---|
13c24e40 JR |
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 | |
81dbd131 | 6 | # - package emacs stuff |
13c24e40 | 7 | # |
ae0be00c | 8 | Summary: GNU smalltalk |
eadb5e7f | 9 | Summary(pl.UTF-8): GNU smalltalk |
38df49cb | 10 | Name: smalltalk |
bb5ff558 JR |
11 | Version: 3.2.5 |
12 | Release: 1 | |
513ce3b2 | 13 | License: GPL |
38df49cb | 14 | Group: Development/Languages |
bb5ff558 JR |
15 | Source0: ftp://ftp.gnu.org/pub/gnu/smalltalk/%{name}-%{version}.tar.xz |
16 | # Source0-md5: 772d2ac09f96dda203d49f0b80bc58f3 | |
b85013d1 | 17 | Source1: %{name}.desktop |
18 | Source2: %{name}.png | |
1f3deafd | 19 | Patch0: %{name}-proc.patch |
a040480f | 20 | URL: http://smalltalk.gnu.org/ |
1f3deafd | 21 | BuildRequires: OpenGL-devel |
5e6a3169 | 22 | BuildRequires: OpenGL-glut-devel |
1f3deafd | 23 | BuildRequires: SDL-devel |
64d1da21 | 24 | BuildRequires: atk-devel >= 1.0.0 |
35f29eea | 25 | BuildRequires: autoconf >= 2.52 |
8878c06a | 26 | BuildRequires: automake |
bb5ff558 | 27 | BuildRequires: expat-devel |
64d1da21 JB |
28 | BuildRequires: gawk |
29 | BuildRequires: gdbm-devel | |
30 | BuildRequires: glib2-devel >= 2.0.0 | |
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 |
1f3deafd | 35 | BuildRequires: libsigsegv |
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 |
afc15661 | 43 | BuildRequires: texinfo |
35f29eea | 44 | BuildRequires: tk-devel >= 8.4 |
994a6b77 | 45 | Requires(post,postun): /sbin/ldconfig |
b1f9d944 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d61b9668 | 47 | |
38df49cb | 48 | %description |
b85013d1 | 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. | |
38df49cb | 55 | |
f47a83a7 JR |
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 | |
41cf5c01 | 59 | Language and its Implementation napisanej przez Adele Goldberg oraz |
f47a83a7 JR |
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. | |
38df49cb SZ |
63 | |
64 | %package devel | |
65 | Summary: GNU SmallTalk header files | |
eadb5e7f | 66 | Summary(pl.UTF-8): Pliki nagłówkowe dla GNU SmallTalka |
35f29eea JB |
67 | Group: Development/Libraries |
68 | Requires: %{name} = %{version}-%{release} | |
17dccebf JR |
69 | Requires: gmp-devel |
70 | Requires: readline-devel | |
38df49cb SZ |
71 | |
72 | %description devel | |
73 | The GNU SmallTalk header files. | |
74 | ||
f47a83a7 JR |
75 | %description devel -l pl.UTF-8 |
76 | Pliki nagłówkowe dla GNU SmallTalka. | |
38df49cb SZ |
77 | |
78 | %package static | |
79 | Summary: Static libraries for GNU Smalltalk | |
eadb5e7f | 80 | Summary(pl.UTF-8): Biblioteki statyczne dla GNU Smalltalka |
35f29eea JB |
81 | Group: Development/Libraries |
82 | Requires: %{name}-devel = %{version}-%{release} | |
38df49cb SZ |
83 | |
84 | %description static | |
85 | The GNU SmallTalk static libraries. | |
86 | ||
f47a83a7 | 87 | %description static -l pl.UTF-8 |
865bbb4f | 88 | Biblioteki statyczne dla GNU SmallTalka. |
38df49cb | 89 | |
35f29eea JB |
90 | %package tk |
91 | Summary: blox-tk module for GNU Smalltalk | |
eadb5e7f | 92 | Summary(pl.UTF-8): Moduł blox-tk dla GNU Smalltalka |
35f29eea JB |
93 | Group: Libraries |
94 | Requires: %{name} = %{version}-%{release} | |
95 | ||
96 | %description tk | |
97 | blox-tk module for GNU Smalltalk. | |
98 | ||
f47a83a7 JR |
99 | %description tk -l pl.UTF-8 |
100 | Moduł blox-tk dla GNU Smalltalka. | |
35f29eea | 101 | |
bb5ff558 JR |
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 | ||
35f29eea JB |
114 | %package gdbm |
115 | Summary: GDBM module for GNU Smalltalk | |
eadb5e7f | 116 | Summary(pl.UTF-8): Moduł GDBM dla GNU Smalltalka |
35f29eea JB |
117 | Group: Libraries |
118 | Requires: %{name} = %{version}-%{release} | |
119 | ||
120 | %description gdbm | |
121 | GDBM module for GNU Smalltalk. | |
122 | ||
f47a83a7 JR |
123 | %description gdbm -l pl.UTF-8 |
124 | Moduł GDBM dla GNU Smalltalka. | |
35f29eea JB |
125 | |
126 | %package gtk | |
276b58b4 | 127 | Summary: GTK+ module for GNU Smalltalk |
eadb5e7f | 128 | Summary(pl.UTF-8): Moduł GTK+ dla GNU Smalltalka |
35f29eea JB |
129 | Group: Libraries |
130 | Requires: %{name} = %{version}-%{release} | |
131 | ||
132 | %description gtk | |
276b58b4 | 133 | GTK+ module for GNU Smalltalk. |
35f29eea | 134 | |
f47a83a7 JR |
135 | %description gtk -l pl.UTF-8 |
136 | Moduł GTK+ dla GNU Smalltalka. | |
35f29eea | 137 | |
17dccebf JR |
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 | ||
1f3deafd JR |
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 | |
39465728 | 163 | Summary: OpenGL module for GNU Smalltalk |
1f3deafd JR |
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 | ||
38df49cb SZ |
174 | %prep |
175 | %setup -q | |
35f29eea | 176 | %patch0 -p1 |
69ff8d2c | 177 | |
38df49cb | 178 | %build |
64d1da21 | 179 | %configure \ |
e0bc8c26 | 180 | --with-imagedir=/var/lib/smalltalk \ |
17dccebf JR |
181 | --enable-gtk=yes \ |
182 | --enable-disassembler \ | |
1f3deafd | 183 | --enable-preemption \ |
299061e2 | 184 | --with-system-libffi \ |
3c56d9c4 | 185 | --with-system-libsigsegv \ |
81dbd131 | 186 | --without-emacs \ |
69ff8d2c | 187 | AWK=gawk |
c5e9608b | 188 | |
69ff8d2c JB |
189 | # gtk things are generated improperly when some locale are set |
190 | %{__make} \ | |
bb5ff558 | 191 | LIBTHREAD="-lpthread" \ |
69ff8d2c | 192 | LC_ALL=C |
38df49cb | 193 | |
38df49cb SZ |
194 | %install |
195 | rm -rf $RPM_BUILD_ROOT | |
51ac8a12 | 196 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
d61b9668 | 197 | |
64d1da21 JB |
198 | %{__make} install \ |
199 | DESTDIR=$RPM_BUILD_ROOT | |
d61b9668 | 200 | |
1f3deafd | 201 | ln -sf ../../bin/gst $RPM_BUILD_ROOT%{_datadir}/smalltalk/gst |
865bbb4f | 202 | |
51ac8a12 | 203 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
b85013d1 | 204 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
38df49cb | 205 | |
35f29eea | 206 | # no static modules (*.la used by ltdl) |
1f3deafd | 207 | rm -f $RPM_BUILD_ROOT%{_libdir}/smalltalk/*.a |
35f29eea JB |
208 | # doesn't belong here |
209 | rm -rf $RPM_BUILD_ROOT{%{_aclocaldir}/snprintfv.m4,%{_includedir}/snprintfv} | |
210 | ||
b85013d1 | 211 | %clean |
212 | rm -rf $RPM_BUILD_ROOT | |
efb43e97 | 213 | |
38df49cb | 214 | %post |
994a6b77 | 215 | /sbin/ldconfig |
e8949881 | 216 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
38df49cb SZ |
217 | |
218 | %postun | |
994a6b77 | 219 | /sbin/ldconfig |
e8949881 | 220 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
38df49cb SZ |
221 | |
222 | %files | |
513ce3b2 | 223 | %defattr(644,root,root,755) |
8878c06a | 224 | %doc AUTHORS NEWS README THANKS |
994a6b77 | 225 | %attr(755,root,root) %{_bindir}/gst |
17dccebf | 226 | %attr(755,root,root) %{_bindir}/gst-blox |
bb5ff558 | 227 | %attr(755,root,root) %{_bindir}/gst-browser |
17dccebf JR |
228 | %attr(755,root,root) %{_bindir}/gst-convert |
229 | %attr(755,root,root) %{_bindir}/gst-doc | |
994a6b77 | 230 | %attr(755,root,root) %{_bindir}/gst-load |
bb5ff558 | 231 | %attr(755,root,root) %{_bindir}/gst-profile |
994a6b77 | 232 | %attr(755,root,root) %{_bindir}/gst-reload |
1f3deafd | 233 | %attr(755,root,root) %{_bindir}/gst-remote |
994a6b77 JB |
234 | %attr(755,root,root) %{_bindir}/gst-sunit |
235 | %attr(755,root,root) %{_libdir}/libgst.so.*.*.* | |
bb5ff558 | 236 | %attr(755,root,root) %ghost %{_libdir}/libgst.so.7 |
1f3deafd JR |
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 | |
bb5ff558 | 242 | %attr(755,root,root) %{_libdir}/smalltalk/gnutls-wrapper |
1f3deafd JR |
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 | |
7c9215d3 | 248 | %dir %{_libdir}/smalltalk/vfs |
1f3deafd JR |
249 | %attr(755,root,root) %{_libdir}/smalltalk/vfs/* |
250 | %{_datadir}/smalltalk | |
e5a6e0e0 | 251 | %{_infodir}/gst* |
994a6b77 | 252 | %{_mandir}/man1/gst.1* |
17dccebf JR |
253 | %{_mandir}/man1/gst-convert.1* |
254 | %{_mandir}/man1/gst-doc.1* | |
255 | %{_mandir}/man1/gst-load.1* | |
bb5ff558 | 256 | %{_mandir}/man1/gst-profile.1* |
1f3deafd | 257 | %{_mandir}/man1/gst-reload.1* |
17dccebf | 258 | %{_mandir}/man1/gst-sunit.1* |
5ebdfcaf | 259 | %{_desktopdir}/*.desktop |
8878c06a | 260 | %{_pixmapsdir}/* |
1f3deafd JR |
261 | %dir /var/lib/smalltalk |
262 | /var/lib/smalltalk/gst.im | |
38df49cb SZ |
263 | |
264 | %files devel | |
513ce3b2 | 265 | %defattr(644,root,root,755) |
b85013d1 | 266 | %attr (755,root,root) %{_bindir}/gst-config |
267 | %attr (755,root,root) %{_bindir}/gst-package | |
994a6b77 JB |
268 | %attr(755,root,root) %{_libdir}/libgst.so |
269 | %{_libdir}/libgst.la | |
35f29eea JB |
270 | %{_includedir}/*.h |
271 | %{_aclocaldir}/gst.m4 | |
17dccebf | 272 | %{_aclocaldir}/gst-package.m4 |
994a6b77 | 273 | %{_pkgconfigdir}/gnu-smalltalk.pc |
17dccebf JR |
274 | %{_mandir}/man1/gst-config.1* |
275 | %{_mandir}/man1/gst-package.1* | |
38df49cb SZ |
276 | |
277 | %files static | |
513ce3b2 | 278 | %defattr(644,root,root,755) |
994a6b77 | 279 | %{_libdir}/libgst.a |
35f29eea JB |
280 | |
281 | %files tk | |
282 | %defattr(644,root,root,755) | |
1f3deafd JR |
283 | %attr(755,root,root) %{_libdir}/smalltalk/blox-tk*.so |
284 | %{_libdir}/smalltalk/blox-tk.la | |
35f29eea | 285 | |
bb5ff558 JR |
286 | %files expat |
287 | %defattr(644,root,root,755) | |
288 | %attr(755,root,root) %{_libdir}/smalltalk/expat*.so | |
289 | %{_libdir}/smalltalk/expat.la | |
290 | ||
35f29eea JB |
291 | %files gdbm |
292 | %defattr(644,root,root,755) | |
1f3deafd JR |
293 | %attr(755,root,root) %{_libdir}/smalltalk/gdbm*.so |
294 | %{_libdir}/smalltalk/gdbm.la | |
35f29eea JB |
295 | |
296 | %files gtk | |
297 | %defattr(644,root,root,755) | |
1f3deafd JR |
298 | %attr(755,root,root) %{_libdir}/smalltalk/gst-gtk*.so |
299 | %{_libdir}/smalltalk/gst-gtk.la | |
17dccebf JR |
300 | |
301 | %files sqlite3 | |
302 | %defattr(644,root,root,755) | |
1f3deafd JR |
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 |