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 - 15:54:35 CET
Message-Id: <200812221554.40711.eveith@wwweb-library.net>
-----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,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

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-----

--Boundary-00=_wo6TJ+o8eKtHLM9
Content-Type: text/plain;
  charset="iso 8859-15";
  name="wget.spec"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="wget.spec"

Name: wget 
Version: 1.11.4
Release: 2ev
Summary: A network utility for downloading content from the Web.
URL: http://www.gnu.org/software/wget
Group: Applications/Internet
License: GPL-3
Vendor: GNyU-Linux
Source: http://ftp.gnu.org/pub/gnu/wget/wget-%{version}.tar.bz2
Buildroot: %{_tmppath}/%{name}-root
BuildRequires: make >= 3.79.1, gcc, openssl, gettext

%description
GNU Wget is a utility for noninteractive download of files from the Web. It
supports HTTP and FTP protocols, as well as retrieval through HTTP proxies. It
can follow HTML links, download many pages, and convert the links for local
viewing. It can also mirror FTP hierarchies or only those files that have
changed. Wget has been designed for robustness over slow network connections;
if a download fails due to a network problem, it will keep retrying until the
whole file has been retrieved.


%prep
%setup -q


%build
%configure
%{__make} %{?_smp_mflags}


%install
[[ '%{buildroot}' != '/' ]] && %{__rm} -rf '%{buildroot}'
%{__make_install} DESTDIR="${RPM_BUILD_ROOT}"
%{__rm} -f "${RPM_BUILD_ROOT}/%{_infodir}/dir"
%find_lang wget


%post
update-info-dir

%postun
update-info-dir


%clean
[[ '%{buildroot}' != '/' ]] && %{__rm} -rf '%{buildroot}'


%files -f wget.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog* README* MAILING-LIST NEWS
%config(noreplace) %{_sysconfdir}/wgetrc
%{_bindir}/wget
%doc %{_infodir}/wget.info*
%doc %{_mandir}/man1/wget.1*

--Boundary-00=_wo6TJ+o8eKtHLM9--
Received on Mon Dec 22 15:54:46 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.