Brian,
Laca mentioned previously that there is a bug in
pkgbuild that requires that /usr/share/doc/ to be
defined after the doc files. I think in your case,
this also applies to the initial definition of
/usr/share.
If you change your spec to read:
%doc -d %{base_arch}/libcroco-%{libcroco.version} AUTHORS README
%doc(bzip2) -d %{base_arch}/libcroco-%{libcroco.version} COPYING COPYING.LIB
%doc(bzip2) -d %{base_arch}/libcroco-%{libcroco.version} NEWS
%doc(bzip2) -d %{base_arch}/libcroco-%{libcroco.version} ChangeLog
%doc(bzip2) -d %{base_arch}/libcroco-%{libcroco.version} csslint/ChangeLog
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/doc
it should build, so I assume this is related to the bug
Laca mentioned before.
- Dermot
On 09/15/08 08:14, Brian Cameron wrote:
>
> I already updated the copyright/SUNWlibcroco.copyright file so it is
> in the new format. I tried to update the spec file to include the
> files, but it does not seem to work. I get a weird error that
> /usr/share/share is not being packaged.
>
> pkgbuild: /usr/share/share
> pkgbuild: pkgbuild: SUNWlibcroco.spec(131): Installed (but unpackaged)
> file(s) found
>
> I notice that the SUNWlibcroco.spec file that is currently in spec-files
> has this error. This is the version of the spec.file before I tried
> updating it to include any %doc lines.
>
> I wonder if the problem might be caused by the fact that libcroco,
> by default, does not install anything to %{_datadir}?
>
> I have attached an updated SUNWlibcroco.spec file that includes the
> %doc lines. As I say above, I have not committed these changes upstream
> since I would first like to figure out the above bug before I commit
> these changes.
>
> At any rate, I am hoping someone can tell me how to fix this, or
> if there is a bug in pkgbuild that is causing this module to
> not build the copyright files properly?
>
> Thanks,
>
> Brian
>