gnome-mime-data.spec
author dermotm
Mon, 11 Apr 2005 08:50:58 +0000
changeset 5333 817fa62bc95d
parent 5307 78025ad8ce01
child 5370 06fd4677e6e3
permissions -rw-r--r--
Incremented release numbers for build 33

Name:			gnome-mime-data
License:		LGPL
Group:			System/GUI/GNOME
BuildArchitectures:	noarch
Version:		2.4.1
Release:		43
Distribution:		Java Desktop System, Release 3
Vendor:			Sun Microsystems, Inc.
Summary:		MIME Type and Application Database for the GNOME Desktop
Source:			http://ftp.gnome.org/pub/GNOME/sources/gnome-mime-data/2.4/%{name}-%{version}.tar.bz2
Source1:                gnome-mime-data-l10n-po-1.14.tar.bz2
Source2:                gnome-vfs.mime.4.gz
Source3:                gnome-vfs-mime-magic.4.gz
Source4:                gnome-vfs.applications.4.gz
Source5:                gnome-vfs.keys.4.gz
Source6:                l10n-configure.sh
Source7:                gnome-realplay.keys
Patch1:                 gnome-mime-data-01-view-as-audio-component.diff
Patch2:                 gnome-mime-data-02-make-realplayer-default-player.diff
Patch3:                 gnome-mime-data-03-set-mozilla-default.diff
Patch4:                 gnome-mime-data-04-text-plain-handler.diff
Patch5:                 gnome-mime-data-05-always-use-app.diff
Patch6:                 gnome-mime-data-06-swf-handler.diff
Patch7:                 gnome-mime-data-07-jar-handler.diff
Patch8:			gnome-mime-data-08-g11n-keys.diff
Patch9:                 gnome-mime-data-09-add-nfs-mime.diff
Patch10:                gnome-mime-data-10-pdfviewer.diff
Patch11:                gnome-mime-data-11-shellscript.diff
Patch12:                gnome-mime-data-12-associate-glade-files.diff
Patch13:                gnome-mime-data-13-associate-java-files.diff
URL:			http://www.gnome.org
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
Docdir:			%{_defaultdocdir}/%{name}
Autoreqprov:		on

%define gnome_common_version 2.4.0

BuildRequires: gnome-common >= %{gnome_common_version}
BuildRequires: intltool

PreReq: RealPlayer

%description
MIME Type and Application Database for the GNOME Desktop that allows the
GNOME Virtual Filesystem to associate data files with their icon and
description, and to launch them with suitable applications.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1

bzcat %SOURCE1 | tar xvf -
bash -x %SOURCE6

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

libtoolize --force
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros
automake -a -c -f
autoconf
./configure --prefix=%{_prefix}			\
	    --sysconfdir=%{_sysconfdir}		\
            --mandir=%{_mandir}
make -j $CPUS

%install
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install
install -d $RPM_BUILD_ROOT%{_mandir}/man4
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man4
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man4
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man4
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man4
#Copy zh_HK from zh_TW
#Fixes bug 4930405
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo \
	$RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_datadir}/mime-info


