Mailinglist Archive: opensuse-packaging (174 mails)

< Previous Next >
Re: [opensuse-packaging] /var/adm/update-scripts mechanism changed?
On Sat, Nov 23, 2013 at 12:30:06AM +0800, Marguerite Su wrote:
Currently I'm (re-)working on steam package in games:tools repository,
which is a wrapper, using /var/adm/update-scripts mechanism to fill
contents downloaded online into directories pre-created in %install
section of specfile.

And I found something interesting:

In 13.1, the scripts is executed _before_ %install section.

Which means, if you don't create the directories again in your script,
it will fail. AKA, the `touch` way has gone.

Verify here:

Install the package in your 13.1, if you see "failed
/usr/share/doc/packages/steam/steam_* (no such file or directory)",

It indicates it's executed _before_ %install section, after a while
(unpacking steam_1.0.0.44.tar.gz and copy), you'll see your %install
section is processed. And if you `rpm -qf /usr/bin/steam`, it doesn't
belong to any package.

Well, it's not packaged, so why should 'rpm -qf /usr/bin/steam'
return anything?

There's somthing wrong with your spec file:

$ rpm -qpl steam-

I don't think you really want those '*' files.


Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >