Why don't you just do rpm --rebuild --target=[your arch] your.src.rpm i.e. for a
Pentium II you'd do rpm --rebuild--target=i686 wget.src.rpm and for an Athlon you'd do
rpm --rebuild--target=athlon wget.src.rpm.
The newly built rpm will appear in /usr/src/redhat/RPM/[arch]/wget-<version>.[arch].rpm
At 10:10 PM 3/5/2001 +0100, you wrote:
>I'm trying to build a wget.rpm and wget.src.rpm from a wget-1.6.tar.gz ...
>to no avail ... I was using several times the first, and one or more times
>the second attached wget.spec ... all these failed builds never gave me
>either a wget-1.6.src.rpm or a wget-1.6.rpm ... I'm rather sure I made
>one ore even more mistakes.
>Most of the time I cd'ed as root to /usr/src/redhat/SOURCES or to
>/usr/src/redhat/SPECS and tried to build the rpms with different
>variations of the following command
>'rpm -ta wget-1.6.tar.gz' ... <---------------
>the only result of the installs were new wget-files scattered over the
>system ... :)
>
>So where do I have to put wget-1.6.tar.gz for the build, and where do I
>have to cd to (really as root ...?) for it, and (above all) which of the
>following wget.spec files seems to be a reasonable solution for the build?
>Note: I'd like to let the wget.spec file inside wget-1.6.tar.gz, that's
>why I want to do
>rpm -ta wget-1.6.tar.gz
>(.. the -ta option)
>
>The following is the wget.spec as I changed (at least parts of it) and
>built it into wget-1.6.tar.gz
>
>################################################################
>Summary: A command-line client to download WWW/FTP documents with optional recursion.
>Name: wget
>%define version 1.6
>Version: %{version}
>Release: 0
>Source: wget-1.6.tar.gz
>Group: Applications/Networking
>Copyright: GPL
>Buildroot: /var/tmp/wget-root
>Packager: Jeff Johnson <[EMAIL PROTECTED]>
>
>%description
>GNU Wget is a freely available network utility to retrieve files from
>the World Wide Web, using HTTP (Hyper Text Transfer Protocol) and
>FTP (File Transfer Protocol), the two most widely used Internet
>protocols.
>This software was built by a newbie on a GNU/Linux Red Hat 6.1, with
>rpm-3.0.5-9.6x, glibc-2.1.3-21 and several more updates on it ...
>I can't guarantee this software will not ruin the system you're
>trying to install it on ...
>[EMAIL PROTECTED]
>
>%prep
>%setup
>./configure
>
>%build
>make
>
>%install
>make install
>
>%files
>%doc README NEWS AUTHORS COPYING INSTALL MACHINES MAILING-LIST
>/usr/bin/wget
>/etc/wgetrc
>/usr/info/wget*
>
>
>####################################################
>The last line of the previous file: isn't there a typo ?
>(/usr/info/wget*)
>
>
>
>and the following wget.spec is the one that was shipped with the original
>wget-1.6.tar.gz
>(please note the (wrong ?) version-number of wget in this file ... and the
>/usr/man/man1/wget.1
>at the end of the file: there doesn't seem to be a man1/wget.1 in the
>wget-1.6.tar.gz ... so I removed this line in my own wget.spec (above)
>(I hope the following formatting for this mail will be readable ...)):
>
>###########################################################
>Summary: A command-line client to download WWW/FTP documents with optional
>recursion.
>Name: wget
>%define version 1.4.5
>Version: %{version}
>Release: 3
>Source: ftp://prep.ai.mit.edu/pub/gnu/wget-1.4.5.tar.gz
>Group: Applications/Networking
>Copyright: GPL
>Buildroot: /var/tmp/wget-root
>Packager: Jeff Johnson <[EMAIL PROTECTED]>
>
>%description
>GNU Wget is a freely available network utility to retrieve files from
>the World Wide Web, using HTTP (Hyper Text Transfer Protocol) and
>FTP (File Transfer Protocol), the two most widely used Internet
>protocols.
>
>%prep
>%setup
>
>%build
>./configure --prefix=/usr --sysconfdir=/etc
>make
>
>%install
>rm -rf $RPM_BUILD_ROOT
>
>make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc
>INSTALL_PROGRAM="install -s" install
>
>gzip -9nf $RPM_BUILD_ROOT/usr/info/wget*
>
>%post
>
>/sbin/install-info /usr/info/wget.info.gz /usr/info/dir --entry="* wget: (wget).
> GNU Wget Manual."
>
>%preun
>
>if [ $1 = 0 ]; then
> /sbin/install-info --delete /usr/info/wget.info.gz /usr/info/dir --entry="*
>wget: (wget). GNU Wget Manual."
>fi
>
>%clean
>rm -rf $RPM_BUILD_ROOT
>
>%files
>%doc README NEWS AUTHORS COPYING INSTALL MACHINES MAILING-LIST
>/usr/bin/wget
>/etc/wgetrc
>/usr/info/wget*
>/usr/man/man1/wget.1
>
>%changelog
>
>* Thu Feb 26 1998 Jeff Johnson <[EMAIL PROTECTED]>
>
>- Simplify previous contrib version.
>####################################################################
>
>Hard work for you, I know this ... but I don't know what else I could do now
>anymore ...
>
>Thanks in anticipation.
>Wolfgang
>
>--
>
> Wolfgang Pfeiffer
> http://www.geocities.com/wolfgangpfeiffer
>
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software
http://www.cedarcreeksoftware.com
Central Texas IT
http://www.centraltexasit.com
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list