[Nut-upsuser] Trying to build opensuse 11.0 64-bit rpm for nut-2.2.2

Arjen de Korte nut+users at de-korte.org
Tue Jul 1 14:45:06 UTC 2008

> I am trying to build an rpm for nut-2.2.2 on 64 bit opensuse 11.0.


> 0. Packages previously built for opensuse 10.x have to be rebuilt since
>    opensuse 11.0 now compresses package payloads using lzma, which
>    according to the opensuse 11.0 release notes makes 10.x rpms unusable.
> 1. I downloaded nut-2.2.2.tar.gz

You'd better download pre-compiled RPMs from openSUSE, unless you know
exactly what you're doing (but you wouldn't come here for help in that
case). You can find these on


Note that NUT is now split in couple of different RPMs, depending on what
you want to install.

> 2. I recompressed as a bz2 as expected by rpmbuild
> 3. I extracted and copied ./nut-2.2.2/packaging/opensuse/nut.spec to
>    /usr/src/packages/SPECS
> 4. I ran the command
>    script -c "rpmbuild -v -ta nut-2.2.2.tar.bz2" rpmbuild.log
>    and got the message
>   error: File /root/nut/nut-2.2.2/nut-2.0.1.tar.bz2: No such file or
>          directory
> In /usr/src/packages/SPECS/nut.spec I saw the lines
> %define version	2.0.1
> and
> Patch0:	nut-2.0.1-lib64.patch.bz2
> I'm not sure how to fix these - any help would be much appreciated.

You probably don't. If you want to change some things in the package, it's
better to install the SRPM from openSUSE and work from there.

These NUT .spec files are only meant as a starting point. More often than
not, quite a bit changes when a distribution increases the major version
number. We (NUT) don't have the manpower to keep track of this.
Fortunately, the maintainer of the NUT package of openSUSE is quite active
and usually picks up the latest version quite quickly.

Best regards, Arjen
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B  7A FE 7E C1 EE 88 BC 57

More information about the Nut-upsuser mailing list