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