Trying to build my own rpm ... don't laugh :-)
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). In the Makefile there is: (...) # Voice: (301) 373-9603 # EMail: cups-info@cups.org # WWW: http://www.cups.org # include Makedefs # # Directories to make... # (...) 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 make %install make prefix=$RPM_BUILD_ROOT/usr install %files %doc README /usr/sbin/cupsd %clean rm -rf $RPM_BUILD_ROOT _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
As a workaround you can do an "sed" in the prep section of the spec file: %prep sed ... Makefile > Makefile.tmp mv Makefile.tmp makefile -- Richard Bos For those without home the journey is endless
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
participants (3)
-
Anders Johansson
-
Richard Bos
-
wolfi