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