espgs-8.15.4 rpmbuild fails

Tom Astle tom at pcc.com
Wed May 9 06:07:00 PDT 2007


There is an error in the spec file:


Change the make line in the %install section to be:

make prefix=$RPM_BUILD_ROOT%{_prefix} install_prefix=$RPM_BUILD_ROOT/ bindir=$RPM_BUILD_ROOT%{_bindir} datadir=$RPM_BUILD_ROOT%{_datadir} mandir=$RPM_BUILD_ROOT%{_mandir} install


> I'm trying to build espgs-8.15.4 rpms using the spec file included in
> the tarball from the cups website but it fails thus:
>
> mkdir -p /var/tmp/ghostscript-root/`cups-config --serverbin`/filter
> ./src/instcopy -c -m 755 pstoraster/pstoraster
> /var/tmp/ghostscript-root/`cups-config --serverbin`/filter
> ./src/instcopy -c -m 755 pstoraster/pstopxl
> /var/tmp/ghostscript-root/`cups-config --serverbin`/filter
> mkdir -p /var/tmp/ghostscript-root/`cups-config --serverroot`
> ./src/instcopy -c -m 644 pstoraster/pstoraster.convs
> /var/tmp/ghostscript-root/`cups-config --serverroot`
> mkdir -p /var/tmp/ghostscript-root/`cups-config --datadir`/model
> ./src/instcopy -c -m 644 pstoraster/pxlcolor.ppd
> /var/tmp/ghostscript-root/`cups-config --datadir`/model
> ./src/instcopy -c -m 644 pstoraster/pxlmono.ppd
> /var/tmp/ghostscript-root/`cups-config --datadir`/model
> + /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/espgs-8.15.4
> 0 blocks
> + /usr/lib/rpm/redhat/brp-compress
> + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
> + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
> + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
> /usr/bin/objdump
> Processing files: ghostscript-8.15.4-0
> error: File not found by glob: /var/tmp/ghostscript-root/usr/bin/*
> Processing files: ghostscript-cups-8.15.4-0
> Requires(interp): /bin/sh
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> Requires(post): /bin/sh
> Requires: /bin/sh cups ghostscript
> Processing files: ghostscript-debuginfo-8.15.4-0
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>
>
> RPM build errors:
>     File not found by glob: /var/tmp/ghostscript-root/usr/bin/*
>
> Sure enough, the gs binary was not placed in the tmp directory for
> rpmbuild to package. It is built, and can be found in the
> /usr/src/redhat/BUILD/espgs-8.15.4/bin/ directory:
>
> $ ls -l /usr/src/redhat/BUILD/espgs-8.15.4/bin/
> total 14680
> -rwxr-xr-x  1 root root 15028297 Mar 15 13:15 gs
>
> I don't know enough about spec file editing to know what has to be
> changed to make it work. Can anybody help?
>





More information about the cups mailing list