[CentOS] Yum issues with swatch

Sun Sep 11 03:30:16 UTC 2005
Craig White <craigwhite at azapple.com>

On Sat, 2005-09-10 at 19:45 -0700, Ed Morrison wrote:
> Craig White wrote:
> 
> >I don't see a package for RHEL-3 (CentOS 3)
> >
> >http://dag.wieers.com/packages/swatch/
> >
> >perhaps you can rebuild from source rpm
> >
> >Craig
> >  
> >
> Never done that.  Researching now. 
----
download source rpm (command line makes this easiest) as root...

wget http://dag.wieers.com/packages/swatch/swatch-3.1-1.dag.src.rpm

rpmbuild --rebuild swatch-3.1-1.dag.src.rpm

I could get 2 of the 3 perl modules from Dag repository...

yum install perl-Date-Calc perl-File-Tail

but not perl-Date-Format ;-(

Now I'm curious how dag is getting it done...

switch to RHEL 4 server...

he adds dependencies for...
  Install: perl-Mail-Sendmail.noarch 0:0.79-1.2.el4.rf - dag
  Install: perl-TimeDate.noarch 0:1.16-1.2.el4.rf - dag

so I think before you can rpmbuild, you will need to do this...

yum install perl-Date-Calc perl-File-Tail perl-TimeDate perl-Mail-Sendmail

and then you can do the rpmbuild command

Once it's built, to install should be fairly simple...

rpm -ivh /usr/src/redhat/RPMS/noarch/swatch-3.1-1.noarch.rpm

Craig