[Fedora-packaging] touch

Bruno Wolff III bruno at wolff.to
Tue Jul 21 13:28:33 UTC 2009


On Mon, Jul 20, 2009 at 20:28:24 +0200,
  Eric Tanguy <eric.tanguy at univ-nantes.fr> wrote:
> Le 20/07/2009 19:07, Ralf Corsepius a écrit :
>> On 07/20/2009 06:55 PM, Eric Tanguy wrote:
>>> I need to touch a file in spec file. I think the better place is at the
>>> end of %prep ?
>> Depends on what you actually are doing.
>> "touch" may serve for different purposes.
> I need to touch the configuration file for Qt Assistant in a manual  
> package to make Assistant update the cache during an update. You can  
> follow the discussion upstream :  
> https://sourceforge.net/forum/forum.php?thread_id=3333352&forum_id=708156

If the touch needs to happen when the update is applied, then it probably
needs to be in post (and maybe postun as well). And for stuff done in
post and postun you can't assume coreutils and will need to add appropriate
requires.
Requires(post): coreutils
Requires(postun): coreutils




More information about the Fedora-packaging mailing list