RPM Community Forums

Mailing List Message of <rpm-users>

Re: Spec file help

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Mon 22 Dec 2008 - 18:07:48 CET
Message-Id: <200812221807.48461.eveith@wwweb-library.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I just scanned over your Spec file again. Sorry for my somewhat vague 
answer, but no, the problem does not lie with some macro definition. Your 
error is a side effect of the bad habit of building rpm files either as 
root or without a chroot environment. ;-)

Look, "make install" installs wget just into $PREFIX, i. e. in /usr. Your 
spec file looks for the files installed in %{buildroot}, which 
is /root/rpm/tmp/wget-root. You must modify your %install section to add 
the DESTDIR makefile variable:

make install DESTDIR='%{buildroot}'

HTH.

		-- Eric

On Monday 22 December 2008, Patrick <thegauvenator@gmail.com> wrote:
> ok so this could be a problem with the .rpmmacros?  Forgive me if my
> specfile is sloppy...i'm new to making rpms, and the guides i've been
> using are several years old...if someone has a good link to a more recent
> guide I would appreciate it.
>
> Heres my .rpmmacros:
>
> %_topdir               /root/rpm
> %_tmppath              /root/rpm/tmp
>
> On Mon, Dec 22, 2008 at 9:54 AM, Eric MSP Veith 
<eveith@wwweb-library.net>wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Seems as if something's wrong with your buildpath:
> >
> > On Monday 22 December 2008, Patrick <thegauvenator@gmail.com> wrote:
> > > BuildRoot: /var/tmp/wget-1.11-4-buildroot
> > > [...]
> > > Processing files: wget-1.11-4.x86_64
> > > error: File not found:
> > > /root/rpm/tmp/wget-root/usr/share/man/man1/wget.1 error: File not
> > > found: /root/rpm/tmp/wget-root/usr/bin/wget
> > > error: File not found:
> > > /root/rpm/tmp/wget-root/usr/share/info/wget.info error: File not
> > > found: /root/rpm/tmp/wget-root/usr/share/gettext/po/ Makefile.in.in
> > > error: File not found:
> > > /root/rpm/tmp/wget-root/usr/share/locale/ga/LC_MESSAGES/wget.mo
> > > error: File not found:
> > > /root/rpm/tmp/wget-root/usr/share/locale/{be,bg,ca,cs,da,de,el,en_GB,
> > >eo,e
> > > s,et,eu,fi,fr,ga,gl,he,hr,hu,id,it,ja,nb,nl,pl,pt,pt_BR,ro,ru,sk,sl,s
> > >r,sv, tr,uk,vi,zh_CN,zh_TW}/LC_MESSAGES/wget.mo error: File not found:
> > > /root/rpm/tmp/wget-root/etc/wgetrc
> > > Checking for unpackaged file(s): /usr/lib/rpm/check-files
> > > /root/rpm/tmp/wget-root
> >
> > Have a look at your macros file, a %_buildroot directive there has
> > precedence over what is defined in the spec file.
> >
> > You should clean up the spec file a bit, though. Have a look at the
> > attached
> > one.
> >
> >                -- Eric
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.9 (GNU/Linux)
> >
> > iEYEARECAAYFAklPqi0ACgkQfkUtd7QNU/uObgCgjSior2kbduC92PCTdHZedqNo
> > 3N8An2B1/W+SSsU4BfubM2FxgpSWvAz1
> > =nSGH
> > -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEUEARECAAYFAklPyWQACgkQfkUtd7QNU/tQIACYj54/78rZX+MsLs99otDXTwL2
pgCgmurNGfr+wz+e+hz6I0EFwDDzjbc=
=VLuq
-----END PGP SIGNATURE-----
Received on Mon Dec 22 18:07:51 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.