author | chrisk |
Mon, 31 Aug 2009 12:02:58 +0000 | |
changeset 16427 | 63d81b085adb |
parent 16218 | 042fa39fd85a |
child 16434 | f21f22550fe9 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package libgnome |
|
3 |
# |
|
11483 | 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 |
# |
|
13227
367c74a9a733
Changes ownership of spec files and patches from alo to padraig
padraig
parents:
13207
diff
changeset
|
8 |
# Owner: padraig |
9397 | 9 |
# |
16427 | 10 |
|
11 |
%define OSR gnome.org:0 |
|
12 |
||
9397 | 13 |
Name: libgnome |
14 |
License: LGPL |
|
15 |
Group: System/Libraries/GNOME |
|
16191 | 16 |
Version: 2.27.5 |
9397 | 17 |
Release: 5 |
18 |
Distribution: Java Desktop System |
|
19 |
Vendor: Sun Microsystems, Inc. |
|
20 |
Summary: GNOME Base Library |
|
16218 | 21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libgnome/2.27/libgnome-%{version}.tar.bz2 |
12031 | 22 |
%if %build_l10n |
23 |
Source1: l10n-configure.sh |
|
24 |
%endif |
|
13227
367c74a9a733
Changes ownership of spec files and patches from alo to padraig
padraig
parents:
13207
diff
changeset
|
25 |
# owner:padraig date:2005-04-26 type:branding |
10598 | 26 |
Patch1: libgnome-01-sun-default-background.diff |
11483 | 27 |
# owner:gman date:2008-01-18 type:branding |
13103 | 28 |
Patch2: libgnome-02-indiana-default.diff |
13227
367c74a9a733
Changes ownership of spec files and patches from alo to padraig
padraig
parents:
13207
diff
changeset
|
29 |
# owner:padraig date:2005-07-18 type:branding |
13103 | 30 |
Patch3: libgnome-03-default-theme.diff |
9397 | 31 |
# owner:mattman date:2005-07-18 type:branding bugzilla:395887 |
13103 | 32 |
Patch4: libgnome-04-lockdown-schemas.diff |
13227
367c74a9a733
Changes ownership of spec files and patches from alo to padraig
padraig
parents:
13207
diff
changeset
|
33 |
# owner:padraig date:2005-07-18 type:branding |
13103 | 34 |
Patch5: libgnome-05-input-method-status-style.diff |
13445 | 35 |
# owner:liyuan date:2008-09-09 type:branding |
36 |
Patch6: libgnome-06-disable-accessibility.diff |
|
9397 | 37 |
URL: http://www.gnome.org |
38 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
39 |
Docdir: %{_defaultdocdir}/doc |
|
40 |
Autoreqprov: on |
|
41 |
Prereq: /sbin/ldconfig |
|
42 |
||
43 |
%define GConf_version 2.6.1 |
|
44 |
%define gnome_vfs_version 2.6.0 |
|
45 |
%define libbonobo_version 2.6.0 |
|
46 |
%define libxslt_version 1.1.2 |
|
47 |
%define audiofile_version 0.2.5 |
|
48 |
%define esound_version 0.2.33 |
|
49 |
%define gtk_doc_version 1.1 |
|
50 |
%define popt_version 1.7 |
|
51 |
||
52 |
BuildRequires: GConf-devel >= %{GConf_version} |
|
53 |
BuildRequires: libbonobo-devel >= %{libbonobo_version} |
|
54 |
BuildRequires: gnome-vfs-devel >= %{gnome_vfs_version} |
|
55 |
BuildRequires: libxslt-devel >= %{libxslt_version} |
|
56 |
BuildRequires: esound-devel >= %{esound_version} |
|
57 |
# Audio file header files are include in base pkg in SuSE 9.1 |
|
58 |
BuildRequires: audiofile >= %{audiofile_version} |
|
59 |
BuildRequires: gtk-doc >= %{gtk_doc_version} |
|
60 |
BuildRequires: popt-devel >= %{popt_version} |
|
61 |
Requires: GConf >= %{GConf_version} |
|
62 |
Requires: libbonobo >= %{libbonobo_version} |
|
63 |
Requires: esound >= %{esound_version} |
|
64 |
Requires: audiofile >= %{audiofile_version} |
|
65 |
Requires: libxslt >= %{libxslt_version} |
|
66 |
||
67 |
%description |
|
68 |
libgnome is one of the base GNOME libraries, containing convenient API for |
|
69 |
configuration, help, initialization and web links, all specific to the |
|
70 |
GNOME desktop. |
|
71 |
||
72 |
%package devel |
|
73 |
Summary: GNOME Base Development Library |
|
74 |
Group: Development/Libraries/GNOME |
|
75 |
Requires: %name = %version-%release |
|
76 |
Requires: popt-devel >= %{popt_version} |
|
77 |
Requires: libbonobo-devel >= %{libbonobo_version} |
|
78 |
||
79 |
%description devel |
|
80 |
libgnome is one of the base GNOME libraries, containing convenient API for |
|
81 |
configuration, help, initialization and web links, all specific to the |
|
82 |
GNOME desktop. |
|
83 |
||
84 |
%prep |
|
85 |
%setup -q |
|
11614 | 86 |
%if %option_with_sun_branding |
9397 | 87 |
%patch1 -p1 |
11614 | 88 |
%endif |
89 |
%if %option_with_indiana_branding |
|
90 |
%patch2 -p1 |
|
13103 | 91 |
%endif |
12626 | 92 |
%patch3 -p1 |
9397 | 93 |
%patch4 -p1 |
12626 | 94 |
%patch5 -p1 |
13445 | 95 |
%patch6 -p1 |
9397 | 96 |
|
97 |
%build |
|
98 |
%ifos linux |
|
99 |
if [ -x /usr/bin/getconf ]; then |
|
100 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
101 |
fi |
|
102 |
%else |
|
103 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
104 |
%endif |
|
105 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
106 |
CPUS=1 |
|
107 |
fi |
|
108 |
||
109 |
libtoolize --force |
|
110 |
glib-gettextize --copy --force |
|
10397 | 111 |
intltoolize --copy --force --automake |
12031 | 112 |
|
113 |
%if %build_l10n |
|
114 |
bash -x %SOURCE1 --enable-copyright |
|
115 |
%endif |
|
116 |
||
9397 | 117 |
aclocal $ACLOCAL_FLAGS -I . |
118 |
autoconf |
|
119 |
autoheader |
|
120 |
gtkdocize --copy |
|
121 |
automake -a -c -f |
|
122 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
123 |
./configure --prefix=%{_prefix} \ |
|
124 |
--datadir=%{_datadir} \ |
|
125 |
--sysconfdir=%{_sysconfdir} \ |
|
126 |
--libexecdir=%{_libexecdir} \ |
|
127 |
--mandir=%{_mandir} \ |
|
128 |
%{gtk_doc_option} |
|
129 |
./config.status |
|
130 |
make -j $CPUS |
|
131 |
||
132 |
%install |
|
133 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
134 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
135 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
136 |
||
137 |
#Copy zh_HK from zh_TW |
|
138 |
#Fixes bug 4930405 |
|
139 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
|
140 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
141 |
rm $RPM_BUILD_ROOT%{_libdir}/bonobo/monikers/*.a |
|
142 |
rm $RPM_BUILD_ROOT%{_libdir}/bonobo/monikers/*.la |
|
143 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
144 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
145 |
||
12147 | 146 |
#%check |
147 |
make check |
|
148 |
||
9397 | 149 |
%clean |
150 |
rm -rf $RPM_BUILD_ROOT |
|
151 |
||
152 |
%post |
|
153 |
/sbin/ldconfig |
|
154 |
SCHEMAS="desktop_gnome_accessibility_keyboard.schemas \ |
|
155 |
desktop_gnome_accessibility_startup.schemas \ |
|
156 |
desktop_gnome_applications_browser.schemas \ |
|
157 |
desktop_gnome_applications_help_viewer.schemas \ |
|
158 |
desktop_gnome_applications_terminal.schemas \ |
|
159 |
desktop_gnome_applications_window_manager.schemas \ |
|
160 |
desktop_gnome_background.schemas \ |
|
161 |
desktop_gnome_file_views.schemas \ |
|
162 |
desktop_gnome_interface.schemas \ |
|
163 |
desktop_gnome_peripherals_keyboard.schemas \ |
|
164 |
desktop_gnome_peripherals_mouse.schemas \ |
|
165 |
desktop_gnome_sound.schemas \ |
|
166 |
desktop_gnome_thumbnailers.schemas \ |
|
167 |
desktop_gnome_typing_break.schemas \ |
|
168 |
desktop_gnome_lockdown.schemas" |
|
169 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
170 |
for S in $SCHEMAS; do |
|
171 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
172 |
done |
|
173 |
||
174 |
%postun |
|
175 |
/sbin/ldconfig |
|
176 |
||
177 |
%files |
|
178 |
%defattr(-, root, root) |
|
179 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
180 |
%{_bindir}/gnome-open |
|
181 |
%{_sysconfdir}/sound/events/*.soundlist |
|
182 |
%{_sysconfdir}/gconf/schemas/* |
|
183 |
%{_libdir}/libgnome*so.* |
|
184 |
%{_libdir}/bonobo/monikers/*so* |
|
185 |
%{_libdir}/bonobo/servers/*.server |
|
186 |
||
187 |
%files devel |
|
188 |
%defattr(-, root, root) |
|
189 |
%{_libdir}/pkgconfig/libgnome-2.0.pc |
|
190 |
%{_includedir}/libgnome-2.0/libgnome/*.h |
|
191 |
%{_datadir}/gtk-doc/* |
|
192 |
%{_libdir}/libgnome*so |
|
193 |
%{_mandir}/man1/* |
|
194 |
%{_mandir}/man3/* |
|
195 |
%{_mandir}/man7/* |
|
196 |
||
197 |
%changelog |
|
16191 | 198 |
* Thu Jul 31 2009 - [email protected] |
199 |
- Bump to 2.27.5. |
|
15435 | 200 |
* Wed Mar 18 2009 - [email protected] |
201 |
- Bump to 2.26.0 |
|
15384 | 202 |
* Fri Mar 13 2009 - [email protected] |
203 |
- Bump to 2.25.1 |
|
13813 | 204 |
* Mon Sep 29 2008 - [email protected] |
205 |
- Bump to 2.24.1. |
|
13708 | 206 |
* Sun Sep 21 2008 - [email protected] |
207 |
- Bump to 2.23.92. |
|
13445 | 208 |
* Tue Sep 09 2008 - [email protected] |
209 |
- Add patch 06-disable-accessibility. Don't enable accessibility by |
|
210 |
default on development build. |
|
13207 | 211 |
* Thu Aug 21 2008 - [email protected] |
212 |
- Bump to 2.23.5 |
|
13103 | 213 |
* Tue Aug 12 2008 - [email protected] |
214 |
- merge 02-indiana-default-background and 03-indiana-default-theme into |
|
215 |
02-indiana-default and set /desktop/gnome/interface/toolbar_style |
|
216 |
to both-horiz. |
|
12677 | 217 |
* Tue Jun 17 2008 - [email protected] |
218 |
- Bump to 2.23.4. |
|
12582 | 219 |
* Wed Jun 04 2008 - [email protected] |
220 |
- Bump to 2.23.3. |
|
12147 | 221 |
* Wed Apr 16 2008 - [email protected] |
222 |
- Add 'make check' call after %install. |
|
11829 | 223 |
* Mon Mar 10 2008 - [email protected] |
224 |
- Bump to 2.22.0. |
|
225 |
* Thu Mar 06 2008 - [email protected] |
|
11806 | 226 |
- Bump to 2.21.91. |
11614 | 227 |
* Mon Feb 11 2008 - [email protected] |
228 |
- do not apply patches 1 or 2 (branding patches) if neither Sun nor Indiana |
|
229 |
branding is selected |
|
11537 | 230 |
* Mon Jan 28 2008 - [email protected] |
231 |
- Bump to 2.21.90. |
|
11483 | 232 |
* Fri Jan 18 2007 - [email protected] |
233 |
- Addition of Indiana default theme patch |
|
10674 | 234 |
* Fri Oct 19 2007 - [email protected] |
235 |
- Bump to 2.20.1.1. |
|
10598 | 236 |
* Wed Oct 3 2007 - [email protected] |
237 |
- add indiana default background patch |
|
10521 | 238 |
* Wed Sep 19 2007 - [email protected] |
239 |
- Bump to 2.20.0. |
|
10397 | 240 |
* Wed Aug 29 2007 - [email protected] |
241 |
- Add --automake to intltoolize call for consistency with other modules. |
|
10231 | 242 |
* Mon Jul 30 2007 - [email protected] |
243 |
- Bump to 2.19.1. |
|
10081 | 244 |
* Tue Jun 19 2007 - [email protected] |
245 |
- Bump to 2.19.0. |
|
9522 | 246 |
* Mon Mar 12 2007 - [email protected] |
247 |
- Bump to 2.18.0. |
|
9438 | 248 |
* Mon Mar 05 2007 - [email protected] |
249 |
- Bump to 2.17.92. |
|
9397 | 250 |
* Tue Feb 13 2007 - [email protected] |
251 |
- Bump to 2.17.91. |
|
252 |
* Mon Jan 22 2007 - [email protected] |
|
253 |
- Bump to 2.17.90. |
|
254 |
* Wed Jan 10 2007 - [email protected] |
|
255 |
- Bump to 2.17.3. |
|
256 |
* Tue Jan 09 2007 - [email protected] |
|
257 |
- Bump to 2.17.2. |
|
258 |
* Thu Dec 07 2006 - [email protected] |
|
259 |
- Bump to 2.17.1. |
|
260 |
* Wed Nov 22 2006 - [email protected] |
|
261 |
- Bump to 2.17.0. |
|
262 |
* Fri Nov 3 2006 - [email protected] |
|
263 |
- use %gtk_doc_option in configure so that it can be disabled using |
|
264 |
--without-gtk-doc |
|
265 |
* Mon Sep 04 2006 - [email protected] |
|
266 |
- Bump to 2.16.0. |
|
267 |
* Tue Aug 08 2006 - [email protected] |
|
268 |
- Bump to 2.15.2. |
|
269 |
* Fri Jul 21 2006 - [email protected] |
|
270 |
- Bump to 2.15.1. |
|
271 |
* Tue Apr 11 2006 - [email protected] |
|
272 |
- Bump to 2.14.1. |
|
273 |
* Mon Mar 13 2006 - [email protected] |
|
274 |
- Bump to 2.14.0. |
|
275 |
* Tue Feb 28 2006 - [email protected] |
|
276 |
- Bump to 2.13.90. |
|
277 |
* Thu Feb 16 2006 - [email protected] |
|
278 |
- Set libexecdir or else we get /usr/libexec in the |
|
279 |
libgnome.pc file. |
|
280 |
* Tue Jan 17 2006 - [email protected] |
|
281 |
- Bump to 2.13.5 |
|
282 |
* Wed Dec 21 2005 - [email protected] |
|
283 |
- Bump to 2.13.4. |
|
284 |
* Thu Sep 15 2005 - [email protected] |
|
285 |
- Bump to 2.12.0.1. |
|
286 |
* Fri Sep 09 2005 - [email protected] |
|
287 |
- reorder autofoo: move intltoolize after glib-gettextize is the correct |
|
288 |
po/Makefile.in.in is used |
|
289 |
* Tue Sep 06 2005 - [email protected] |
|
290 |
- Call intltoolize, glib-gettextize and gtkdocize to add missing files. |
|
291 |
* Mon Sep 05 2005 - [email protected] |
|
292 |
- Bump to 2.11.3. |
|
293 |
* Mon Aug 15 2005 - [email protected] |
|
294 |
- Bump to 2.11.2. |
|
295 |
* Tue Jul 19 2005 - [email protected] |
|
296 |
- Modify libgnome-02-default-theme.diff, |
|
297 |
libgnome-03-lockdown-schemas.diff and |
|
298 |
libgnome-04-input-method-status-style.diff |
|
299 |
so that the changes are applied to the .schemas.in |
|
300 |
files instead of .schemas files. |
|
301 |
* Thu Jun 23 2005 - [email protected] |
|
302 |
- Modified libgnome-03-lockdown-schemas.diff to |
|
303 |
include starsuite and starsuite-printeradmin in the |
|
304 |
allowed_applications list. |
|
305 |
Fixes bug #6288742. |
|
306 |
* Fri May 20 2005 - [email protected] |
|
307 |
- Remove backgrounds and put them in gnome-backgrounds |
|
308 |
package. Sanitizes things a lot. |
|
309 |
* Thu May 12 2005 - [email protected] |
|
310 |
- Modified libgnome-03-lockdown-schemas.diff to |
|
311 |
update the entries in the allowed_applications list. |
|
312 |
Fixes bug #6266517. |
|
313 |
* Fri May 06 2005 - [email protected] |
|
314 |
- Bump to 2.10.0 |
|
315 |
* Fri Dec 24 2004 - [email protected] |
|
316 |
- Replacing /usr/bin/staroffice with /usr/bin/soffice in |
|
317 |
libgnome-03-lockdown-schemas.diff. Fixes Bug #6208251. |
|
318 |
* Thu Oct 28 2004 - [email protected] |
|
319 |
- Add gnome-open.1 man page |
|
320 |
* Thu Oct 21 2004 - [email protected] |
|
321 |
- Add patch to fix Launcher to be usable as root. |
|
322 |
* Wed Sep 15 2004 - [email protected] |
|
323 |
- Added libgnome-07-g11n-potfiles.diff |
|
324 |
* Wed Aug 18 2004 - [email protected] |
|
325 |
- added --enable-gtk-doc. |
|
326 |
* Mon Aug 09 2004 - [email protected] |
|
327 |
- Added desktop_gnome_typing_break.schemas |
|
328 |
* Thu Jul 08 2004 - [email protected] |
|
329 |
- Updated l10n content to libgnome-l10n-po-1.2.tar.bz2 |
|
330 |
* Wed Jul 07 2004 - [email protected] |
|
331 |
- Ported to rpm4 |
|
332 |
* Wed Jul 07 2004 - [email protected] |
|
333 |
- added "-j $CPUS" to make to speed up builds |
|
334 |
* Tue May 25 2004 - [email protected] |
|
335 |
- Added libgnome-06-g11n-potfiles.diff |
|
336 |
* Thu May 20 2004 - [email protected] |
|
337 |
Add libgnome-05-input-method-status-style.diff again. |
|
338 |
* Wed May 12 2004 - [email protected] |
|
339 |
- Updated l10n content to libgnome-l10n-po-1.1.tar.bz2 |
|
340 |
* Tue May 11 2004 - [email protected] |
|
341 |
- rename jdshelp script |
|
342 |
* Thu May 06 2004 - [email protected] |
|
343 |
- replacing yelp with jds-help.sh in libgnome-03-lockdown-schemas.diff |
|
344 |
* Mon May 3 2004 - [email protected] |
|
345 |
- Add bindir, so we get the joys of gnome-open |
|
346 |
* Wed Apr 14 2004 - [email protected] |
|
347 |
- Removed desktop_gnome_url_handlers.schemas from spec file. |
|
348 |
* Mon Mar 29 2004 - [email protected] |
|
349 |
- Updated l10n content to libgnome-l10n-po-1.0.tar.bz2 |
|
350 |
* Mon Mar 22 2004 - [email protected] |
|
351 |
- Bump to 2.6.0. Remove the the uninstalled pc patch since |
|
352 |
it's upstream. |
|
353 |
* Wed Mar 04 2004 - [email protected] |
|
354 |
- Bump to 2.5.90, as it contains partial lockdown schema file |
|
355 |
- re-engineer lockdown schema patch |
|
356 |
- Remove the OrigTree.pm hack |
|
357 |
* Mon Feb 23 2004 - [email protected] |
|
358 |
- Bump to 2.5.4 |
|
359 |
* Mon Feb 02 2004 - [email protected] |
|
360 |
- Bump to 2.5.3 |
|
361 |
- Add OrigTree.pm as source 5. |
|
362 |
- Unpack source 1 after build into RPM_BUILD_ROOT (fixes solaris breakage). |
|
363 |
- Add patch to add an -uninstalled.pc file for pkgconfig |
|
364 |
* Thu Jan 29 2004 - <[email protected]> |
|
365 |
- Add patch 06 to search in /usr for intltool perl modules |
|
366 |
* Thu Jan 29 2004 - <[email protected]> |
|
367 |
- Add dependency on intltool |
|
368 |
* Mon Dec 15 2003 - [email protected] |
|
369 |
- Bump to 2.5.1 |
|
370 |
* Tue Oct 21 2003 - [email protected] |
|
371 |
- lockdown schema patch |
|
372 |
* Wed Oct 08 2003 - [email protected] |
|
373 |
- Updated for 2.4 |
|
374 |
* Fri Sep 05 2003 - [email protected] |
|
375 |
- Add libgnome-04-schemas-chinese.diff to fix font sizes. |
|
376 |
Fixes bug 4915643. |
|
377 |
* Thu Aug 14 2003 - <[email protected]> |
|
378 |
- move lib*.so to -devel, remove *.a, *.la |
|
379 |
* Thu Aug 07 2003 - [email protected] |
|
380 |
- Update tarball, reset release, bump version. |
|
381 |
* Thu Jul 24 2003 - [email protected] |
|
382 |
- added libgnome-04-background.diff |
|
383 |
* Thu Jul 10 2003 - [email protected] |
|
384 |
- Added .po tarball |
|
385 |
* Thu Jul 03 2003 - [email protected] |
|
386 |
- Remove the joint theme/background patch and separate them |
|
387 |
out |
|
388 |
* Wed Apr 30 2003 - [email protected] |
|
389 |
- Create new spec file for libgnome |