Mailinglist Archive: opensuse-packaging (80 mails)

< Previous Next >
[opensuse-packaging] Where to define some rpm macros needed by many packages?
  • From: Vincent Untz <vuntz@xxxxxxxxxxxx>
  • Date: Sat, 7 Aug 2010 14:57:28 +0200
  • Message-id: <20100807125728.GL18220@xxxxxxxxx>
Hi,

I'm facing three cases where many packages should do something in
%post/%postun but usually don't do anything because it's some manual
work, and I want to provide macros to make it easier to fix this.

The three cases are:

+ when installing a .desktop file, update-desktop-database should be
called

+ when installing an icon in the hicolor theme, gtk-update-icon-cache
should be called

+ when installing some mime information in /usr/share/mime,
update-mime-database should be called

I could put macros for this in the respective packages
(desktop-file-utils, gtk2 and shared-mime-info), but I'm not really sure
it's good to force every package installing a .desktop to have a
BuildRequires on desktop-file-utils... On the other hand, I don't feel
those macros should live in the rpm package itself either. Any idea
what would be the best solution?

(Btw, the best long-term solution is some trigger in rpm when a file get
installed in a directory, but I've been waiting for this for a long time
and I don't see it moving...)

Thanks,

Vincent

--
Les gens heureux ne sont pas pressés.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >