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