|
1 # |
|
2 # spec file for package libgnome |
|
3 # |
|
4 # Copyright (c) 2005 Sun Microsystems, Inc. |
|
5 # This file and all modifications and additions to the pristine |
|
6 # package are under the same license as the package itself. |
|
7 # |
1 Name: libgnome |
8 Name: libgnome |
2 License: LGPL |
9 License: LGPL |
3 Group: System/Libraries/GNOME |
10 Group: System/Libraries/GNOME |
4 Version: 2.6.0 |
11 Version: 2.10.0 |
5 Release: 46 |
12 Release: 3 |
6 Distribution: Java Desktop System, Release 3 |
13 Distribution: Java Desktop System |
7 Vendor: Sun Microsystems, Inc. |
14 Vendor: Sun Microsystems, Inc. |
8 Summary: GNOME Base Library |
15 Summary: GNOME Base Library |
9 Source: http://ftp.gnome.org/pub/GNOME/sources/libgnome/2.5/libgnome-%{version}.tar.bz2 |
16 Source: http://ftp.gnome.org/pub/GNOME/sources/libgnome/2.10/libgnome-%{version}.tar.bz2 |
10 %ifos solaris |
17 Source1: gnome-open.1.gz |
11 Source1: backgrounds.tar.bz2 |
18 Source2: libgnome-2.3.gz |
12 %else |
|
13 Source1: backgrounds-linux.tar.bz2 |
|
14 %endif |
|
15 Source2: libgnome-l10n-po-1.14.tar.bz2 |
|
16 %ifos solaris |
|
17 Source3: Sun-Default.png |
|
18 %else |
|
19 Source3: Sun-Default-linux.png |
|
20 %endif |
|
21 Source4: libgnome-2.3.gz |
|
22 Source5: gnome-open.1.gz |
|
23 Source6: l10n-configure.sh |
|
24 Patch1: libgnome-01-default-background.diff |
19 Patch1: libgnome-01-default-background.diff |
25 Patch2: libgnome-02-default-theme.diff |
20 Patch2: libgnome-02-default-theme.diff |
26 Patch3: libgnome-03-lockdown-schemas.diff |
21 Patch3: libgnome-03-lockdown-schemas.diff |
27 Patch4: libgnome-04-moniker-build.diff |
22 Patch4: libgnome-04-input-method-status-style.diff |
28 Patch5: libgnome-05-input-method-status-style.diff |
23 Patch5: libgnome-05-unusable-as-root.diff |
29 Patch6: libgnome-06-g11n-potfiles.diff |
|
30 Patch7: libgnome-07-g11n-potfiles.diff |
|
31 Patch8: libgnome-08-unusable-as-root.diff |
|
32 URL: http://www.gnome.org |
24 URL: http://www.gnome.org |
33 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
25 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
34 Docdir: %{_defaultdocdir}/doc |
26 Docdir: %{_defaultdocdir}/doc |
35 Autoreqprov: on |
27 Autoreqprov: on |
36 Prereq: /sbin/ldconfig |
28 Prereq: /sbin/ldconfig |
76 configuration, help, initialization and web links, all specific to the |
68 configuration, help, initialization and web links, all specific to the |
77 GNOME desktop. |
69 GNOME desktop. |
78 |
70 |
79 %prep |
71 %prep |
80 %setup -q |
72 %setup -q |
81 bzcat %SOURCE2 | tar xf - |
|
82 %patch1 -p1 |
73 %patch1 -p1 |
83 %patch2 -p1 |
74 %patch2 -p1 |
84 %patch3 -p1 |
75 %patch3 -p1 |
85 %patch4 -p1 |
76 %patch4 -p1 |
86 %patch5 -p1 |
77 %patch5 -p1 |
87 %patch6 -p1 |
78 |
88 %patch7 -p1 |
|
89 %patch8 -p1 |
|
90 # the following line is required for default-background branching patch |
|
91 mv schemas/desktop_gnome_background.schemas schemas/desktop_gnome_background.schemas.in |
|
92 |
|
93 bash -x %SOURCE6 |
|
94 |
79 |
95 %build |
80 %build |
96 %ifos linux |
81 %ifos linux |
97 if [ -x /usr/bin/getconf ]; then |
82 if [ -x /usr/bin/getconf ]; then |
98 CPUS=`getconf _NPROCESSORS_ONLN` |
83 CPUS=`getconf _NPROCESSORS_ONLN` |
119 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
104 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
120 make DESTDIR=$RPM_BUILD_ROOT install |
105 make DESTDIR=$RPM_BUILD_ROOT install |
121 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
106 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
122 install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
107 install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
123 install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
108 install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
124 install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1 |
109 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 |
125 install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man3 |
110 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3 |
126 |
|
127 mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/backgrounds |
|
128 bzcat %SOURCE1 | (cd $RPM_BUILD_ROOT%{_datadir}/pixmaps; tar -xf -) |
|
129 cp %SOURCE3 $RPM_BUILD_ROOT%{_datadir}/pixmaps/backgrounds/Sun-Default.png |
|
130 |
111 |
131 #Copy zh_HK from zh_TW |
112 #Copy zh_HK from zh_TW |
132 #Fixes bug 4930405 |
113 #Fixes bug 4930405 |
133 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
114 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
134 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
115 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
141 rm -rf $RPM_BUILD_ROOT |
122 rm -rf $RPM_BUILD_ROOT |
142 |
123 |
143 %post |
124 %post |
144 /sbin/ldconfig |
125 /sbin/ldconfig |
145 SCHEMAS="desktop_gnome_accessibility_keyboard.schemas \ |
126 SCHEMAS="desktop_gnome_accessibility_keyboard.schemas \ |
|
127 desktop_gnome_accessibility_startup.schemas \ |
146 desktop_gnome_applications_browser.schemas \ |
128 desktop_gnome_applications_browser.schemas \ |
147 desktop_gnome_applications_help_viewer.schemas \ |
129 desktop_gnome_applications_help_viewer.schemas \ |
148 desktop_gnome_applications_terminal.schemas \ |
130 desktop_gnome_applications_terminal.schemas \ |
149 desktop_gnome_applications_window_manager.schemas \ |
131 desktop_gnome_applications_window_manager.schemas \ |
150 desktop_gnome_background.schemas \ |
132 desktop_gnome_background.schemas \ |
171 %{_sysconfdir}/sound/events/*.soundlist |
153 %{_sysconfdir}/sound/events/*.soundlist |
172 %{_sysconfdir}/gconf/schemas/* |
154 %{_sysconfdir}/gconf/schemas/* |
173 %{_libdir}/libgnome*so.* |
155 %{_libdir}/libgnome*so.* |
174 %{_libdir}/bonobo/monikers/*so* |
156 %{_libdir}/bonobo/monikers/*so* |
175 %{_libdir}/bonobo/servers/*.server |
157 %{_libdir}/bonobo/servers/*.server |
176 %{_datadir}/pixmaps/backgrounds/* |
|
177 |
158 |
178 %files devel |
159 %files devel |
179 %defattr(-, root, root) |
160 %defattr(-, root, root) |
180 %{_libdir}/pkgconfig/libgnome-2.0.pc |
161 %{_libdir}/pkgconfig/libgnome-2.0.pc |
181 %{_includedir}/libgnome-2.0/libgnome/*.h |
162 %{_includedir}/libgnome-2.0/libgnome/*.h |
183 %{_libdir}/libgnome*so |
164 %{_libdir}/libgnome*so |
184 %{_mandir}/man1/* |
165 %{_mandir}/man1/* |
185 %{_mandir}/man3/* |
166 %{_mandir}/man3/* |
186 |
167 |
187 %changelog |
168 %changelog |
|
169 * Tue Jul 19 2005 - [email protected] |
|
170 - Modify libgnome-02-default-theme.diff, |
|
171 libgnome-03-lockdown-schemas.diff and |
|
172 libgnome-04-input-method-status-style.diff |
|
173 so that the changes are applied to the .schemas.in |
|
174 files instead of .schemas files. |
|
175 |
|
176 * Thu Jun 23 2005 - [email protected] |
|
177 - Modified libgnome-03-lockdown-schemas.diff to |
|
178 include starsuite and starsuite-printeradmin in the |
|
179 allowed_applications list. |
|
180 Fixes bug #6288742. |
|
181 |
|
182 * Fri May 20 2005 - [email protected] |
|
183 - Remove backgrounds and put them in gnome-backgrounds |
|
184 package. Sanitizes things a lot. |
|
185 |
|
186 * Thu May 12 2005 - [email protected] |
|
187 - Modified libgnome-03-lockdown-schemas.diff to |
|
188 update the entries in the allowed_applications list. |
|
189 Fixes bug #6266517. |
|
190 |
|
191 * Fri May 06 2005 - [email protected] |
|
192 - Bump to 2.10.0 |
|
193 |
188 * Fri Dec 24 2004 - [email protected] |
194 * Fri Dec 24 2004 - [email protected] |
189 - Replacing /usr/bin/staroffice with /usr/bin/soffice in |
195 - Replacing /usr/bin/staroffice with /usr/bin/soffice in |
190 libgnome-03-lockdown-schemas.diff. Fixes Bug #6208251. |
196 libgnome-03-lockdown-schemas.diff. Fixes Bug #6208251. |
191 |
197 |
192 * Thu Oct 28 2004 - [email protected] |
198 * Thu Oct 28 2004 - [email protected] |