Re: Compiling RPMS for RedHat 7.3 from CVS Source

Buchan Milne <[email protected]>
Newsgroups gmane.network.samba.binaries
Message-ID <[email protected]>
On Sun, 8 Sep 2002, Mark Belfanti wrote:

> Hi all,
> To start I am still very new to samba and this is my first attempt to
> build RPMS from the CVS source. I am trying to use the script you have
> in /packaging/Redhat.
> I keep getting an error that samba-PVERSION cant be found, see below:
>
> [root@LSALNXS01 RedHat]# pwd  /usr/src/samba/packaging/RedHat
> [root@LSALNXS01 RedHat]# sh makerpms.sh
> chown: getting attributes of `samba-PVERSION': No such file or directory
> tar: samba-PVERSION/samba2.*.spec: Cannot stat: No such file or directory
> tar: samba-PVERSION: Cannot stat: No such file or directory
> tar: Error exit delayed from previous errors
> error: Name field must be present in package: (main package)
> error: Version field must be present in package: (main package)
> error: Release field must be present in package: (main package)
> error: Summary field must be present in package: (main package)
> error: Group field must be present in package: (main package)
> error: License field must be present in package: (main package)
>

The makerpms.sh script is meant for use in building RPMS from an official
source release. I actually don't see makerpms.sh in CVS, only
makerpms.sh.tmpl, which is a template file, in which the PVERSION and
PRELEASE variables get replaced for a release.

> I am not really sure where or how the PVERSION variable gets set. I
> assume that it is a file somewhere stating the current build version or
> what it should be
> Do I have to edit something somewhere to make this work? I have looked
> through the newsgroups, RTFM etc but can't see anything to point me in
> the right direction.

I have added a makerpms-cvs.sh script to the Mandrake packaging directory,
and it may just work for the Redhat directory also.

>
> Can you please tell me where I should look, what I can do to work this out.
>

Try this (when in the Redhat directory):

$ cp ../Mandrake/makerpms-cvs.sh .
$ sh makerpms-cvs.sh 2.2.6

That *should* build you an RPM with a version of 2.2.6 and a release
number of 0.<date>, so that you know the date of your cvs snapshot, and
can easily upgrade to a 1 release.

I would actually reccomend Mandrake over Redhat for serious samba use (but
I am biased ;-)).

Regards,
Buchan

-- 
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.