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