Time: 1257539315 Author: kirsle Subject: RPM Build Script Avatar: RiveScript-Hazard.png Categories: RiveScript, Linux Privacy: public IP: 72.37.252.50 NoEmote: 0 NoReply: 0 I've created a simple Perl script that automates the RPM build process for RiveScript. It's now available in the RiveScript-perl subversion repository.

It builds an RPM that's slightly different than the one normally created by cpan2rpm or cpan2dist... in addition to installing the modules and manpages to their usual location, it also installs the scripts in the bin/ directory into your /usr/bin/ path... so immediately after installing the RiveScript RPM you can run `rsdemo` in your terminal and chat with the demo Eliza bot.

It works flawlessly on my Fedora 11 machine; let me know if it doesn't work so great on other systems. It requires the perl-Template package (Template::Toolkit) and you need to have already set up your rpmbuild environment.

Set Up Rpmbuild

A quick way to setup your rpmbuild environment is to run these commands on the terminal:

mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
echo "%_topdir $HOME/rpmbuild" > ~/.rpmmacros
Then if you have rpmbuild installed (yum install rpm-build) you should be all set to build the RPM.

RiveScript version 1.22 will be the first version to have RPMs built using the new script.