]> git.pld-linux.org Git - packages/smalltalk.git/blob - smalltalk.spec
- converted to UTF-8
[packages/smalltalk.git] / smalltalk.spec
1 Summary:        GNU smalltalk
2 Summary(pl.UTF-8):   GNU smalltalk
3 Name:           smalltalk
4 Version:        2.2
5 Release:        1
6 License:        GPL
7 Group:          Development/Languages
8 Source0:        ftp://ftp.gnu.org/pub/gnu/smalltalk/%{name}-%{version}.tar.gz
9 # Source0-md5:  f092bb42f6cf52b429dba8640f8bf810
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 Patch5:         %{name}-nostatic.patch
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 Requires(post,postun):  /sbin/ldconfig
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 GNU Smalltalk is a Free (or Open Source) implementation that closely
41 follows the Smalltalk-80 language as described in the book
42 Smalltalk-80: the Language and its Implementation by Adele Goldberg
43 and David Robson. GNUSmalltalk runs on most versions of Unix or Unix
44 like systems (GNU/Linux, FreeBSD, etc...). There is even a version for
45 commercial operating systems like MS-NT.
46
47 %description -l pl.UTF-8
48 GNU Smalltalk jest Wolną (lub Open Source) implementacją tak bliską
49 językowi Smalltalk-80 jak to jest opisane w książce Smalltalk-80: the
50 Language and its Implementation napisanej przez Adele Goldberg oraz
51 David Robson. GNUSmalltalk działa na większości wersji Unix'ów lub
52 systemów uniksopodobnych (GNU/Linux, FreeBSD, etc...). Jest nawet
53 wersja dla systemów komercyjnych, takich jak M$-NT.
54
55 %package devel
56 Summary:        GNU SmallTalk header files
57 Summary(pl.UTF-8):   Pliki nagłówkowe dla GNU SmallTalka
58 Group:          Development/Libraries
59 Requires:       %{name} = %{version}-%{release}
60
61 %description devel
62 The GNU SmallTalk header files.
63
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe dla GNU SmallTalka.
66
67 %package static
68 Summary:        Static libraries for GNU Smalltalk
69 Summary(pl.UTF-8):   Biblioteki statyczne dla GNU Smalltalka
70 Group:          Development/Libraries
71 Requires:       %{name}-devel = %{version}-%{release}
72 # to be moved to -devel if shared libgst exists
73 Requires:       gmp-devel
74 Requires:       readline-devel
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 %prep
119 %setup -q
120 %patch0 -p1
121 %patch1 -p1
122 %patch2 -p1 
123 %patch3 -p1 
124 #%patch4 -p1  not needed?
125 %patch5 -p1 
126
127 rm -f config/libtool.m4
128
129 %build
130 cd libffi
131 %{__aclocal} -I ../config
132 %{__autoconf}
133 %{__autoheader}
134 %{__automake}
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 /sbin/ldconfig
179 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
180
181 %postun
182 /sbin/ldconfig
183 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
184
185 %files
186 %defattr(644,root,root,755)
187 %doc AUTHORS NEWS README THANKS
188 %attr(755,root,root) %{_bindir}/gst
189 %attr(755,root,root) %{_bindir}/gst-load
190 %attr(755,root,root) %{_bindir}/gst-reload
191 %attr(755,root,root) %{_bindir}/gst-sunit
192 %attr(755,root,root) %{_libdir}/libgst.so.*.*.*
193 %dir %{_libdir}/gnu-smalltalk
194 %{_libdir}/gnu-smalltalk/libc.la
195 %attr(755,root,root) %{_libdir}/gnu-smalltalk/i18n*.so
196 %{_libdir}/gnu-smalltalk/i18n.la
197 %attr(755,root,root) %{_libdir}/gnu-smalltalk/md5*.so
198 %{_libdir}/gnu-smalltalk/md5.la
199 %attr(755,root,root) %{_libdir}/gnu-smalltalk/regex*.so
200 %{_libdir}/gnu-smalltalk/regex.la
201 %attr(755,root,root) %{_libdir}/gnu-smalltalk/tcp*.so
202 %{_libdir}/gnu-smalltalk/tcp.la
203 %{_datadir}/gnu-smalltalk
204 %{_infodir}/gst*
205 %{_mandir}/man1/gst.1*
206 %{_desktopdir}/*.desktop
207 %{_pixmapsdir}/*
208
209 %files devel
210 %defattr(644,root,root,755)
211 %attr (755,root,root) %{_bindir}/gst-config
212 %attr (755,root,root) %{_bindir}/gst-package
213 %attr(755,root,root) %{_libdir}/libgst.so
214 %{_libdir}/libgst.la
215 %{_includedir}/*.h
216 %{_aclocaldir}/gst.m4
217 %{_pkgconfigdir}/gnu-smalltalk.pc
218
219 %files static
220 %defattr(644,root,root,755)
221 %{_libdir}/libgst.a
222
223 %files tk
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/gnu-smalltalk/blox-tk*.so
226 %{_libdir}/gnu-smalltalk/blox-tk.la
227
228 %files gdbm
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_libdir}/gnu-smalltalk/gdbm*.so
231 %{_libdir}/gnu-smalltalk/gdbm.la
232
233 %files gtk
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_libdir}/gnu-smalltalk/gst-gtk*.so
236 %{_libdir}/gnu-smalltalk/gst-gtk.la
This page took 0.080836 seconds and 4 git commands to generate.