shared-mime-info.spec revision 13969
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# spec file for package shared-mime-info
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright (c) 2005 Sun Microsystems, Inc.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This file and all modifications and additions to the pristine
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# package are under the same license as the package itself.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Owner: padraig
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# bugdb: bugzilla.freedesktop.org
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterName: shared-mime-info
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLicense: GPL
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterGroup: Hardware/Other
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterVersion: 0.51
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterRelease: 1
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterDistribution: Java Desktop System
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterVendor: Sun Microsystems, Inc.
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterSummary: Core Common Mime Type Database
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#Source: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.bz2
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterSource: http://freedesktop.org/~hadess/%{name}-%{version}.tar.bz2
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterSource1: defaults.list
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%if %build_l10n
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterSource2: l10n-configure.sh
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterURL: http://www.freedesktop.org/Software/%{name}
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterBuildRoot: %{_tmppath}/%{name}-%{version}-build
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterDocDir: %{_defaultdocdir}/%{name}
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterBuildRequires: glib2
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%description
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostershared-mime-info contains the core database of common types and the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterupdate-mime-database command used to extend it.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%prep
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%setup -q
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%build
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%ifos linux
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterif [ -x /usr/bin/getconf ]; then
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster CPUS=`getconf _NPROCESSORS_ONLN`
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterfi
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%else
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterif test "x$CPUS" = "x" -o $CPUS = 0; then
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster CPUS=1
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterfi
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterlibtoolize --force
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterintltoolize --force --copy --automake
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%if %build_l10n
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterbash -x %SOURCE2 --enable-copyright
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosteraclocal $ACLOCAL_FLAGS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterautomake -a -c -f
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterautoconf
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostermake -j $CPUS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%install
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostermkdir -p $RPM_BUILD_ROOT%{_prefix}
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostermkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostermake DESTDIR=$RPM_BUILD_ROOT install-strip
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/applications/defaults.list
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall -d $RPM_BUILD_ROOT%{_datadir}/application-registry
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%clean
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%post
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterupdate-mime-database %{_datadir}/mime
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%files
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%defattr(-,root,root)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%{_bindir}/update-mime-database
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%{_datadir}/locale/*/LC_MESSAGES/shared-mime-info.mo
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# No point in making a seperate devel pkg just for one silly pkgconfig file
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%{_libdir}/pkgconfig/*.pc
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%{_datadir}/mime/*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%{_datadir}/applications/defaults.list
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%{_mandir}/man1/*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%{_datadir}/application-registry
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster%changelog
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Aug 21 2008 - jijun.yu@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.51.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Fri Jun 13 2008 - damien.carbery@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.40.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Wed Aug 29 2007 - damien.carbery@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Add intltoolize calls to update intltool scripts.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Wed Aug 22 2007 - damien.carbery@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.22. Remove both patches as they are upstream.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Tue Jun 26 2007 - matt.keenan@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Split add-mime-types patch into two patches to facilitate pushing upstream
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Mar 15 2007 - damien.carbery@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.20.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Fri Dec 01 2006 - damien.carbery@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.19. Remove upstream patch 02-java-types.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Mon Jul 03 2006 - damien.carbery@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.18
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu May 11 2006 - glynn.foster@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Add Java types from Joe.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Tue Apr 11 2006 - glynn.foster@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.17
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Tue Apr 11 2006 - glynn.foster@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Add shared-mime-info-02-fix-m3u.diff to keep Bart happy.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Dec 09 2005 - archana.shah@wipro.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Modified patch shared-mime-info-01-add-mime-types.diff to include mime type
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster for speex file.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Dec 08 2005 - damien.carbery@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Remove l10n tarball. Not maintained in OpenSolaris releases.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Fri Dec 02 2005 - archana.shah@wipro.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Added javaws in defaults.list as the default application for the .jnlp files. Fixes bug #6351401
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Jul 21 2005 - archana.shah@wipro.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Added defaults.list file in the package. It provides the defaults application
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster handler for all mime types.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Tue Jun 21 2005 - dermot.mccluskey@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- 6285970: create /usr/share/application-registry for RealPlayer
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Jun 16 2005 - matt.keenan@wipro.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.16, re-align patches
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Fri Apr 08 2005 - vinay.mandyakoppal@wipro.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Added shared-mime-info-05-add-magic.diff to provide mime magic for
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster staroffice and opendocuments file types. Fixes #6234855.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Mar 31 2005 - glynn.foster@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Add some more media types to get things working.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Jan 27 2005 - dinoop.thomas@wipro.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Added shared-mime-info-04-mime-type-mrproject.diff patch to
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster associate the application planner for .mrproject files.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Fixes bug #6217022.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Fri Nov 05 2004 - vinay.mandyakoppal@wipro.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Added shared-mime-info-03-mime-type-staroffice-capital.diff to associate
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster correct mime type for staroffice applications extension in capitals.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Fixes bug #5097261.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Oct 28 2004 - matt.keenan@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Add update-mime-database.1 man page
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Wed Sep 15 2004 - ciaran.mcdermott@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Added shared-mime-info-02-g11n-alllinguas.diff, to update support for all linguas
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Jul 08 2004 - damien.donlon@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Updated l10n content to shared-mime-info-l10n-po-1.2.tar.bz2
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Jul 08 2004 - niall.power@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- ported to rpm4
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Wed Jul 07 2004 - dermot.mccluskey@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- added "-j $CPUS" to make to speed up builds
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Wed May 12 2004 - damien.donlon@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Updated l10n content to shared-mime-info-l10n-po-1.1.tar.bz2
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Mon Apr 5 2004 - glynn.foster@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Bump to 0.14.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Wed Mar 31 2004 - brian.cameron@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- replace tar jxf with the more solaris friendly
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster bzcat piped through tar
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Mon Mar 29 2004 - damien.donlon@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Adding shared-mime-info-l10n-po-1.0.tar.bz2 l10n content
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Thu Mar 11 2004 - yuriy.kuznetsov@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- added shared-mime-info-01-g11n-potfiles.diff
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Tue Mar 02 2004 - niall.power@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- remove "-n gtkam" from changelog tag
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- add ACLOCAL_FLAGS to aclocal args
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Mon Feb 23 2004 - matt.keenan@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Update Distro
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster* Mon Feb 02 2004 - matt.keenan@sun.com
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster- Initial version
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster