RPM Community Forums

Mailing List Message of <rpm-users>

Spec file help

From: Patrick <thegauvenator@gmail.com>
Date: Mon 22 Dec 2008 - 05:48:41 CET
Message-ID: <21c999c0812212048y20489252vc58e5df09fa50ed8@mail.gmail.com>
I'm trying to make a spec file for wget, but I am having problems with the
%file section.  I'm trying to direct it to the files that are installed by
wget, but when it actually trys to build, it doesn't look where i tell it
to.  Everything compiles fine, its just when it looks for the files for the
.rpms it isnt looking where i tell it.

*Spec File:*
Summary: Download utility
Name: wget
Version: 1.11
Release: 4
Copyright: idk
Group: Applications/Internet
Source: wget-1.11.4.tar.gz
BuildRoot: /var/tmp/wget-1.11-4-buildroot

%description
The wget command can be used to download files off the internet.

%prep
%setup -n wget-1.11.4

%build
./configure --prefix=/usr --sysconfdir=/etc &&
make

%install
make install

%clean
rm -rf 

%files
%defattr(-,-,-)
/usr/share/man/man1/wget.1
/usr/bin/wget
/usr/share/info/wget.info
/usr/share/gettext/po/Makefile.in.in
/usr/share/locale/ga/LC_MESSAGES/wget.mo
/usr/share/locale/{be,bg,ca,cs,da,de,el,en_GB,eo,es,et,eu,fi,fr,ga,gl,he,hr,hu,id,it,ja,nb,nl,pl,pt,pt_BR,ro,ru,sk,sl,sr,sv,tr,uk,vi,zh_CN,zh_TW}/LC_MESSAGES/wget.mo
/etc/wgetrc

*Errors when i attemp rpm -ba wget-1.11-4.spec:*

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,es,et,eu,fi,fr,ga,gl,he,hr,hu,id,it,ja,nb,nl,pl,pt,pt_BR,ro,ru,sk,sl,sr,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


RPM build errors:
    File not found: /root/rpm/tmp/wget-root/usr/share/man/man1/wget.1
    File not found: /root/rpm/tmp/wget-root/usr/bin/wget
    File not found: /root/rpm/tmp/wget-root/usr/share/info/wget.info
    File not found: /root/rpm/tmp/wget-root/usr/share/gettext/po/
Makefile.in.in
    File not found:
/root/rpm/tmp/wget-root/usr/share/locale/ga/LC_MESSAGES/wget.mo
    File not found:
/root/rpm/tmp/wget-root/usr/share/locale/{be,bg,ca,cs,da,de,el,en_GB,eo,es,et,eu,fi,fr,ga,gl,he,hr,hu,id,it,ja,nb,nl,pl,pt,pt_BR,ro,ru,sk,sl,sr,sv,tr,uk,vi,zh_CN,zh_TW}/LC_MESSAGES/wget.mo
    File not found: /root/rpm/tmp/wget-root/etc/wgetrc
Received on Mon Dec 22 05:49:05 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.