author | hh150184 |
Tue, 24 Jan 2006 11:56:37 +0000 | |
branch | gnome-2-12 |
changeset 19207 | b59a653a3329 |
parent 5518 | 235b0b4aa324 |
child 8387 | 1199a814417c |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package gnome-mime-data |
|
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 |
# |
|
186 | 8 |
Name: gnome-mime-data |
9 |
License: LGPL |
|
10 |
Group: System/GUI/GNOME |
|
11 |
BuildArchitectures: noarch |
|
5518 | 12 |
Version: 2.4.2 |
13 |
Release: 2 |
|
14 |
Distribution: Java Desktop System |
|
575 | 15 |
Vendor: Sun Microsystems, Inc. |
186 | 16 |
Summary: MIME Type and Application Database for the GNOME Desktop |
5518 | 17 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.4/%{name}-%{version}.tar.bz2 |
18 |
Source1: gnome-realplay.keys |
|
1432 | 19 |
Source2: gnome-vfs.mime.4.gz |
20 |
Source3: gnome-vfs-mime-magic.4.gz |
|
21 |
Source4: gnome-vfs.applications.4.gz |
|
22 |
Source5: gnome-vfs.keys.4.gz |
|
5518 | 23 |
Patch1: gnome-mime-data-01-make-realplayer-default-player.diff |
24 |
Patch2: gnome-mime-data-02-set-mozilla-default.diff |
|
25 |
Patch3: gnome-mime-data-03-text-plain-handler.diff |
|
26 |
Patch4: gnome-mime-data-04-always-use-app.diff |
|
27 |
Patch5: gnome-mime-data-05-swf-handler.diff |
|
28 |
Patch6: gnome-mime-data-06-jar-handler.diff |
|
29 |
Patch7: gnome-mime-data-07-g11n-keys.diff |
|
30 |
Patch8: gnome-mime-data-08-pdfviewer.diff |
|
31 |
Patch9: gnome-mime-data-09-shellscript.diff |
|
32 |
Patch10: gnome-mime-data-10-associate-glade-files.diff |
|
33 |
Patch11: gnome-mime-data-11-associate-java-files.diff |
|
34 |
Patch12: gnome-mime-data-12-return-path-pattern.diff |
|
186 | 35 |
URL: http://www.gnome.org |
36 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
37 |
Docdir: %{_defaultdocdir}/%{name} |
|
38 |
Autoreqprov: on |
|
39 |
||
1208 | 40 |
%define gnome_common_version 2.4.0 |
186 | 41 |
|
42 |
BuildRequires: gnome-common >= %{gnome_common_version} |
|
1552 | 43 |
BuildRequires: intltool |
5518 | 44 |
BuildRequires: glib2 |
27 | 45 |
|
5307
78025ad8ce01
6241631: gnome-mime-data.spec: add PreReq: RealPlayer
dermotm
parents:
5306
diff
changeset
|
46 |
PreReq: RealPlayer |
5518 | 47 |
Prereq: coreutils |
5307
78025ad8ce01
6241631: gnome-mime-data.spec: add PreReq: RealPlayer
dermotm
parents:
5306
diff
changeset
|
48 |
|
27 | 49 |
%description |
152 | 50 |
MIME Type and Application Database for the GNOME Desktop that allows the |
51 |
GNOME Virtual Filesystem to associate data files with their icon and |
|
52 |
description, and to launch them with suitable applications. |
|
27 | 53 |
|
54 |
%prep |
|
1432 | 55 |
%setup -q |
56 |
%patch1 -p1 |
|
1882 | 57 |
%patch2 -p1 |
1273 | 58 |
%patch3 -p1 |
1304 | 59 |
%patch4 -p1 |
1432 | 60 |
%patch5 -p1 |
1867 | 61 |
%patch6 -p1 |
62 |
%patch7 -p1 |
|
2273 | 63 |
%patch8 -p1 |
3189 | 64 |
%patch9 -p1 |
3335 | 65 |
%patch10 -p1 |
3933 | 66 |
%patch11 -p1 |
4498 | 67 |
%patch12 -p1 |
4455 | 68 |
|
27 | 69 |
%build |
3263 | 70 |
%ifos linux |
71 |
if [ -x /usr/bin/getconf ]; then |
|
72 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
73 |
fi |
|
74 |
%else |
|
3846 | 75 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 76 |
%endif |
77 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
78 |
CPUS=1 |
|
79 |
fi |
|
80 |
||
1551 | 81 |
libtoolize --force |
5518 | 82 |
aclocal $ACLOCAL_FLAGS |
1551 | 83 |
automake -a -c -f |
84 |
autoconf |
|
186 | 85 |
./configure --prefix=%{_prefix} \ |
86 |
--sysconfdir=%{_sysconfdir} \ |
|
87 |
--mandir=%{_mandir} |
|
3263 | 88 |
make -j $CPUS |
27 | 89 |
|
90 |
%install |
|
152 | 91 |
make DESTDIR=$RPM_BUILD_ROOT install |
1432 | 92 |
make DESTDIR=$RPM_BUILD_ROOT install |
1522 | 93 |
install -d $RPM_BUILD_ROOT%{_mandir}/man4 |
94 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man4 |
|
95 |
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man4 |
|
96 |
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man4 |
|
97 |
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man4 |
|
1432 | 98 |
#Copy zh_HK from zh_TW |
99 |
#Fixes bug 4930405 |
|
1522 | 100 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
5306
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
101 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo \ |
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
102 |
$RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
5518 | 103 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/mime-info |
5306
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
104 |
|
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
105 |
|
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
106 |
%post |
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
107 |
install -p -m644 "%{_datadir}/mime-info/gnome-realplay.keys" \ |
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
108 |
"%{_datadir}/mime-info/realplay.keys" |
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
109 |
|
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
110 |
|
27 | 111 |
%clean |
112 |
rm -rf $RPM_BUILD_ROOT |
|
113 |
||
114 |
%files |
|
115 |
%defattr(-,root,root) |
|
186 | 116 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
152 | 117 |
%{_sysconfdir}/gnome-vfs-mime-magic |
186 | 118 |
%{_datadir}/mime-info/* |
119 |
%{_datadir}/application-registry/* |
|
1432 | 120 |
%{_mandir}/man4/* |
152 | 121 |
# This package is so small, it's not worth doing a -devel package |
122 |
# just for the pkgconfig file. |
|
186 | 123 |
%{_libdir}/pkgconfig/gnome-mime-data-2.0.pc |
27 | 124 |
|
125 |
%changelog |
|
5518 | 126 |
* Wed Jul 27 2005 - [email protected] |
127 |
- Removed patch gnome-mime-data-08-add-nfs-mime.diff because its not |
|
128 |
required anymore after nfs:// method removal from gnome-vfs. Renamed |
|
129 |
the following patches accordingly. |
|
130 |
||
131 |
* Tue May 10 2005 - [email protected] |
|
132 |
- Added patch gnome-mime-data-14-return-path-pattern.diff given by |
|
133 |
Antonio Xu <[email protected]> to add pattern "Return-path" |
|
134 |
for message.rfc822. fixes bug #6267137. |
|
135 |
||
136 |
* Fri May 06 2005 - [email protected] |
|
137 |
- Bump to 2.4.2 |
|
138 |
||
5306
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
139 |
* Wed Apr 06 2005 - [email protected] |
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
140 |
- 6241631: added gnome-realplay.keys, which overwrites |
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
141 |
/usr/share/mime-info/realplay.keys in %post. This sets |
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
142 |
RP as the player for most possible media types. |
a09ba4a71ecc
6241631: overwrite RealPlayer's realplay.keys with new version
dermotm
parents:
5289
diff
changeset
|
143 |
|
5289 | 144 |
* Thu Mar 31 2005 - [email protected] |
145 |
- Removed jmplay as default player for many media types in |
|
146 |
preference of realplayer. It still defaults back to some |
|
147 |
though. Remove the realplayer patch since it's now bogus. |
|
148 |
||
5217 | 149 |
* Fri Mar 11 2005 - [email protected] |
150 |
- Added patch gnome-mime-data-14-associate-java-files.diff to |
|
151 |
associate java files with netbeans. |
|
152 |
Fixes bug #6229767. |
|
153 |
||
5009 | 154 |
* Thu Feb 03 2005 - [email protected] |
155 |
- Added patch gnome-mime-data-13-associate-glade-files.diff to |
|
156 |
associate glade files with glade tool. |
|
157 |
Fixes bug #6222813. |
|
158 |
||
4664 | 159 |
* Fri Nov 26 2004 - [email protected] |
160 |
- removed patch 13 |
|
161 |
||
4592 | 162 |
* Thu Nov 18 2004 - [email protected] |
163 |
- added patch gnome-mime-data-13-acroread-mozilla-wrappers.diff |
|
164 |
||
4498 | 165 |
* Wed Nov 10 2004 - [email protected] |
166 |
- Added patch gnome-mime-data-12-shellscript.diff to add flags for |
|
167 |
shell scripts' mime types. |
|
168 |
||
4148 | 169 |
* Tue Oct 05 2004 - [email protected] |
170 |
- Updated gnome-mime-data-02-make-jmplay-default-player.diff to add x-gsm mime |
|
171 |
Fixed 6173640 |
|
172 |
||
3933 | 173 |
* Wed Sep 15 2004 - [email protected] |
174 |
- Added patch gnome-mime-data-11-pdfviewer.diff. |
|
175 |
Fixes bug# 5100997 |
|
176 |
||
3335 | 177 |
* Wed Jul 14 2004 - [email protected] |
178 |
- Added patch gnome-mime-data-10-add-nfs-mime.diff to add entries for |
|
179 |
x-directory/nfs-mount and x-directory/nfs-share mime types to enable |
|
180 |
browsing nfs:// locations. Fixes bugtraq bug#5034725. |
|
181 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
182 |
* 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
|
183 |
- Updated l10n content to gnome-mime-data-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
|
184 |
|
3263 | 185 |
* Wed Jul 07 2004 - [email protected] |
186 |
- added "-j $CPUS" to make to speed up builds |
|
187 |
||
3189 | 188 |
* Wed Jun 23 2004 - [email protected] |
189 |
- Added patch gnome-mime-data-09-realplayer-command-change.diff to |
|
190 |
fix the problem of mime association for realplayer by correcting |
|
191 |
the command name. Fixes bugtraq bug#5061307 |
|
192 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
193 |
* 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
|
194 |
- Updated l10n content to gnome-mime-data-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
|
195 |
|
2571 | 196 |
* Tue Apr 27 2004 - [email protected] |
197 |
- Set mozilla as the default browser for text/html mime type. |
|
198 |
||
2350 | 199 |
* Mon Mar 29 2004 - [email protected] |
200 |
- Updated l10n content to gnome-mime-data-l10n-po-1.0.tar.bz2 |
|
201 |
||
2273 | 202 |
* Mon Mar 22 2004 - <[email protected]> |
203 |
- Replaced gnome-mime-data-08-i18n-keys.diff with |
|
204 |
gnome-mime-data-08-g11n-keys.diff |
|
205 |
||
1882 | 206 |
* Mon Feb 23 2004 <[email protected]> |
207 |
- Repatched gnome-mime-data-02-make-jmplay-default-player.diff for |
|
208 |
cinnabar. |
|
209 |
||
1867 | 210 |
* Mon Feb 23 2004 - <[email protected]> |
211 |
- New tarball 2.4.1, ported patches, still two patches to do |
|
212 |
||
1552 | 213 |
* Thu Jan 29 2004 - <[email protected]> |
214 |
- Add dependency on intltool |
|
215 |
||
1432 | 216 |
* Mon Dec 15 2003 - <[email protected] |
217 |
- Add back the man pages, and some patches. |
|
218 |
||
1304 | 219 |
* Mon Oct 20 2003 - <[email protected] |
220 |
- Added patch gnome-mime-data-04-text-plain-handler.diff which was in |
|
221 |
Mercury so that gedit is lauched instead of text viewer for nautilus |
|
222 |
on a text/*. |
|
223 |
||
1271 | 224 |
* Wed Oct 15 2003 - <[email protected]> 2.4.0-2 |
225 |
- Re-add the view-as-webpage diff. |
|
1274 | 226 |
|
1208 | 227 |
* Tue Oct 07 2003 - [email protected] |
228 |
- Updated to use GNOME 2.4 for Quicksilver. Deleted one patch and |
|
229 |
renumbered the other one. |
|
230 |
||
1109 | 231 |
* Thu Aug 21 2003 - [email protected] |
232 |
- Updated gnome-vfs.applications to include all the real formats |
|
233 |
that realplay itself understand since the current definitions is |
|
234 |
rather limiting. simply updated the Patch3. |
|
235 |
||
1097 | 236 |
* Wed Aug 20 2003 - [email protected] |
237 |
- updated gnome-vfs.applications, gnome-vfs.keys.in and gnome-vfs.mime |
|
238 |
to include some of the more obscure mime types that jmplay can |
|
239 |
handle including x-gsm, rmf, ogg, mvr, x-jmx. |
|
240 |
||
1070 | 241 |
* Mon Aug 18 2003 - [email protected] |
242 |
- created a patch to add jmplay as default media player. |
|
243 |
||
1032 | 244 |
* Mon Aug 11 2003 - <[email protected]> |
245 |
- new tarball, reset release |
|
246 |
||
839 | 247 |
* Mon Jul 28 2003 - <[email protected]> |
248 |
- Make pdfs get opened in the gpdf component by default |
|
249 |
||
510 | 250 |
* Wed Jul 09 2003 - <[email protected]> |
251 |
- add in sun po files |
|
252 |
||
839 | 253 |
* Mon Jul 07 2003 - <[email protected]> |
459 | 254 |
- added patch to shortlist nautilus_audio_view for viewing directory contents. |
839 | 255 |
|
27 | 256 |
* Thu May 13 2003 - [email protected] |
257 |
- Created new spec file for gnome-mime-data |