author | niall |
Thu, 07 Aug 2003 10:21:18 +0000 | |
changeset 995 | 256942a05db7 |
parent 882 | dcd39d3278b7 |
child 1025 | a32d1ed4f10d |
permissions | -rw-r--r-- |
60 | 1 |
# |
2 |
# spec file for package gnome-utils |
|
3 |
# |
|
601 | 4 |
# Copyright (c) 2003 Sun Microsystems, Inc. |
60 | 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: gnome-utils |
|
11 |
License: GPL |
|
12 |
Group: System/GUI/GNOME |
|
383 | 13 |
Version: 2.2.3 |
995 | 14 |
Release: 10 |
60 | 15 |
Distribution: Mercury |
575 | 16 |
Vendor: Sun Microsystems, Inc. |
60 | 17 |
Summary: Basic Utilities for the GNOME 2.0 Desktop |
229 | 18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-utils/2.2/%{name}-%{version}.tar.bz2 |
510 | 19 |
Source1: gnome-utils-l10n-po.tar.bz2 |
882 | 20 |
Patch1: gnome-utils-01-disable-gcalc-gcharmap-gdialog-logview.diff |
21 |
Patch2: gnome-utils-02-gfloppy-icon.diff |
|
22 |
Patch3: gnome-utils-03-potfiles_in.diff |
|
23 |
Patch4: gnome-utils-04-menu-entry.diff |
|
60 | 24 |
URL: http://www.gnome.org |
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
26 |
Docdir: %{_defaultdocdir}/%{name} |
|
229 | 27 |
Autoreqprov: on |
28 |
||
29 |
%define glib2_version 2.2.1 |
|
30 |
%define pango_version 1.2.1 |
|
31 |
%define gtk2_version 2.2.1 |
|
32 |
%define libgnome_version 2.2.0.1 |
|
33 |
%define libgnomeui_version 2.2.0.1 |
|
34 |
%define gail_version 1.2.0 |
|
35 |
%define gnome_panel_version 2.2.1 |
|
995 | 36 |
%define scrollkeeper_version 0.3.11 |
229 | 37 |
|
38 |
Requires: libgnome >= %{libgnome_version} |
|
39 |
Requires: libgnomeui >= %{libgnomeui_version} |
|
995 | 40 |
Requires: scrollkeeper >= %{scrollkeeper_version} |
229 | 41 |
BuildRequires: glib2-devel >= %{glib2_version} |
42 |
BuildRequires: pango-devel >= %{pango_version} |
|
43 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
44 |
BuildRequires: libgnome-devel >= %{libgnome_version} |
|
45 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version} |
|
46 |
BuildRequires: gail-devel >= %{gail_version} |
|
47 |
BuildRequires: gnome-panel >= %{gnome_panel_version} |
|
48 |
BuildRequires: e2fsprogs-devel |
|
60 | 49 |
|
50 |
%description |
|
365 | 51 |
This package contains some essential utilities for the GNOME2 Desktop. |
60 | 52 |
|
53 |
||
54 |
%prep |
|
55 |
%setup -q |
|
392 | 56 |
%patch1 -p1 |
569
b63182ee420f
updating the POTFILES.in so intltool-update can be run.
mick
parents:
552
diff
changeset
|
57 |
%patch2 -p1 |
882 | 58 |
%patch3 -p1 |
59 |
%patch4 -p1 |
|
60 | 60 |
|
510 | 61 |
tar jxvf %SOURCE1 |
60 | 62 |
%build |
385 | 63 |
libtoolize --force |
64 |
aclocal -I /usr/share/aclocal/gnome2-macros |
|
65 |
automake -a -c -f |
|
66 |
autoconf |
|
67 |
||
229 | 68 |
CFLAGS="$RPM_OPT_FLAGS" \ |
69 |
./configure \ |
|
70 |
--prefix=%{_prefix} \ |
|
71 |
--sysconfdir=%{_sysconfdir} \ |
|
72 |
--localstatedir=/var/lib |
|
60 | 73 |
make |
74 |
||
75 |
%install |
|
76 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
77 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
78 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
79 |
||
229 | 80 |
%clean |
81 |
rm -rf $RPM_BUILD_ROOT |
|
82 |
||
60 | 83 |
%post |
84 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
613 | 85 |
SCHEMAS=" gdict.schemas gfloppy.schemas " |
60 | 86 |
for S in $SCHEMAS; do |
87 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
88 |
done |
|
527 | 89 |
for i in zh_CN zh_TW ko_KR ja_JP de_DE es_ES fr_FR it_IT sv_SE ; do |
90 |
langtag=$i |
|
91 |
[ ${i:0:2} == "zh" ] || langtag=${i:0:2} |
|
92 |
[ -e %{_datadir}/omf/gnome-utils/gnome-search-tool-$langtag.omf ] && \ |
|
93 |
env LANG=$i LC_ALL=$i scrollkeeper-install -q %{_datadir}/omf/gnome-utils/gnome-search-tool-$langtag.omf |
|
94 |
done |
|
413 | 95 |
scrollkeeper-update -q |
96 |
||
97 |
%postun |
|
527 | 98 |
for i in zh_CN zh_TW ko_KR ja_JP de_DE es_ES fr_FR it_IT sv_SE ; do |
99 |
langtag=$i |
|
100 |
[ ${i:0:2} == "zh" ] || langtag=${i:0:2} |
|
101 |
[ -e %{_datadir}/omf/gnome-utils/gnome-search-tool-$langtag.omf ] && \ |
|
102 |
env LANG=$i LC_ALL=$i scrollkeeper-uninstall -q %{_datadir}/omf/gnome-utils/gnome-search-tool-$langtag.omf |
|
103 |
done |
|
413 | 104 |
scrollkeeper-update -q |
60 | 105 |
|
106 |
%files |
|
107 |
%defattr (-, root, root) |
|
229 | 108 |
%{_bindir}/* |
109 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
110 |
%{_datadir}/omf/gnome-utils |
|
111 |
%{_datadir}/gnome/help |
|
112 |
%{_datadir}/pixmaps/* |
|
113 |
%{_datadir}/gnome-2.0/ui/* |
|
60 | 114 |
%{_sysconfdir}/gconf/schemas |
229 | 115 |
%{_libdir}/bonobo |
116 |
%{_datadir}/applications |
|
117 |
%{_datadir}/gnome-utils |
|
118 |
%{_libexecdir}/* |
|
60 | 119 |
|
120 |
%changelog |
|
995 | 121 |
* Thu Aug 07 2003 - [email protected] |
122 |
- added scrollkeeper to base dependencies |
|
123 |
||
613 | 124 |
* Thu Jul 17 2003 - [email protected] |
125 |
- Don't install a non-existant logview schema. |
|
126 |
||
510 | 127 |
* Wed Jul 09 2003 - <[email protected]> |
128 |
- add in sun po files |
|
129 |
||
453 | 130 |
* Mon Jul 07 2003 - [email protected] |
131 |
- Do not install gnome-system-log either |
|
132 |
||
364 | 133 |
* Tue Jul 01 2003 - [email protected] |
392 | 134 |
- Correct gfloppy icon |
135 |
||
136 |
* Tue Jul 01 2003 - [email protected] |
|
383 | 137 |
- Disable gcalc, gcharmap & gdialog from build. |
138 |
||
139 |
* Tue Jul 01 2003 - [email protected] |
|
364 | 140 |
- Update version on tarball |
141 |
||
60 | 142 |
* Tue May 13 2003 - [email protected] |
229 | 143 |
- Initial Sun release |