Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] RH 9 and SRPM



On Wed, 30 Apr 2003 17:22:30 +0200, Stephan André Schmidté Schmidt
<stephanandre.schmidt@uni-bielefeld.de> wrote:

>[root@valhalla root]# rpmbuild --rebuild /home/stephan/source/hylafax-4.1
>.5-1rh7.src.rpm Installiere /home/stephan/source/hylafax-4.1.5-1rh7.src.rpm
>Fehler: Package already exists: %package debuginfo 
>returns the mentioned output. Has anyone been able to rebuild the SRPM on 

# rpm -i /home/stephan/source/hylafax-4.1.5-1rh7.src.rpm
# vi /usr/src/redhat/SPECS/hylafax.spec
go in the changelog section and search for "%install section" string,
replace it with "install section" (take out the %)
# rpmbuild -ba /usr/src/redhat/SPECS/hylafax.spec

this is due to a change in the recent rpm version which overloaded the
%install section with new stuff (building of debug package), and now rpm is
confused when it sees another "%install".

Also, it's always better not to be root when rebuilding rpms, so you'd
better, as user "stephan"
$ cd
$ mkdir -p redhat/{SRPMS,RPMS,SOURCES,SPECS,BUILD}
$ mkdir -p redhat/RPMS/{i386,i586,i686,noarch,athlon}
$ echo  "%_topdir      /home/stephan/redhat" >> .rpmmacros
$ rpm -i source/hylafax-4.1.5-1rh7.src.rpm
$ vi redhat/SPECS/hylafax.spec
go in the changelog section and search for "%install section" string,
replace it with "install section" (take out the %)
$ rpmbuild -ba redhat/SPECS/hylafax.spec

-- 
giulioo@pobox.com

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services