[opensuse] Re: [Nut-upsdev] Problems with nut on new openSuSE 11.1 (same ecstasy_ups)
Everyone, This is a forward from the nut mailing list about the openSuSE .spec file for nut-2.2.2. I need help with the spec file. Who who wrote it or maintains it? Thanks, see below: Arjen de Korte wrote:
Citeren "David C. Rankin" <drankinatty@suddenlinkmail.com>:
Any luck yet on the voltage fix for the Cyber Power UPS CP1000AVRLCD? I'm still greeted by 'battery.voltage: 20.3' each time I check. Just thought I'd ask. Thanks.
This change was comitted to the trunk on Dec 15 (r1627), so if you upgrade to the development version, this should be OK now.
Best regards, Arjen
Arjen, I thought I would try building a set of rpms for openSuSE 10.3 with the development version, but I am running into problems. In installed the latest src.rpm I could find (sbrabec's) from openSuSE build service. http://download.opensuse.org/repositories/home:/sbrabec:/backports/openSUSE_... Then I checked out r1715 and created a source package from it with: tar -cjf /usr/src/packages/SOURCES/nut-2.2.2-svn-1715.tar.bz2 nut-trunk/ I copied the spec file to: nut-trunk-1715.spec and edited the spec file as follows: Version: 2.2.2 Release: 1715 Url: http://www.networkupstools.org/ Source: %{name}-%{version}-svn-%{release}.tar.bz2 I then kicked off the build with rpmbuild -bb nut-trunk-1715.spec, but the build died really quick with the following error: <snip> <MATCH KEY=USB_DEVICE.VENDOR_ID INT=0XFFFF>- <! ABLEREX 625L USB
- <MATCH KEY=USB_DEVICE.PRODUCT_ID INT=0X0000>- <APPEND KEY=INFO.CATEGORY TYPE=STRING>BATTERY</APPEND>- <MERGE KEY=INFO.CAPABILITIES TYPE=STRLIST>BATTERY</MERGE>
PRINT ' 'KEY="USB_DEVICE.VENDOR_ID"' 'INT="' sh: line 112: MATCH: No such file or directory error: line 66: Empty tag: Enhances: Full build output at: http://www.3111skyline.com/download/ups/nutrpmbuild-error I looked at the spec and removed a few spaces on line 66 from between 'Enhances:' and '%(set' which did help the build get through the '<MATCH KEY...' stuff, but it still died. Lines 65-67 are: # Package provides driver for USB HID UPSes, but people can live with hal addon: Enhances: %(set -x ; echo %{QUOTE}%{USBDRIVERS}%{QUOTE} | sed -n s/^HALD-ADDON-USBHID-UPS=//p | tr '%{BACKSLASH}n' ' ') # Package provides the only avalailable driver for other USB UPSes: Supplements: %(set -x ; echo %{QUOTE}%{USBDRIVERS}%{QUOTE} | sed '/^HALD-ADDON-USBHID-UPS=/d;s/^.*=//' | tr '%{BACKSLASH}n' ' ') I would like to build the rpms if possible. Do you have any pointers? I'll go just compile it in the mean time, but it seems like I should be able to build the rpms also. Thanks. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
David C. Rankin