]> git.pld-linux.org Git - packages/smalltalk.git/blob - smalltalk.spec
- new readline, 5.0
[packages/smalltalk.git] / smalltalk.spec
1 Summary:        GNU smalltalk
2 Summary(pl):    GNU smalltalk
3 Name:           smalltalk
4 Version:        2.1.11
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:  169473d38c0ef86dc2ce40d785046840
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}-proc.patch
16 Patch4:         %{name}-amd64.patch
17 Icon:           smalltalk.xpm
18 URL:            http://www.gnu.org/software/smalltalk/
19 BuildRequires:  atk-devel >= 1.0.0
20 BuildRequires:  autoconf >= 2.52
21 BuildRequires:  automake
22 BuildRequires:  gawk
23 BuildRequires:  gdbm-devel
24 BuildRequires:  glib2-devel >= 2.0.0
25 BuildRequires:  gtk+2-devel >= 1:2.0.0
26 BuildRequires:  libltdl-devel
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:  rpmbuild(macros) >= 1.213
33 BuildRequires:  texinfo
34 BuildRequires:  tk-devel >= 8.4
35 #BuildRequires: xemacs
36 # 2.1.x versions won't work correctly on x86_64 and alpha (on x86_64 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:    %{x8664} alpha
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 uniksopodobnych (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 # why patch to excluded architecture?
129 # %patch4 -p1 
130
131 cp -f %{_aclocaldir}/libtool.m4 config
132
133 %build
134 cd sigsegv
135 %{__aclocal} -I ../config
136 %{__autoconf}
137 %{__autoheader}
138 %{__automake}
139 cd ../snprintfv
140 %{__aclocal} -I ../config
141 %{__autoconf}
142 %{__autoheader}
143 # intentionally no automake here
144 cd ..
145 %{__libtoolize}
146 %{__aclocal} -I snprintfv -I config
147 %{__autoconf}
148 %{__automake}
149 %configure \
150         AWK=gawk
151
152 # gtk things are generated improperly when some locale are set
153 %{__make} \
154         LC_ALL=C
155
156 %install
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
159
160 %{__make} install \
161         DESTDIR=$RPM_BUILD_ROOT
162
163 ln -sf ../../bin/gst $RPM_BUILD_ROOT%{_datadir}/gnu-smalltalk/gst
164
165 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
166 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
167
168 # no static modules (*.la used by ltdl)
169 rm -f $RPM_BUILD_ROOT%{_libdir}/gnu-smalltalk/*.a
170 # doesn't belong here
171 rm -rf $RPM_BUILD_ROOT{%{_aclocaldir}/snprintfv.m4,%{_includedir}/snprintfv}
172
173 %clean
174 rm -rf $RPM_BUILD_ROOT
175
176 %post
177 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
178
179 %postun
180 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
181
182 %files
183 %defattr(644,root,root,755)
184 %doc AUTHORS NEWS README THANKS
185 %attr (755,root,root) %{_bindir}/gst
186 %dir %{_libdir}/gnu-smalltalk
187 %{_libdir}/gnu-smalltalk/libc.la
188 %attr (755,root,root) %{_libdir}/gnu-smalltalk/i18n*.so
189 %{_libdir}/gnu-smalltalk/i18n.la
190 %attr (755,root,root) %{_libdir}/gnu-smalltalk/md5*.so
191 %{_libdir}/gnu-smalltalk/md5.la
192 %attr (755,root,root) %{_libdir}/gnu-smalltalk/regex*.so
193 %{_libdir}/gnu-smalltalk/regex.la
194 %attr (755,root,root) %{_libdir}/gnu-smalltalk/tcp*.so
195 %{_libdir}/gnu-smalltalk/tcp.la
196 %{_datadir}/gnu-smalltalk
197 %{_infodir}/gst*
198 %{_mandir}/man1/*
199 %{_desktopdir}/*
200 %{_pixmapsdir}/*
201
202 %files devel
203 %defattr(644,root,root,755)
204 %attr (755,root,root) %{_bindir}/gst-config
205 %attr (755,root,root) %{_bindir}/gst-package
206 %{_includedir}/*.h
207 %{_aclocaldir}/gst.m4
208
209 %files static
210 %defattr(644,root,root,755)
211 %{_libdir}/lib*.a
212 # no shared lib, so it's here... to be moved to -devel if shared exists
213 %{_libdir}/lib*.la
214
215 %files tk
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/gnu-smalltalk/blox-tk*.so
218 %{_libdir}/gnu-smalltalk/blox-tk.la
219
220 %files gdbm
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/gnu-smalltalk/gdbm*.so
223 %{_libdir}/gnu-smalltalk/gdbm.la
224
225 %files gtk
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/gnu-smalltalk/gst-gtk*.so
228 %{_libdir}/gnu-smalltalk/gst-gtk.la
This page took 1.295673 seconds and 4 git commands to generate.