On Fri, 2008-07-18 at 15:16 +0200, gerard.henry at free.fr wrote:
> > > %_bindir because this directory is left empty by Tix
> > > and if a guy (me for example) do a mistake in %attr,
> > > many problems again...
> > >
> > You should not need the %_bindir line. The %doc line is not used on Solaris
> > so it can be removed. Otherwise your %files section is perfect.
> >
> if i remove the line %bindir:
> pkgbuild: ## Packaging complete.
> pkgbuild: Transferring <SFEtix> package instance
> pkgbuild: error: Installed (but unpackaged) file(s) found:
> pkgbuild: /usr/bin
> pkgbuild: pkgbuild: SFEtix.spec(54): Installed (but unpackaged) file(s) found
I think what Damien meant was that if the directory is empty,
you don't need to include it in the package. You should
just rmdir it at the end of %install and then don't list it
in %files:
rmdir $RPM_BUILD_ROOT%{_bindir}
Laca