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