%post
install -p -m644 "%{_datadir}/mime-info/gnome-realplay.keys" \
	"%{_datadir}/mime-info/realplay.keys"


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_sysconfdir}/gnome-vfs-mime-magic
%{_datadir}/mime-info/*
%{_datadir}/application-registry/*
%{_mandir}/man4/*
# This package is so small, it's not worth doing a -devel package
# just for the pkgconfig file.
%{_libdir}/pkgconfig/gnome-mime-data-2.0.pc

%changelog
* Wed Apr 06 2005 - [email protected] 
- 6241631: added gnome-realplay.keys, which overwrites
  /usr/share/mime-info/realplay.keys in %post.  This sets
  RP as the player for most possible media types.

* Thu Mar 31 2005 - [email protected] 
- Removed jmplay as default player for many media types in 
  preference of realplayer. It still defaults back to some
  though. Remove the realplayer patch since it's now bogus.

* Fri Mar 11 2005 - [email protected] 
- Added patch gnome-mime-data-14-associate-java-files.diff to
  associate java files with netbeans.
  Fixes bug #6229767.

* Thu Feb 03 2005 - [email protected]
- Added patch gnome-mime-data-13-associate-glade-files.diff to
  associate glade files with glade tool.
  Fixes bug #6222813.

* Fri Nov 26 2004 - [email protected]
- removed patch 13

* Thu Nov 18 2004 - [email protected]
- added patch gnome-mime-data-13-acroread-mozilla-wrappers.diff

* Wed Nov 10 2004 - [email protected]
- Added patch gnome-mime-data-12-shellscript.diff to add flags for
  shell scripts' mime types.

* Tue Oct 05 2004 - [email protected]
- Updated gnome-mime-data-02-make-jmplay-default-player.diff to add x-gsm mime
  Fixed 6173640

* Wed Sep 15 2004 - [email protected]
- Added patch gnome-mime-data-11-pdfviewer.diff.
  Fixes bug# 5100997

* Wed Jul 14 2004 - [email protected]
- Added patch gnome-mime-data-10-add-nfs-mime.diff to add entries for
  x-directory/nfs-mount and x-directory/nfs-share mime types to enable
  browsing nfs:// locations. Fixes bugtraq bug#5034725.

* Thu Jul 08 2004 - [email protected]
- Updated l10n content to gnome-mime-data-l10n-po-1.2.tar.bz2

* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds

* Wed Jun 23 2004 - [email protected]
- Added patch gnome-mime-data-09-realplayer-command-change.diff to 
  fix the problem of mime association for realplayer by correcting 
  the command name. Fixes bugtraq bug#5061307

* Wed May 12 2004 - [email protected]
- Updated l10n content to gnome-mime-data-l10n-po-1.1.tar.bz2

* Tue Apr 27 2004 - [email protected]
- Set mozilla as the default browser for text/html mime type.

* Mon Mar 29 2004 - [email protected]
- Updated l10n content to gnome-mime-data-l10n-po-1.0.tar.bz2

* Mon Mar 22 2004 - <[email protected]>
- Replaced gnome-mime-data-08-i18n-keys.diff with
  gnome-mime-data-08-g11n-keys.diff

* Mon Feb 23 2004  <[email protected]>
- Repatched gnome-mime-data-02-make-jmplay-default-player.diff for
  cinnabar.

* Mon Feb 23 2004 - <[email protected]>
- New tarball 2.4.1, ported patches, still two patches to do

* Thu Jan 29 2004 - <[email protected]>
- Add dependency on intltool
                                                                                                                                                             
* Mon Dec 15 2003 - <[email protected]
- Add back the man pages, and some patches.

* Mon Oct 20 2003 - <[email protected]
- Added patch gnome-mime-data-04-text-plain-handler.diff which was in
  Mercury so that gedit is lauched instead of text viewer for nautilus
  on a text/*.

* Wed Oct 15 2003 - <[email protected]> 2.4.0-2
- Re-add the view-as-webpage diff.

* Tue Oct 07 2003 - [email protected]
- Updated to use GNOME 2.4 for Quicksilver. Deleted one patch and
  renumbered the other one.

* Thu Aug 21 2003 - [email protected]
- Updated gnome-vfs.applications to include all the real formats
  that realplay itself understand since the current definitions is
  rather limiting. simply updated the Patch3.

* Wed Aug 20 2003 - [email protected]
- updated gnome-vfs.applications, gnome-vfs.keys.in and gnome-vfs.mime
  to include some of the more obscure mime types that jmplay can 
  handle including x-gsm, rmf, ogg, mvr, x-jmx.

* Mon Aug 18 2003 - [email protected]
- created a patch to add jmplay as default media player.

* Mon Aug 11 2003 - <[email protected]>
- new tarball, reset release

* Mon Jul 28 2003 - <[email protected]>
- Make pdfs get opened in the gpdf component by default

* Wed Jul 09 2003 - <[email protected]>
- add in sun po files

* Mon Jul 07 2003 - <[email protected]>
- added patch to shortlist nautilus_audio_view for viewing directory contents.

* Thu May 13 2003 - [email protected]
- Created new spec file for gnome-mime-data