]> git.pld-linux.org Git - packages/smalltalk.git/blob - smalltalk.spec
- rel 2
[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:        2
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:  SDL-devel
16 BuildRequires:  atk-devel >= 1.0.0
17 BuildRequires:  autoconf >= 2.52
18 BuildRequires:  automake
19 BuildRequires:  gawk
20 BuildRequires:  gdbm-devel
21 BuildRequires:  glib2-devel >= 2.0.0
22 BuildRequires:  glut-devel
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 %configure \
160         --enable-gtk=yes \
161         --enable-disassembler \
162         --enable-preemption \
163         --with-system-libffi \
164         --with-system-libsigsegv \
165         AWK=gawk
166
167 # gtk things are generated improperly when some locale are set
168 %{__make} \
169         LC_ALL=C
170
171 %install
172 rm -rf $RPM_BUILD_ROOT
173 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
174
175 %{__make} install \
176         DESTDIR=$RPM_BUILD_ROOT
177
178 ln -sf ../../bin/gst $RPM_BUILD_ROOT%{_datadir}/smalltalk/gst
179
180 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
181 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
182
183 # no static modules (*.la used by ltdl)
184 rm -f $RPM_BUILD_ROOT%{_libdir}/smalltalk/*.a
185 # doesn't belong here
186 rm -rf $RPM_BUILD_ROOT{%{_aclocaldir}/snprintfv.m4,%{_includedir}/snprintfv}
187
188 %clean
189 rm -rf $RPM_BUILD_ROOT
190
191 %post
192 /sbin/ldconfig
193 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
194
195 %postun
196 /sbin/ldconfig
197 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
198
199 %files
200 %defattr(644,root,root,755)
201 %doc AUTHORS NEWS README THANKS
202 %attr(755,root,root) %{_bindir}/gst
203 %attr(755,root,root) %{_bindir}/gst-blox
204 %attr(755,root,root) %{_bindir}/gst-convert
205 %attr(755,root,root) %{_bindir}/gst-doc
206 %attr(755,root,root) %{_bindir}/gst-load
207 %attr(755,root,root) %{_bindir}/gst-reload
208 %attr(755,root,root) %{_bindir}/gst-remote
209 %attr(755,root,root) %{_bindir}/gst-sunit
210 %attr(755,root,root) %{_libdir}/libgst.so.*.*.*
211 %dir %{_libdir}/smalltalk
212 %{_libdir}/smalltalk/libc.la
213 %attr(755,root,root) %{_libdir}/smalltalk/digest*.so
214 %{_libdir}/smalltalk/digest.la
215 %attr(755,root,root) %{_libdir}/smalltalk/i18n*.so
216 %{_libdir}/smalltalk/i18n.la
217 %attr(755,root,root) %{_libdir}/smalltalk/iconv*.so
218 %{_libdir}/smalltalk/iconv.la
219 %attr(755,root,root) %{_libdir}/smalltalk/zlib*.so
220 %{_libdir}/smalltalk/zlib.la
221 %attr(755,root,root) %{_libdir}/smalltalk/sockets*.so
222 %{_libdir}/smalltalk/sockets.la
223 %attr(755,root,root) %{_libdir}/smalltalk/vfs/*
224 %{_datadir}/smalltalk
225 %{_infodir}/gst*
226 %{_mandir}/man1/gst.1*
227 %{_mandir}/man1/gst-convert.1*
228 %{_mandir}/man1/gst-doc.1*
229 %{_mandir}/man1/gst-load.1*
230 %{_mandir}/man1/gst-reload.1*
231 %{_mandir}/man1/gst-sunit.1*
232 %{_desktopdir}/*.desktop
233 %{_pixmapsdir}/*
234 %dir /var/lib/smalltalk
235 /var/lib/smalltalk/gst.im
236
237 %files devel
238 %defattr(644,root,root,755)
239 %attr (755,root,root) %{_bindir}/gst-config
240 %attr (755,root,root) %{_bindir}/gst-package
241 %attr(755,root,root) %{_libdir}/libgst.so
242 %{_libdir}/libgst.la
243 %{_includedir}/*.h
244 %{_aclocaldir}/gst.m4
245 %{_aclocaldir}/gst-package.m4
246 %{_pkgconfigdir}/gnu-smalltalk.pc
247 %{_mandir}/man1/gst-config.1*
248 %{_mandir}/man1/gst-package.1*
249
250 %files static
251 %defattr(644,root,root,755)
252 %{_libdir}/libgst.a
253
254 %files tk
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{_libdir}/smalltalk/blox-tk*.so
257 %{_libdir}/smalltalk/blox-tk.la
258
259 %files gdbm
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_libdir}/smalltalk/gdbm*.so
262 %{_libdir}/smalltalk/gdbm.la
263
264 %files gtk
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/smalltalk/gst-gtk*.so
267 %{_libdir}/smalltalk/gst-gtk.la
268
269 %files sqlite3
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_libdir}/smalltalk/dbd-sqlite3*.so
272 %{_libdir}/smalltalk/dbd-sqlite3.la
273
274 %files sdl
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_libdir}/smalltalk/sdl*.so
277 %{_libdir}/smalltalk/sdl.la
278
279 %files opengl
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_libdir}/smalltalk/gstglut*.so
282 %{_libdir}/smalltalk/gstglut.la
283 %attr(755,root,root) %{_libdir}/smalltalk/gstopengl*.so
284 %{_libdir}/smalltalk/gstopengl.la
This page took 0.12595 seconds and 3 git commands to generate.