author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19838 | 42a3a4365a3b |
permissions | -rw-r--r-- |
366 | 1 |
# |
2 |
# spec file for package gcalctool |
|
3 |
# |
|
19693 | 4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
366 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
||
9 |
||
10 |
Name: gcalctool |
|
11 |
License: GPL |
|
12 |
Group: System/GUI/GNOME |
|
19331 | 13 |
Version: 5.5.42 |
19334 | 14 |
Release: 1 |
19693 | 15 |
Distribution: Java Desktop System |
575 | 16 |
Vendor: Sun Microsystems, Inc. |
366 | 17 |
Summary: GNOME Calculator |
19693 | 18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/5.5/%{name}-%{version}.tar.bz2 |
19719 | 19 |
Source1: gnome-calculator.1.gz |
20 |
Source2: gcalctool.1.gz |
|
366 | 21 |
URL: http://www.gnome.org |
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
23 |
Docdir: %{_defaultdocdir}/%{name} |
|
24 |
Autoreqprov: on |
|
25 |
||
19334 | 26 |
%define glib2_version 2.6.0 |
1229 | 27 |
%define pango_version 1.2.5 |
19334 | 28 |
%define gtk2_version 2.6.0 |
29 |
%define GConf_version 1.1.9 |
|
1229 | 30 |
%define libgnome_version 2.4.0 |
31 |
%define scrollkeeper_version 0.3.12 |
|
366 | 32 |
|
33 |
Requires: libgnome >= %{libgnome_version} |
|
19334 | 34 |
Requires: glib2 >= %{glib2_version} |
35 |
Requires: gtk2 >= %{gtk2_version} |
|
19693 | 36 |
Prereq: GConf >= %{GConf_version} |
366 | 37 |
BuildRequires: glib2-devel >= %{glib2_version} |
38 |
BuildRequires: pango-devel >= %{pango_version} |
|
39 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
19334 | 40 |
BuildRequires: GConf-devel >= %{GConf_version} |
366 | 41 |
BuildRequires: libgnome-devel >= %{libgnome_version} |
1073 | 42 |
BuildRequires: scrollkeeper >= %{scrollkeeper_version} |
366 | 43 |
|
44 |
%description |
|
45 |
This package contains a calculator for the GNOME Desktop. This calculator |
|
46 |
has 3 different modes - Basic, Scientific and Financial. |
|
47 |
||
48 |
%prep |
|
49 |
%setup -q |
|
4455 | 50 |
|
366 | 51 |
%build |
3263 | 52 |
%ifos linux |
53 |
if [ -x /usr/bin/getconf ]; then |
|
54 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
55 |
fi |
|
56 |
%else |
|
3846 | 57 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 58 |
%endif |
59 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
60 |
CPUS=1 |
|
61 |
fi |
|
62 |
||
366 | 63 |
CFLAGS="$RPM_OPT_FLAGS" \ |
64 |
./configure \ |
|
65 |
--prefix=%{_prefix} \ |
|
66 |
--sysconfdir=%{_sysconfdir} \ |
|
3628 | 67 |
--mandir=%{_mandir} \ |
366 | 68 |
--localstatedir=/var/lib |
3263 | 69 |
make -j $CPUS |
366 | 70 |
|
71 |
%install |
|
72 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
73 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
74 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
2090 | 75 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
19719 | 76 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 |
2090 | 77 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 |
1459 | 78 |
|
79 |
#Copy zh_HK from zh_TW |
|
80 |
#Fixes bug 4930405 |
|
2090 | 81 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
82 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
366 | 83 |
|
84 |
%clean |
|
85 |
rm -rf $RPM_BUILD_ROOT |
|
86 |
||
87 |
%post |
|
88 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
89 |
SCHEMAS=" gcalctool.schemas " |
|
90 |
for S in $SCHEMAS; do |
|
91 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
92 |
done |
|
93 |
||
94 |
%files |
|
95 |
%defattr (-, root, root) |
|
96 |
%{_bindir}/* |
|
97 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
98 |
%{_datadir}/omf/gcalctool |
|
99 |
%{_datadir}/gnome/help |
|
100 |
%{_sysconfdir}/gconf/schemas |
|
101 |
%{_datadir}/applications |
|
19728 | 102 |
%{_mandir}/man1/ |
366 | 103 |
|
104 |
%changelog |
|
19513 | 105 |
* Fri Jul 01 2005 - [email protected] |
106 |
- -02-pkgconfig patch for solaris build |
|
107 |
||
19643 | 108 |
* Thu May 19 2005 - [email protected] |
19331 | 109 |
- ported to 5.5.42 |
19334 | 110 |
|
19643 | 111 |
* Wed May 18 2005 - [email protected] |
112 |
- Updated l10n help patch to add pt_BR |
|
113 |
||
4922 | 114 |
* Tue Jan 25 2005 - [email protected] |
115 |
- Add patch from Rich to fix #162998. |
|
116 |
||
4844 | 117 |
* Fri Jan 14 2005 - [email protected] |
118 |
- Updated l10n help tarball for cinnabar-linux |
|
19643 | 119 |
|
4537 | 120 |
* Fri Nov 12 2004 - [email protected] |
121 |
- Updated l10n help tarball and patch |
|
122 |
||
4352 | 123 |
* Thu Oct 28 2004 - [email protected] |
124 |
- Updated l10n help tarball and added pt_BR |
|
125 |
||
3734 | 126 |
* Wed Aug 25 2004 - [email protected] |
127 |
- Added l10n help contents |
|
128 |
||
3487 | 129 |
* Thu Aug 05 2004 - [email protected] |
130 |
- Incorporate new docs tarball from [email protected]. |
|
131 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
132 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
133 |
- Updated l10n content to gcalctool-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
134 |
|
3628 | 135 |
* Wed Jul 07 2004 - [email protected] |
136 |
- ported to rpm4 |
|
137 |
||
3263 | 138 |
* Wed Jul 07 2004 - [email protected] |
139 |
- added "-j $CPUS" to make to speed up builds |
|
140 |
||
2962 | 141 |
* Mon May 31 2004 - [email protected] |
142 |
- Add patch gcalctool-01-update-display.diff to fix bugzilla bug #134376 |
|
143 |
||
2942
36dd168a11be
* eog.spec, file-roller.spec, gcalctool.spec,gnome-applets.spec,
dc144907
parents:
2777
diff
changeset
|
144 |
* Fri May 28 2004 - [email protected] |
36dd168a11be
* eog.spec, file-roller.spec, gcalctool.spec,gnome-applets.spec,
dc144907
parents:
2777
diff
changeset
|
145 |
- Incorporate new docs tarball from [email protected]. |
36dd168a11be
* eog.spec, file-roller.spec, gcalctool.spec,gnome-applets.spec,
dc144907
parents:
2777
diff
changeset
|
146 |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
147 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
148 |
- Updated l10n content to gcalctool-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
149 |
|
2485 | 150 |
* Sun Apr 18 2004 - [email protected] |
151 |
- enable javahelp conversion on Solaris |
|
152 |
||
2464 | 153 |
* Thu Apr 15 2004 - [email protected] |
154 |
- Bump to 4.3.51 |
|
155 |
||
2362
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2350
diff
changeset
|
156 |
* Thu Apr 01 2004 - [email protected] |
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2350
diff
changeset
|
157 |
- javahelp conversion |
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2350
diff
changeset
|
158 |
|
2350 | 159 |
* Mon Mar 29 2004 - [email protected] |
160 |
- Updated l10n content to gcalctool-l10n-po-1.0.tar.bz2 |
|
161 |
||
2215 | 162 |
* Tue Mar 16 2004 - [email protected] |
163 |
- Remove the man page and localized doc patches |
|
164 |
since they're upstream and we'll pick them up |
|
165 |
with the next release. Bump to 4.3.50. |
|
166 |
||
2089 | 167 |
* Mon Mar 01 2004 - [email protected] |
168 |
- fix aclocal options |
|
2090 | 169 |
- s$/usr/share/man$%{_mandir}$ |
170 |
- s$/usr/share%{_datadir}$ |
|
2089 | 171 |
|
2024 | 172 |
* Thu Feb 23 2004 - [email protected] |
173 |
- fix non-portable tar commands |
|
174 |
||
1881 | 175 |
* Mon Feb 23 2004 - [email protected] |
176 |
- Bump to 4.3.46, re-order patches, l10n update |
|
177 |
||
1459 | 178 |
* Wed Dec 17 2003 - [email protected] |
179 |
- Bump to 4.3.29 |
|
180 |
||
1365 | 181 |
* Fri Oct 31 2003 - [email protected] |
182 |
- Remove the Sun Supported keyword since we're |
|
183 |
moving away from extras menu. |
|
184 |
||
185 |
- Remove the Sun Supported keyword since we're |
|
186 |
moving away from extras menu. |
|
187 |
||
188 |
- Remove the Sun Supported keyword since we're |
|
189 |
moving away from extras menu. |
|
190 |
||
191 |
- Remove the Sun Supported keyword since we're |
|
192 |
moving away from extras menu. |
|
193 |
||
1229 | 194 |
* Fri Oct 10 2003 - [email protected] |
195 |
- Update to 3.4.4 |
|
196 |
||
879 | 197 |
* Fri Aug 01 2003 - [email protected] |
198 |
- Add menu entry supported category. |
|
199 |
||
862 | 200 |
* Wed Jul 30 2003 - [email protected] |
201 |
- New release. Bump version, reset release. |
|
202 |
||
806 | 203 |
* Fri Jul 25 2003 - [email protected] |
204 |
- Uses scrollkeeper for postinstall. Add a dependency |
|
205 |
||
366 | 206 |
* Tue Jul 01 2003 - [email protected] |
207 |
- Initial Sun release |