On Mon, Jul 29, 2013 at 10:26 AM, Patrick Dupre <pdupre@gmx.com> wrote:
Thank for your help.

>
> On Mon, Jul 29, 2013 at 9:35 AM, Patrick Dupre <pdupre@gmx.com> wrote:
>
> > RPM build errors:
> > File not found by glob:
> > /home/pdupre/rpmbuild/BUILDROOT/perl-PDL-LAPACK-0.12-1.fc18.x86_64/usr/share/perl5/vendor_perl/*
> >
>
> It's saying there's no files there... just cd into there and look around.
> Perhaps the files are not being installed correctly. Another option is to
> just comment out "%{perl_vendorlib}/*" and see if rpmbuild complains about
> unpackaged files.
>
Of course, there is not  /home/pdupre/rpmbuild/BUILDROOT/perl-PDL-LAPACK-0.12-1.fc18.x86_64/usr/share/perl5
But where are the files?

Commenting %{perl_vendorlib}/*
gives:

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pdupre/rpmbuild/BUILDROOT/perl-PDL-LAPACK-0.12-1.fc18.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/lib/debug/.build-id/08/33a58fc0ee04cfa29b0aa6f9c0aaa31f2c6a93
   /usr/lib/debug/.build-id/08/33a58fc0ee04cfa29b0aa6f9c0aaa31f2c6a93.debug
   /usr/lib/debug/usr/lib64/perl5/vendor_perl/auto/PDL/LAPACK/LAPACK.so.debug
   /usr/lib64/perl5/vendor_perl/PDL/LAPACK.pm
   /usr/lib64/perl5/vendor_perl/auto/PDL/LAPACK/LAPACK.bs
   /usr/lib64/perl5/vendor_perl/auto/PDL/LAPACK/LAPACK.so
   /usr/src/debug/PDL-LAPACK-0.12/LAPACK.c
   /usr/src/debug/PDL-LAPACK-0.12/LAPACK.xs


Look closely and I think you'll find your answer. You've set this up as a "noarch" package but the modules are getting installed into /usr/lib64/perl5 not /usr/share/perl5.

Either the package is installing the files to the wrong directory or your package is not a "noarch" package. There's a different macro to use for arch specific packages[1]

Richard

[1] https://fedoraproject.org/wiki/Packaging:Perl?rd=Packaging/Perl#Directory_Ownership