On Sunday 24 February 2002 11.03, wolfi wrote:
Hi,
I am trying to build an rpm from cups-1.1.14 Problem is, when I run:
# rpm -ba cups-1.1.14.spec
I get the error:
(...) + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.93156 + umask 022 + cd /usr/src/packages/BUILD + cd cups-1.1.14 + make Makefile:25: Makedefs: No such file or directory make: *** No rule to make target `Makedefs'. Stop. Bad exit status from /var/tmp/rpm-tmp.93156 (%build)
In the /usr/src/packages/BUILD/cups-1.1.14 directory there is only a file Makedefs.in and no plain Makedefs (without any extension).
Usually, the .in is used by configure. It looks like you're never running configure here.
Editing the Makefile and changing Makedefs to Makedefs.in first seems suspicious to me, and second doesn't help either, since when I run rpm -ba, the original tar.gz gets newly unpacked and these changes are overwritten. So if this would be the way, I would have to repack the tar.gz file. Is there something special which has to written to the spec file? I copy the spec file below, for your information. Maybe there are other errors as well, feel free to complain about them:-)
Cheers and TiA ... Wolfi ============================================= mailto:wolfi_z@yahoo.com
# # Spec file for cups-1.1.14 #
Summary: Common Unix Printing System Name: cups Version: 1.1.14 Release: 0 Copyright: GPL Group: Network Source: cups-1.1.14-source.tar.gz URL: http://www.cups.org Distribution: SuSE Linux Vendor: SuSE Inc. Packager: wolfi <wolfi_z@yahoo.com> %description cups is the common unix printing system used as a print spooler. It can handle numerous printers
SuSE series: n
%prep %setup
%build
insert "configure" here
make
%install make prefix=$RPM_BUILD_ROOT/usr install
%files %doc README /usr/sbin/cupsd
%clean rm -rf $RPM_BUILD_ROOT
regards Anders