[CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

Lanny Marcus lmmailinglists at gmail.com
Sun Mar 1 18:00:47 UTC 2009


On Sun, Mar 1, 2009 at 11:42 AM, Lanny Marcus <lmmailinglists at gmail.com> wrote:
> On Sat, Feb 28, 2009 at 1:40 AM, Filipe Brandenburger
> <filbranden at 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)

TIA!


More information about the CentOS mailing list