]> git.pld-linux.org Git - packages/smalltalk.git/blob - smalltalk.spec
- "GTK+" unification (hope thats all)
[packages/smalltalk.git] / smalltalk.spec
1 Summary:        GNU smalltalk
2 Summary(pl):    GNU smalltalk
3 Name:           smalltalk
4 Version:        2.1.8
5 Release:        3
6 License:        GPL
7 Group:          Development/Languages
8 Source0:        ftp://ftp.gnu.org/pub/gnu/smalltalk/%{name}-%{version}.tar.gz
9 # Source0-md5:  dd55006e41c87ddbf90f7cd2166b290b
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
12 Patch0:         %{name}-info.patch
13 Patch1:         %{name}-PACKAGE.patch
14 Patch2:         %{name}-nolibs.patch
15 Patch3:         %{name}-aligned.patch
16 Patch4:         %{name}-proc.patch
17 Patch5:         %{name}-alloc.patch
18 Patch6:         %{name}-amd64.patch
19 Icon:           smalltalk.xpm
20 URL:            http://www.gnu.org/software/smalltalk/
21 BuildRequires:  atk-devel >= 1.0.0
22 BuildRequires:  autoconf >= 2.52
23 BuildRequires:  automake
24 BuildRequires:  gawk
25 BuildRequires:  gdbm-devel
26 BuildRequires:  glib2-devel >= 2.0.0
27 BuildRequires:  gtk+2-devel >= 2.0.0
28 BuildRequires:  libltdl-devel
29 BuildRequires:  libtool >= 2:1.5
30 BuildRequires:  ncurses-devel >= 5.0
31 BuildRequires:  pango-devel >= 1:1.0.0
32 BuildRequires:  pkgconfig
33 BuildRequires:  readline-devel >= 4.2
34 BuildRequires:  tk-devel >= 8.4
35 #BuildRequires: xemacs
36 # 2.1.x versions won't work correctly on amd64 and alpha (on amd64 crashes
37 # even on build time) because of calling convention (no registers support)
38 # it should be fixed in devel (2.1e) version (but alloc,amd64 patches seem
39 # still needed there)
40 ExcludeArch:    alpha amd64
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 GNU Smalltalk is a Free (or Open Source) implementation that closely
45 follows the Smalltalk-80 language as described in the book
46 Smalltalk-80: the Language and its Implementation by Adele Goldberg
47 and David Robson. GNUSmalltalk runs on most versions of Unix or Unix
48 like systems (GNU/Linux, FreeBSD, etc...). There is even a version for
49 commercial operating systems like MS-NT.
50
51 %description -l pl
52 GNU Smalltalk jest Woln± (lub Open Source) implementacj± tak blisk±
53 jêzykowi Smalltalk-80 jak to jest opisane w ksi±¿ce Smalltalk-80: the
54 Language and its Implementation napisanej przez Adele Goldberg oraz
55 David Robson. GNUSmalltalk dzia³a na wiêkszo¶ci wersji Unix'ów lub
56 systemów Unixo-podobnych (GNU/Linux, FreeBSD, etc...). Jest nawet
57 wersja dla systemów komercyjnych, takich jak M$-NT.
58
59 %package devel
60 Summary:        GNU SmallTalk header files
61 Summary(pl):    Pliki nag³ówkowe dla GNU SmallTalka
62 Group:          Development/Libraries
63 Requires:       %{name} = %{version}-%{release}
64
65 %description devel
66 The GNU SmallTalk header files.
67
68 %description devel -l pl
69 Pliki nag³ówkowe dla GNU SmallTalka.
70
71 %package static
72 Summary:        Static libraries for GNU Smalltalk
73 Summary(pl):    Biblioteki statyczne dla GNU Smalltalka
74 Group:          Development/Libraries
75 Requires:       %{name}-devel = %{version}-%{release}
76 # to be moved to -devel if shared libgst exists
77 Requires:       gmp-devel
78 Requires:       readline-devel
79
80 %description static
81 The GNU SmallTalk static libraries.
82
83 %description static -l pl
84 Biblioteki statyczne dla GNU SmallTalka.
85
86 %package tk
87 Summary:        blox-tk module for GNU Smalltalk
88 Summary(pl):    Modu³ blox-tk dla GNU Smalltalka
89 Group:          Libraries
90 Requires:       %{name} = %{version}-%{release}
91
92 %description tk
93 blox-tk module for GNU Smalltalk.
94
95 %description tk -l pl
96 Modu³ blox-tk dla GNU Smalltalka.
97
98 %package gdbm
99 Summary:        GDBM module for GNU Smalltalk
100 Summary(pl):    Modu³ GDBM dla GNU Smalltalka
101 Group:          Libraries
102 Requires:       %{name} = %{version}-%{release}
103
104 %description gdbm
105 GDBM module for GNU Smalltalk.
106
107 %description gdbm -l pl
108 Modu³ GDBM dla GNU Smalltalka.
109
110 %package gtk
111 Summary:        GTK+ module for GNU Smalltalk
112 Summary(pl):    Modu³ GTK+ dla GNU Smalltalka
113 Group:          Libraries
114 Requires:       %{name} = %{version}-%{release}
115
116 %description gtk
117 GTK+ module for GNU Smalltalk.
118
119 %description gtk -l pl
120 Modu³ GTK+ dla GNU Smalltalka.
121
122 %prep
123 %setup -q
124 %patch0 -p1
125 %patch1 -p1
126 %patch2 -p1 
127 %patch3 -p1 
128 %patch4 -p1 
129 %patch5 -p1 
130 %patch6 -p1 
131
132 cp -f %{_aclocaldir}/libtool.m4 config
133
134 %build
135 cd sigsegv
136 %{__aclocal} -I ../config
137 %{__autoconf}
138 %{__autoheader}
139 %{__automake}
140 cd ../snprintfv
141 %{__aclocal} -I ../config
142 %{__autoconf}
143 %{__autoheader}
144 # intentionally no automake here
145 cd ..
146 %{__libtoolize}
147 %{__aclocal} -I snprintfv -I config
148 %{__autoconf}
149 %{__automake}
150 %configure \
151         AWK=gawk
152
153 # gtk things are generated improperly when some locale are set
154 %{__make} \
155         LC_ALL=C
156
157 %install
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
160
161 %{__make} install \
162         DESTDIR=$RPM_BUILD_ROOT
163
164 ln -sf ../../bin/gst $RPM_BUILD_ROOT%{_datadir}/gnu-smalltalk/gst
165
166 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
167 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
168
169 # no static modules (*.la used by ltdl)
170 rm -f $RPM_BUILD_ROOT%{_libdir}/gnu-smalltalk/*.a
171 # doesn't belong here
172 rm -rf $RPM_BUILD_ROOT{%{_aclocaldir}/snprintfv.m4,%{_includedir}/snprintfv}
173
174 %clean
175 rm -rf $RPM_BUILD_ROOT
176
177 %post
178 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
179
180 %postun
181 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
182
183 %files
184 %defattr(644,root,root,755)
185 %doc AUTHORS NEWS README THANKS
186 %attr (755,root,root) %{_bindir}/gst
187 %dir %{_libdir}/gnu-smalltalk
188 %{_libdir}/gnu-smalltalk/libc.la
189 %attr (755,root,root) %{_libdir}/gnu-smalltalk/i18n*.so
190 %{_libdir}/gnu-smalltalk/i18n.la
191 %attr (755,root,root) %{_libdir}/gnu-smalltalk/md5*.so
192 %{_libdir}/gnu-smalltalk/md5.la
193 %attr (755,root,root) %{_libdir}/gnu-smalltalk/regex*.so
194 %{_libdir}/gnu-smalltalk/regex.la
195 %attr (755,root,root) %{_libdir}/gnu-smalltalk/tcp*.so
196 %{_libdir}/gnu-smalltalk/tcp.la
197 %{_datadir}/gnu-smalltalk
198 %{_infodir}/gst*
199 %{_mandir}/man1/*
200 %{_desktopdir}/*
201 %{_pixmapsdir}/*
202
203 %files devel
204 %defattr(644,root,root,755)
205 %attr (755,root,root) %{_bindir}/gst-config
206 %attr (755,root,root) %{_bindir}/gst-package
207 %{_includedir}/*.h
208 %{_aclocaldir}/gst.m4
209
210 %files static
211 %defattr(644,root,root,755)
212 %{_libdir}/lib*.a
213 # no shared lib, so it's here... to be moved to -devel if shared exists
214 %{_libdir}/lib*.la
215
216 %files tk
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/gnu-smalltalk/blox-tk*.so
219 %{_libdir}/gnu-smalltalk/blox-tk.la
220
221 %files gdbm
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/gnu-smalltalk/gdbm*.so
224 %{_libdir}/gnu-smalltalk/gdbm.la
225
226 %files gtk
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/gnu-smalltalk/gst-gtk*.so
229 %{_libdir}/gnu-smalltalk/gst-gtk.la
This page took 0.043369 seconds and 4 git commands to generate.