On Sat, Nov 23, 2013 at 12:47 AM, Michael Schroeder mls@suse.de wrote:
Also, %{_docdir}/steam/ is marked as ghost, so installing the rpm will not create the directory.
It was marked %ghost by the original packager because:
The content in this directory doesn't exist when the %install section is finished. (at least on 12.3)
%install section just created the directory. The contents are filled in later in %post section (something like that).
Without a %ghost the package will fail to build.
That's the black magic.
And /usr/lib/steam is also marked %ghost, but it is created and owned by steam package.
We write such things in %files section simply because we want the rpm to own all the things, the directories created in %install section, and the filled contents in %post section.
Marguerite