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