Mailinglist Archive: opensuse-packaging (60 mails)

< Previous Next >
Re: [opensuse-packaging] GNOME /usr packaging rules and FAQ
  • From: Stanislav Brabec <sbrabec@xxxxxxx>
  • Date: Tue, 16 Jan 2007 16:30:13 +0100
  • Message-id: <1168961413.32729.163.camel@xxxxxxxxxxxxxx>
Marcus Rueckert wrote:
> On 2007-01-16 08:22:24 -0500, JP Rosevear wrote:
> > On Tue, 2007-01-16 at 12:53 +0100, Stanislav Brabec wrote:
> > > Hallo.
> >
> > > Following scriptlets are needed:
> > >
> > > %post
> > > if test -x usr/bin/update-mime-database ; then
> > > usr/bin/update-mime-database usr/share/mime >/dev/null
> > > fi
> > >
> > > %postun
> > > if test -x usr/bin/update-mime-database ; then
> > > usr/bin/update-mime-database usr/share/mime >/dev/null
> > > fi

> imho you should add a prerequires on the package, which provides
> usr/bin/update-mime-database and only call the binary without the -x
> check.

shared-mime-info is not a prerequisite of these packages itself and it
is not good to introduce it only for MIME type definition. That's why we
use this (more complicated) scriptlet.

Current scriptlet has no prerequisite (except bash). When
shared-mime-info is installed, MIME database is created/updated and
packages which require shared-mime-info work correctly.

--
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarská 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >