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