Home | History | Annotate | Download | only in gnome-2-16
      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 #
      8 # Owner: alo
      9 #
     10 Name:			gnome-mime-data
     11 License:		LGPL
     12 Group:			System/GUI/GNOME
     13 BuildArchitectures:	noarch
     14 Version:		2.4.3
     15 Release:		2
     16 Distribution:		Java Desktop System
     17 Vendor:			Sun Microsystems, Inc.
     18 Summary:		MIME Type and Application Database for the GNOME Desktop
     19 Source:			http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.4/%{name}-%{version}.tar.bz2
     20 Source1:                gnome-realplay.keys
     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
     25 Patch1:                 gnome-mime-data-01-realplay-g11n-keys.diff  
     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
     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
     35 URL:			http://www.gnome.org
     36 BuildRoot:		%{_tmppath}/%{name}-%{version}-build
     37 Docdir:			%{_defaultdocdir}/%{name}
     38 Autoreqprov:		on
     39 
     40 %define gnome_common_version 2.4.0
     41 
     42 BuildRequires: gnome-common >= %{gnome_common_version}
     43 BuildRequires: intltool
     44 BuildRequires: glib2
     45 
     46 PreReq: RealPlayer
     47 Prereq: coreutils
     48 
     49 %description
     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.
     53 
     54 %prep
     55 %setup -q
     56 %patch1 -p1
     57 %patch2 -p1
     58 %patch3 -p1
     59 %patch4 -p1
     60 %patch5 -p1
     61 %patch6 -p1
     62 %patch7 -p1
     63 %patch8 -p1
     64 %patch9 -p1
     65 %patch10 -p1
     66 
     67 %build
     68 %ifos linux
     69 if [ -x /usr/bin/getconf ]; then
     70   CPUS=`getconf _NPROCESSORS_ONLN`
     71 fi
     72 %else
     73   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     74 %endif
     75 if test "x$CPUS" = "x" -o $CPUS = 0; then
     76   CPUS=1
     77 fi
     78 
     79 libtoolize --force
     80 aclocal $ACLOCAL_FLAGS
     81 automake -a -c -f
     82 autoconf
     83 ./configure --prefix=%{_prefix}			\
     84 	    --sysconfdir=%{_sysconfdir}		\
     85             --mandir=%{_mandir}
     86 make -j $CPUS
     87 
     88 %install
     89 make DESTDIR=$RPM_BUILD_ROOT install
     90 make DESTDIR=$RPM_BUILD_ROOT install
     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
     96 #Copy zh_HK from zh_TW
     97 #Fixes bug 4930405
     98 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
     99 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo \
    100 	$RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
    101 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/mime-info
    102 
    103 
    104 %post
    105 install -p -m644 "%{_datadir}/mime-info/gnome-realplay.keys" \
    106 	"%{_datadir}/mime-info/realplay.keys"
    107 
    108 
    109 %clean
    110 rm -rf $RPM_BUILD_ROOT
    111 
    112 %files
    113 %defattr(-,root,root)
    114 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    115 %{_sysconfdir}/gnome-vfs-mime-magic
    116 %{_datadir}/mime-info/*
    117 %{_datadir}/application-registry/*
    118 %{_mandir}/man4/*
    119 # This package is so small, it's not worth doing a -devel package
    120 # just for the pkgconfig file.
    121 %{_libdir}/pkgconfig/gnome-mime-data-2.0.pc
    122 
    123 %changelog
    124 * Thu Nov 09 2006 - damien.carbery@sun.com
    125 - Bump to 2.4.3.
    126 
    127 * Wed Jul 27 2005 - narayana.pattipati@wipro.com
    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 - vinay.mandyakoppal@wipro.com
    133 - Added patch gnome-mime-data-14-return-path-pattern.diff given by 
    134   Antonio Xu <Antonio.Xu@Sun.COM> to add pattern "Return-path"
    135   for message.rfc822. fixes bug #6267137.
    136 
    137 * Fri May 06 2005 - glynn.foster@sun.com 
    138 - Bump to 2.4.2
    139 
    140 * Wed Apr 06 2005 - dermot.mccluskey@sun.com 
    141 - 6241631: added gnome-realplay.keys, which overwrites
    142   /usr/share/mime-info/realplay.keys in %post.  This sets
    143   RP as the player for most possible media types.
    144 
    145 * Thu Mar 31 2005 - glynn.foster@wipro.com 
    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 
    150 * Fri Mar 11 2005 - dinoop.thomas (at] wipro.com 
    151 - Added patch gnome-mime-data-14-associate-java-files.diff to
    152   associate java files with netbeans.
    153   Fixes bug #6229767.
    154 
    155 * Thu Feb 03 2005 - dinoop.thomas (at] wipro.com
    156 - Added patch gnome-mime-data-13-associate-glade-files.diff to
    157   associate glade files with glade tool.
    158   Fixes bug #6222813.
    159 
    160 * Fri Nov 26 2004 - laca (at] sun.com
    161 - removed patch 13
    162 
    163 * Thu Nov 18 2004 - laca (at] sun.com
    164 - added patch gnome-mime-data-13-acroread-mozilla-wrappers.diff
    165 
    166 * Wed Nov 10 2004 - archana.shah (at] wipro.com
    167 - Added patch gnome-mime-data-12-shellscript.diff to add flags for
    168   shell scripts' mime types.
    169 
    170 * Tue Oct 05 2004 - takao.fujiwara@sun.com
    171 - Updated gnome-mime-data-02-make-jmplay-default-player.diff to add x-gsm mime
    172   Fixed 6173640
    173 
    174 * Wed Sep 15 2004 - archana.shah@wipro.com
    175 - Added patch gnome-mime-data-11-pdfviewer.diff.
    176   Fixes bug# 5100997
    177 
    178 * Wed Jul 14 2004 - narayana.pattipati@wipro.com
    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 
    183 * Thu Jul 08 2004 - damien.donlon@sun.com
    184 - Updated l10n content to gnome-mime-data-l10n-po-1.2.tar.bz2
    185 
    186 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    187 - added "-j $CPUS" to make to speed up builds
    188 
    189 * Wed Jun 23 2004 - narayana.pattipati@wipro.com
    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 
    194 * Wed May 12 2004 - damien.donlon@sun.com
    195 - Updated l10n content to gnome-mime-data-l10n-po-1.1.tar.bz2
    196 
    197 * Tue Apr 27 2004 - vijaykumar.patwari@wipro.com
    198 - Set mozilla as the default browser for text/html mime type.
    199 
    200 * Mon Mar 29 2004 - damien.donlon@sun.com
    201 - Updated l10n content to gnome-mime-data-l10n-po-1.0.tar.bz2
    202 
    203 * Mon Mar 22 2004 - <takao.fujiwara@sun.com>
    204 - Replaced gnome-mime-data-08-i18n-keys.diff with
    205   gnome-mime-data-08-g11n-keys.diff
    206 
    207 * Mon Feb 23 2004  <ghee.teo@sun.com>
    208 - Repatched gnome-mime-data-02-make-jmplay-default-player.diff for
    209   cinnabar.
    210 
    211 * Mon Feb 23 2004 - <stephen.browne@sun.com>
    212 - New tarball 2.4.1, ported patches, still two patches to do
    213 
    214 * Thu Jan 29 2004 - <dermot.mccluskey@sun.com>
    215 - Add dependency on intltool
    216                                                                                                                                                              
    217 * Mon Dec 15 2003 - <glynn.foster@sun.com
    218 - Add back the man pages, and some patches.
    219 
    220 * Mon Oct 20 2003 - <ghee.teo@sun.com
    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 
    225 * Wed Oct 15 2003 - <markmc@sun.com> 2.4.0-2
    226 - Re-add the view-as-webpage diff.
    227 
    228 * Tue Oct 07 2003 - ghee.teo@sun.com
    229 - Updated to use GNOME 2.4 for Quicksilver. Deleted one patch and
    230   renumbered the other one.
    231 
    232 * Thu Aug 21 2003 - ghee.teo@sun.com
    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 
    237 * Wed Aug 20 2003 - ghee.teo@sun.com
    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 
    242 * Mon Aug 18 2003 - brian.nitz@sun.com
    243 - created a patch to add jmplay as default media player.
    244 
    245 * Mon Aug 11 2003 - <stephen.browne@sun.com>
    246 - new tarball, reset release
    247 
    248 * Mon Jul 28 2003 - <markmc@sun.com>
    249 - Make pdfs get opened in the gpdf component by default
    250 
    251 * Wed Jul 09 2003 - <michael.twomey@sun.com>
    252 - add in sun po files
    253 
    254 * Mon Jul 07 2003 - <niall.power@sun.com>
    255 - added patch to shortlist nautilus_audio_view for viewing directory contents.
    256 
    257 * Thu May 13 2003 - ghee.teo@Sun.COM
    258 - Created new spec file for gnome-mime-data
    259