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