2005-10-13 Laszlo Peter <
[email protected]>
* blueprint.spec: update to 0.9.16.os (opensolaris branding)
* patches/blueprint-01-fix-configure.diff: remove
* cairo.spec: fix url
* gimp.spec: fix gimp-help url
* glib2.spec: add evil patch to always use lazy loading of modules
(LDRT_LAZY). FIXME: make this Solaris specific and submit to
bugzilla.
* patches/glib-04-gmodule-always-lazy.diff: add
* gnome-applets.spec: remove patch fontconfig.diff: no longer needed
* patches/gnome-applets-05-fontconfig.diff: remove
* patches/gnome-applets-06-Wall.diff: rename to
* patches/gnome-applets-05-Wall.diff.
* gtkam.spec: fix libexif url
* libexif-gtk.spec: fix url
* libical.spec: fix url
* libmusicbrainz.spec: fix url
* libxklavier.spec: fix url
* sun-gdm-themes.spec: update to OpenSolaris branding
* patches/gdm-01-branding-defaults-solaris.diff: use OpenSolaris theme
* shared-mime-info.spec: update url
* webeyes.spec: fix url
#
# spec file for package shared-mime-info
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: shared-mime-info
License: GPL
Group: Hardware/Other
Version: 0.16
Release: 2
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: Core Common Mime Type Database
#Source: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.bz2
Source: http://freedesktop.org/~jrb/%{name}-%{version}.tar.gz
Source1: shared-mime-info-l10n-po-1.16.tar.bz2
Source2: update-mime-database.1.gz
Source4: defaults.list
Patch1: shared-mime-info-01-add-mime-types.diff
URL: http://www.freedesktop.org/Software/%{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
DocDir: %{_defaultdocdir}/%{name}
BuildRequires: glib2
%description
shared-mime-info contains the core database of common types and the
update-mime-database command used to extend it.
%prep
%setup -q
bzcat -dc %SOURCE1|tar xf -
%patch1 -p1
%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
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
make -j $CPUS
%install
mkdir -p $RPM_BUILD_ROOT%{_prefix}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
make DESTDIR=$RPM_BUILD_ROOT install-strip
install -d $RPM_BUILD_ROOT%{_mandir}/man1
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_datadir}/applications/defaults.list
install -d $RPM_BUILD_ROOT%{_datadir}/application-registry
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%post
update-mime-database %{_datadir}/mime
%files
%defattr(-,root,root)
%{_bindir}/update-mime-database
%{_datadir}/locale/*/LC_MESSAGES/shared-mime-info.mo
# No point in making a seperate devel pkg just for one silly pkgconfig file
%{_libdir}/pkgconfig/*.pc
%{_datadir}/mime/*
%{_datadir}/applications/defaults.list
%{_mandir}/man1/*
%{_datadir}/application-registry
%changelog
* Thu Jul 21 2005 - [email protected]
- Added defaults.list file in the package. It provides the defaults application
handler for all mime types.
* Tue Jun 21 2005 - [email protected]
- 6285970: create /usr/share/application-registry for RealPlayer
* Thu Jun 16 2005 - [email protected]
- Bump to 0.16, re-align patches
* Fri Apr 08 2005 - [email protected]
- Added shared-mime-info-05-add-magic.diff to provide mime magic for
staroffice and opendocuments file types. Fixes #6234855.
* Thu Mar 31 2005 - [email protected]
- Add some more media types to get things working.
* Thu Jan 27 2005 - [email protected]
- Added shared-mime-info-04-mime-type-mrproject.diff patch to
associate the application planner for .mrproject files.
Fixes bug #6217022.
* Fri Nov 05 2004 - [email protected]
- Added shared-mime-info-03-mime-type-staroffice-capital.diff to associate
correct mime type for staroffice applications extension in capitals.
Fixes bug #5097261.
* Thu Oct 28 2004 - [email protected]
- Add update-mime-database.1 man page
* Wed Sep 15 2004 - [email protected]
- Added shared-mime-info-02-g11n-alllinguas.diff, to update support for all linguas
* Thu Jul 08 2004 - [email protected]
- Updated l10n content to shared-mime-info-l10n-po-1.2.tar.bz2
* Thu Jul 08 2004 - [email protected]
- ported to rpm4
* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds
* Wed May 12 2004 - [email protected]
- Updated l10n content to shared-mime-info-l10n-po-1.1.tar.bz2
* Mon Apr 5 2004 - [email protected]
- Bump to 0.14.
* Wed Mar 31 2004 - [email protected]
- replace tar jxf with the more solaris friendly
bzcat piped through tar
* Mon Mar 29 2004 - [email protected]
- Adding shared-mime-info-l10n-po-1.0.tar.bz2 l10n content
* Thu Mar 11 2004 - [email protected]
- added shared-mime-info-01-g11n-potfiles.diff
* Tue Mar 02 2004 - [email protected]
- remove "-n gtkam" from changelog tag
- add ACLOCAL_FLAGS to aclocal args
* Mon Feb 23 2004 - [email protected]
- Update Distro
* Mon Feb 02 2004 - [email protected]
- Initial version