On Sun, Mar 1, 2009 at 1:00 PM, Lanny Marcus lmmailinglists@gmail.com wrote:
On Sun, Mar 1, 2009 at 11:42 AM, Lanny Marcus lmmailinglists@gmail.com wrote:
On Sat, Feb 28, 2009 at 1:40 AM, Filipe Brandenburger filbranden@gmail.com wrote:
<snip> >> NUT RPMs seems to be available from EPEL. NUT 2.2.0 is available for >> CentOS 5. Here are the i386 RPMs: >> http://download.fedora.redhat.com/pub/epel/5/i386/repoview/nut.html <snip> > If I can't get apcupsd or nut configured properly, then I will try > the WinPower software the UPS manufacturer (and many others) specify. > I have the tar ball on my hard drive (45.3 MB) and maybe I can "roll > my own" RPM for the first time. > I would like to "roll my own" RPM for the WinPower UPS monitoring software. Never done this before. I have the WinPower tarball on my box. I have installed the development tools. I followed Filipe's How to: <http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment> and these commands: mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros (for a non root user)
Questions: (1) After I unzip the WinPower tarball, what command(s) do I use to create an RPM for WinPower? (2) Is there any need to install the development kernel for this? (This is a fully updated CentOS 5.2 box, 32 bit)
Follow on: Neither of the 2 books I have for reference explain how to do this. Looks like the SPEC file is the biggest mystery for me. I discovered rpm.org and will do some online reading about RPM there.