9397
|
1 |
#
|
|
2 |
# spec file for package gcalctool
|
|
3 |
#
|
11476
|
4 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
9397
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner laca
|
9397
|
9 |
#
|
16426
|
10 |
|
|
11 |
%define OSR gnome.org:0
|
|
12 |
|
9397
|
13 |
%include l10n.inc
|
|
14 |
Name: gcalctool
|
|
15 |
License: GPL
|
|
16 |
Group: System/GUI/GNOME
|
16400
|
17 |
Version: 5.27.91
|
9397
|
18 |
Release: 1
|
|
19 |
Distribution: Java Desktop System
|
|
20 |
Vendor: Sun Microsystems, Inc.
|
|
21 |
Summary: GNOME Calculator
|
16155
|
22 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/5.27/%{name}-%{version}.tar.bz2
|
9400
|
23 |
Source1: %{name}-po-sun-%{po_sun_version}.tar.bz2
|
12031
|
24 |
%if %build_l10n
|
|
25 |
Source2: l10n-configure.sh
|
|
26 |
%endif
|
9397
|
27 |
URL: http://www.gnome.org
|
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
29 |
Docdir: %{_defaultdocdir}/%{name}
|
|
30 |
Autoreqprov: on
|
|
31 |
|
|
32 |
%define glib2_version 2.6.0
|
|
33 |
%define pango_version 1.2.5
|
|
34 |
%define gtk2_version 2.6.0
|
|
35 |
%define GConf_version 1.1.9
|
|
36 |
%define libgnome_version 2.4.0
|
|
37 |
%define scrollkeeper_version 0.3.12
|
|
38 |
|
|
39 |
Requires: libgnome >= %{libgnome_version}
|
|
40 |
Requires: glib2 >= %{glib2_version}
|
|
41 |
Requires: gtk2 >= %{gtk2_version}
|
|
42 |
Prereq: GConf >= %{GConf_version}
|
|
43 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
44 |
BuildRequires: pango-devel >= %{pango_version}
|
|
45 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
46 |
BuildRequires: GConf-devel >= %{GConf_version}
|
|
47 |
BuildRequires: libgnome-devel >= %{libgnome_version}
|
|
48 |
BuildRequires: scrollkeeper >= %{scrollkeeper_version}
|
|
49 |
|
|
50 |
%description
|
|
51 |
This package contains a calculator for the GNOME Desktop. This calculator
|
|
52 |
has 3 different modes - Basic, Scientific and Financial.
|
|
53 |
|
|
54 |
|
|
55 |
%prep
|
|
56 |
%setup -q
|
|
57 |
%if %build_l10n
|
9400
|
58 |
bzcat %SOURCE1 | tar xf -
|
9397
|
59 |
cd po-sun; make; cd ..
|
|
60 |
%endif
|
|
61 |
|
|
62 |
%build
|
|
63 |
%ifos linux
|
|
64 |
if [ -x /usr/bin/getconf ]; then
|
|
65 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
66 |
fi
|
|
67 |
%else
|
|
68 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
69 |
%endif
|
|
70 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
71 |
CPUS=1
|
|
72 |
fi
|
|
73 |
|
10546
|
74 |
intltoolize --force --copy --automake
|
12031
|
75 |
|
|
76 |
%if %build_l10n
|
|
77 |
bash -x %SOURCE2 --enable-copyright
|
|
78 |
%endif
|
|
79 |
|
16054
|
80 |
libtoolize --force
|
10546
|
81 |
aclocal $ACLOCAL_FLAGS -I ./m4
|
|
82 |
automake -a -c -f
|
|
83 |
autoconf
|
9397
|
84 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
85 |
./configure \
|
|
86 |
--prefix=%{_prefix} \
|
|
87 |
--sysconfdir=%{_sysconfdir} \
|
|
88 |
--mandir=%{_mandir} \
|
|
89 |
--localstatedir=/var/lib \
|
|
90 |
--disable-scrollkeeper
|
|
91 |
|
|
92 |
make -j $CPUS
|
|
93 |
|
|
94 |
%install
|
|
95 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
96 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
97 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
98 |
rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper
|
10350
|
99 |
#rmdir $RPM_BUILD_ROOT/var/lib
|
|
100 |
#rmdir $RPM_BUILD_ROOT/var
|
9397
|
101 |
|
|
102 |
#Copy zh_HK from zh_TW
|
|
103 |
#Fixes bug 4930405
|
|
104 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
|
|
105 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
|
|
106 |
|
|
107 |
%clean
|
|
108 |
rm -rf $RPM_BUILD_ROOT
|
|
109 |
|
|
110 |
%post
|
|
111 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
112 |
SCHEMAS=" gcalctool.schemas "
|
|
113 |
for S in $SCHEMAS; do
|
|
114 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
|
|
115 |
done
|
|
116 |
|
|
117 |
%files
|
|
118 |
%defattr (-, root, root)
|
|
119 |
%{_bindir}/*
|
|
120 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
|
121 |
%{_datadir}/omf/gcalctool
|
|
122 |
%{_datadir}/gnome/help
|
|
123 |
%{_sysconfdir}/gconf/schemas
|
|
124 |
%{_datadir}/applications
|
|
125 |
%{_mandir}/man1/
|
|
126 |
|
|
127 |
%changelog
|
16400
|
128 |
* Thu Aug 27 2009 - [email protected]
|
|
129 |
- Bump to 5.27.91.
|
16250
|
130 |
* Wed Aug 12 2009 - [email protected]
|
|
131 |
- Bump to 5.27.90.
|
16155
|
132 |
* Tue Jul 28 2009 - [email protected]
|
|
133 |
- Bump to 5.27.5.
|
16054
|
134 |
* Sun Jul 19 2009 - [email protected]
|
|
135 |
- Bump to 5.27.4.
|
15628
|
136 |
* Wed Apr 15 2009 - [email protected]
|
|
137 |
- Bump to 5.26.1
|
15409
|
138 |
* Tue Mar 17 2009 - [email protected]
|
|
139 |
- Bump to 5.26.0
|
15398
|
140 |
* Fri Mar 13 2009 - [email protected]
|
|
141 |
- Bump to 5.25.92
|
15115
|
142 |
* Tue Feb 17 2009 - [email protected]
|
|
143 |
- Bump to 5.25.91
|
15029
|
144 |
* Thu Feb 05 2009 - [email protected]
|
|
145 |
- Bump to 5.25.90.
|
14697
|
146 |
* Wed Dec 03 2008 - [email protected]
|
|
147 |
- Bump to 5.25.2
|
13743
|
148 |
* Wed Sep 24 2008 - [email protected]
|
|
149 |
- Bump to 5.24.0
|
13465
|
150 |
* Tue Sep 09 2008 - [email protected]
|
13743
|
151 |
- Bump to 5.23.92.
|
13359
|
152 |
* Tue Sep 01 2008 - [email protected]
|
|
153 |
- Bump to 5.23.91.
|
13195
|
154 |
* Tue Aug 19 2008 - [email protected]
|
|
155 |
- Bump to 5.23.90
|
13027
|
156 |
* Tue Aug 05 2008 - [email protected]
|
|
157 |
- Bump to 5.23.6.
|
|
158 |
|
12882
|
159 |
* Tue Jul 22 2008 - [email protected]
|
|
160 |
- Bump to 5.23.5.
|
|
161 |
|
12684
|
162 |
* Tue Jun 17 2008 - [email protected]
|
|
163 |
- Bump to 5.23.4.
|
|
164 |
|
12572
|
165 |
* Tue Jun 03 2008 - [email protected]
|
|
166 |
- Bump to 5.23.3.
|
|
167 |
|
12516
|
168 |
* Wed May 28 2008 - [email protected]
|
12518
|
169 |
- Bump to 5.23.2.
|
|
170 |
|
|
171 |
* Wed May 28 2008 - [email protected]
|
12516
|
172 |
- Bump to 5.22.2.
|
|
173 |
|
11832
|
174 |
* Mon Mar 10 2008 - [email protected]
|
|
175 |
- Bump to 5.22.0.
|
|
176 |
|
11709
|
177 |
* Mon Feb 25 2008 - [email protected]
|
|
178 |
- Bump to 5.21.92.
|
|
179 |
|
11627
|
180 |
* Wed Feb 13 2008 - [email protected]
|
|
181 |
- Bump to 5.21.91.
|
|
182 |
|
11537
|
183 |
* Mon Jan 28 2008 - [email protected]
|
|
184 |
- Bump to 5.21.90.
|
|
185 |
|
11447
|
186 |
* Mon Jan 14 2008 - [email protected]
|
|
187 |
- Bump to 5.21.5.
|
|
188 |
|
11329
|
189 |
* Tue Dec 18 2007 - [email protected]
|
|
190 |
- Bump to 5.21.4.
|
|
191 |
|
11280
|
192 |
* Tue Dec 04 2007 - [email protected]
|
|
193 |
- Bump to 5.21.3.
|
|
194 |
|
11180
|
195 |
* Tue Nov 13 2007 - [email protected]
|
|
196 |
- Bump to 5.21.2.
|
|
197 |
|
11077
|
198 |
* Tue Oct 30 2007 - [email protected]
|
|
199 |
- Bump to 5.21.1.
|
|
200 |
|
10674
|
201 |
* Fri Oct 19 2007 - [email protected]
|
|
202 |
- Bump to 5.20.2.
|
|
203 |
|
10591
|
204 |
* Tue Oct 2 2007 - [email protected]
|
|
205 |
- Bump to 5.20.1.
|
|
206 |
|
10546
|
207 |
* Fri Sep 21 2007 - [email protected]
|
|
208 |
- Call intltoolize and other autotools. Otherwise the desktop
|
|
209 |
file doesn't get build and we don't see the calculator in the
|
|
210 |
menus.
|
|
211 |
|
10514
|
212 |
* Tue Sep 18 2007 - [email protected]
|
|
213 |
- Bump to 5.20.0.
|
|
214 |
|
10430
|
215 |
* Mon Sep 03 2007 - [email protected]
|
|
216 |
- Bump to 5.19.92.
|
|
217 |
|
10376
|
218 |
* Mon Aug 27 2007 - [email protected]
|
|
219 |
- Bump to 5.19.91.
|
|
220 |
|
10350
|
221 |
* Sat Aug 18 2007 - [email protected]
|
|
222 |
- Comment out removal of %{_prefix}/var and %{_prefix}/var/lib dirs as they are
|
|
223 |
no longer created.
|
|
224 |
|
10324
|
225 |
* Wed Aug 15 2007 - [email protected]
|
|
226 |
- Bump to 5.19.90.
|
|
227 |
|
10231
|
228 |
* Mon Jul 30 2007 - [email protected]
|
|
229 |
- Bump to 5.19.6. Remove upstream patch, 01-gtk-tooltips.
|
|
230 |
|
10213
|
231 |
* Wed Jul 25 2007 - [email protected]
|
|
232 |
- Add upstream patch, 01-gtk-tooltips, to build against latest gtk+.
|
|
233 |
|
10169
|
234 |
* Mon Jul 09 2007 - [email protected]
|
|
235 |
- Bump to 5.19.5. Remove upstream patch, 01-menu-entry.
|
|
236 |
|
10070
|
237 |
* Mon Jun 18 2007 - [email protected]
|
|
238 |
- Bump to 5.19.4.
|
|
239 |
|
10004
|
240 |
* Wed Jun 06 2007 - [email protected]
|
|
241 |
- Bump to 5.19.3.
|
|
242 |
|
9886
|
243 |
* Mon May 14 2007 - [email protected]
|
|
244 |
- Bump to 5.19.2.
|
|
245 |
|
9866
|
246 |
* Thu May 10 2007 - [email protected]
|
|
247 |
- Bump to 5.19.1.
|
|
248 |
|
9525
|
249 |
* Mon Mar 12 2007 - [email protected]
|
|
250 |
- Bump to 5.9.14.
|
|
251 |
|
9438
|
252 |
* Mon Mar 05 2007 - [email protected]
|
|
253 |
- Bump to 5.9.13.
|
|
254 |
|
9397
|
255 |
* Tue Feb 13 2007 - [email protected]
|
|
256 |
- Add l10n tarball.
|
|
257 |
|
|
258 |
* Mon Feb 12 2007 - [email protected]
|
|
259 |
- Bump to 5.9.12.
|
|
260 |
|
|
261 |
* Mon Jan 22 2007 - [email protected]
|
|
262 |
- Bump to 5.9.11.
|
|
263 |
|
|
264 |
* Tue Jan 09 2007 - [email protected]
|
|
265 |
- Bump to 5.9.10.
|
|
266 |
|
|
267 |
* Mon Dec 18 2006 - [email protected]
|
|
268 |
- Bump to 5.9.9.
|
|
269 |
|
|
270 |
* Tue Dec 05 2006 - [email protected]
|
|
271 |
- Bump to 5.9.8. Remove upstream patch, 02-result-area.
|
|
272 |
|
|
273 |
* Mon Nov 13 2006 - [email protected]
|
|
274 |
- Add patch 02-result-area to fix bugster 6480076
|
|
275 |
|
|
276 |
* Fri Nov 03 2006 - [email protected]
|
|
277 |
- Bump to 5.8.25. Remove upstream patch, 02-arabic-decimal-point.
|
|
278 |
|
|
279 |
* Tue Oct 03 2006 - [email protected]
|
|
280 |
- Bugster #6473019 / bugzilla #359291
|
|
281 |
- Fix crash with arabic locale
|
|
282 |
|
|
283 |
* Mon Sep 04 2006 - [email protected]
|
|
284 |
- Bump to 5.8.24.
|
|
285 |
|
|
286 |
* Fri Aug 18 2006 - [email protected]
|
|
287 |
- Bump to 5.8.23.
|
|
288 |
|
|
289 |
* Tue Aug 08 2006 - [email protected]
|
|
290 |
- Bump to 5.8.20.
|
|
291 |
|
|
292 |
* Mon Jul 24 2006 - [email protected]
|
|
293 |
- Bump to 5.8.19.
|
|
294 |
|
|
295 |
* Web Jul 21 2006 - [email protected]
|
|
296 |
- Bump to 5.8.17.
|
|
297 |
|
|
298 |
* Fri Jun 01 2006 - [email protected]
|
|
299 |
- Add menu entry patch.
|
|
300 |
|
|
301 |
* Mon Mar 13 2006 - [email protected]
|
|
302 |
- Bump to 5.7.32.
|
|
303 |
|
|
304 |
* Mon Feb 27 2006 - [email protected]
|
|
305 |
- Bump to 5.7.30.
|
|
306 |
|
|
307 |
* Mon Feb 13 2006 - [email protected]
|
|
308 |
- Bump to 5.7.29.
|
|
309 |
|
|
310 |
* Mon Jan 30 2006 - [email protected]
|
|
311 |
- Bump to 5.7.28.
|
|
312 |
|
|
313 |
* Mon Jan 23 2006 - [email protected]
|
|
314 |
- Bump to 5.7.27.
|
|
315 |
|
|
316 |
* Fri Jan 20 2006 - [email protected]
|
|
317 |
- Bump to 5.7.26.
|
|
318 |
|
|
319 |
* Sun Jan 15 2006 - [email protected]
|
|
320 |
- Bump to 5.7.23.
|
|
321 |
|
|
322 |
* Tue Jan 03 2006 - [email protected]
|
|
323 |
- Bump to 5.7.18.
|
|
324 |
|
|
325 |
* Tue Nov 29 2005 - [email protected]
|
|
326 |
- remove javahelp stuff
|
|
327 |
|
|
328 |
* Mon Sep 05 2005 - [email protected]
|
|
329 |
- Bump to 5.6.31.
|
|
330 |
|
|
331 |
* Mon Aug 15 2005 - [email protected]
|
|
332 |
- Bump to 5.6.26.
|
|
333 |
|
|
334 |
* Fri Jul 01 2005 - [email protected]
|
|
335 |
- -02-pkgconfig patch for solaris build
|
|
336 |
|
|
337 |
* Thu May 19 2005 - [email protected]
|
|
338 |
- ported to 5.5.42
|
|
339 |
|
|
340 |
* Wed May 18 2005 - [email protected]
|
|
341 |
- Updated l10n help patch to add pt_BR
|
|
342 |
|
|
343 |
* Tue Jan 25 2005 - [email protected]
|
|
344 |
- Add patch from Rich to fix #162998.
|
|
345 |
|
|
346 |
* Fri Jan 14 2005 - [email protected]
|
|
347 |
- Updated l10n help tarball for cinnabar-linux
|
|
348 |
|
|
349 |
* Fri Nov 12 2004 - [email protected]
|
|
350 |
- Updated l10n help tarball and patch
|
|
351 |
|
|
352 |
* Thu Oct 28 2004 - [email protected]
|
|
353 |
- Updated l10n help tarball and added pt_BR
|
|
354 |
|
|
355 |
* Wed Aug 25 2004 - [email protected]
|
|
356 |
- Added l10n help contents
|
|
357 |
|
|
358 |
* Thu Aug 05 2004 - [email protected]
|
|
359 |
- Incorporate new docs tarball from [email protected].
|
|
360 |
|
|
361 |
* Thu Jul 08 2004 - [email protected]
|
|
362 |
- Updated l10n content to gcalctool-l10n-po-1.2.tar.bz2
|
|
363 |
|
|
364 |
* Wed Jul 07 2004 - [email protected]
|
|
365 |
- ported to rpm4
|
|
366 |
|
|
367 |
* Wed Jul 07 2004 - [email protected]
|
|
368 |
- added "-j $CPUS" to make to speed up builds
|
|
369 |
|
|
370 |
* Mon May 31 2004 - [email protected]
|
|
371 |
- Add patch gcalctool-01-update-display.diff to fix bugzilla bug #134376
|
|
372 |
|
|
373 |
* Fri May 28 2004 - [email protected]
|
|
374 |
- Incorporate new docs tarball from [email protected].
|
|
375 |
|
|
376 |
* Wed May 12 2004 - [email protected]
|
|
377 |
- Updated l10n content to gcalctool-l10n-po-1.1.tar.bz2
|
|
378 |
|
|
379 |
* Sun Apr 18 2004 - [email protected]
|
|
380 |
- enable javahelp conversion on Solaris
|
|
381 |
|
|
382 |
* Thu Apr 15 2004 - [email protected]
|
|
383 |
- Bump to 4.3.51
|
|
384 |
|
|
385 |
* Thu Apr 01 2004 - [email protected]
|
|
386 |
- javahelp conversion
|
|
387 |
|
|
388 |
* Mon Mar 29 2004 - [email protected]
|
|
389 |
- Updated l10n content to gcalctool-l10n-po-1.0.tar.bz2
|
|
390 |
|
|
391 |
* Tue Mar 16 2004 - [email protected]
|
|
392 |
- Remove the man page and localized doc patches
|
|
393 |
since they're upstream and we'll pick them up
|
|
394 |
with the next release. Bump to 4.3.50.
|
|
395 |
|
|
396 |
* Mon Mar 01 2004 - [email protected]
|
|
397 |
- fix aclocal options
|
|
398 |
- s$/usr/share/man$%{_mandir}$
|
|
399 |
- s$/usr/share%{_datadir}$
|
|
400 |
|
|
401 |
* Thu Feb 23 2004 - [email protected]
|
|
402 |
- fix non-portable tar commands
|
|
403 |
|
|
404 |
* Mon Feb 23 2004 - [email protected]
|
|
405 |
- Bump to 4.3.46, re-order patches, l10n update
|
|
406 |
|
|
407 |
* Wed Dec 17 2003 - [email protected]
|
|
408 |
- Bump to 4.3.29
|
|
409 |
|
|
410 |
* Fri Oct 31 2003 - [email protected]
|
|
411 |
- Remove the Sun Supported keyword since we're
|
|
412 |
moving away from extras menu.
|
|
413 |
|
|
414 |
- Remove the Sun Supported keyword since we're
|
|
415 |
moving away from extras menu.
|
|
416 |
|
|
417 |
- Remove the Sun Supported keyword since we're
|
|
418 |
moving away from extras menu.
|
|
419 |
|
|
420 |
- Remove the Sun Supported keyword since we're
|
|
421 |
moving away from extras menu.
|
|
422 |
|
|
423 |
* Fri Oct 10 2003 - [email protected]
|
|
424 |
- Update to 3.4.4
|
|
425 |
|
|
426 |
* Fri Aug 01 2003 - [email protected]
|
|
427 |
- Add menu entry supported category.
|
|
428 |
|
|
429 |
* Wed Jul 30 2003 - [email protected]
|
|
430 |
- New release. Bump version, reset release.
|
|
431 |
|
|
432 |
* Fri Jul 25 2003 - [email protected]
|
|
433 |
- Uses scrollkeeper for postinstall. Add a dependency
|
|
434 |
|
|
435 |
* Tue Jul 01 2003 - [email protected]
|
|
436 |
- Initial Sun release
|