nut/nut.spec

457 lines
16 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nut
#
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define apache_serverroot %(%{_sbindir}/apxs2 -q datadir 2>/dev/null || %{_sbindir}/apxs -q PREFIX)
%define CGIPATH %{apache_serverroot}/cgi-bin
%define HTMLPATH %{apache_serverroot}/htdocs
%define MODELPATH %{_libexecdir}/ups/driver
%define STATEPATH %{_localstatedir}/lib/ups
%define CONFPATH %{_sysconfdir}/ups
%define USER upsd
%define GROUP daemon
%define LBRACE (
%define RBRACE )
%define QUOTE "
%define BACKSLASH \\
# Collect all devices listed in ups-nut-device.fdi:
%define USBHIDDRIVERS %(zcat %{SOURCE0} | tr a-z A-Z | grep -a -A1 USBHID-UPS | sed -n 's/.*ATTR{IDVENDOR}==%{QUOTE}%{BACKSLASH}%{LBRACE}[^%{QUOTE}]*%{BACKSLASH}%{RBRACE}%{QUOTE}, ATTR{IDPRODUCT}==%{QUOTE}%{BACKSLASH}%{LBRACE}[^%{QUOTE}]*%{BACKSLASH}%{RBRACE}%{QUOTE}, MODE=.*/modalias%{LBRACE}usb:v%{BACKSLASH}1p%{BACKSLASH}2d*dc*dsc*dp*ic*isc*ip*%{RBRACE}/p' | tr '%{BACKSLASH}n' ' ')
%define USBNONHIDDRIVERS %(zcat %{SOURCE0} | tr a-z A-Z | grep -a -A1 _USB | sed -n 's/.*ATTR{IDVENDOR}==%{QUOTE}%{BACKSLASH}%{LBRACE}[^%{QUOTE}]*%{BACKSLASH}%{RBRACE}%{QUOTE}, ATTR{IDPRODUCT}==%{QUOTE}%{BACKSLASH}%{LBRACE}[^%{QUOTE}]*%{BACKSLASH}%{RBRACE}%{QUOTE}, MODE=.*/modalias%{LBRACE}usb:v%{BACKSLASH}1p%{BACKSLASH}2d*dc*dsc*dp*ic*isc*ip*%{RBRACE}/p' | tr '%{BACKSLASH}n' ' ')
%define systemdsystemdutildir %(pkg-config --variable=systemdutildir systemd)
%define bashcompletionsdir %(pkg-config bash-completion --variable=completionsdir)
Name: nut
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Version: 2.7.4
Release: 0
Summary: Network UPS Tools Core (Uninterruptible Power Supply Monitoring)
License: GPL-2.0+
Group: Hardware/UPS
Url: http://www.networkupstools.org/
Source: http://www.networkupstools.org/source/2.7/%{name}-%{version}.tar.gz
Source2: README.SUSE
Source5: nut.firewall.in
Source6: nut.system-sleep
Source7: nut.sleep
Source8: http://www.networkupstools.org/source/2.7/%{name}-%{version}.tar.gz.sig
Source9: %{name}.keyring
Patch0: nut-preconfig.patch
Patch3: nut-notifyflag.patch
Accepting request 221361 from home:sbrabec:branches:hardware - Update to version 2.7.1: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. Potentially incompatible changes: * First release after the transition from Subversion to Git. * The linkman:apcsmart[8] driver has been replaced by a new implementation. There is a new parameter, 'ttymode'. In case of issues with this new version, users can revert to apcsmart-old. * The linkman:nutdrv_qx[8] driver will eventually supersede blazer_ser and blazer_usb. Options are not exactly the same, but are documented in the nutdrv_qx man page. * Mozilla NSS support has been added. * linkman:upsrw[8] now prints out the maximum size of variables. Other changes: * Added a new driver, nutdrv_qx, for Megatec/Qx devices. This driver will eventually replace the blazer_ser and blazer_usb drivers. In particular, it adds support for Voltronic Power devices. * Increased USB_TIMEOUT to standards-compliant 5.000 seconds in most drivers. This should reduce the number of timeouts on low-speed USB 1.1 devices. * Added many devices to the HCL. Of particular note are many Tripp Lite USB HID PDC models which were tested against NUT by Tripp Lite. * Reworked some visual elements of the HCL. * Also increased timeouts and added redundant commands to improve reliability of mge-utalk driver. * Added the apcupsd-ups driver to interoperate with apcupsd installations. * Added documentation on creating subdrivers for snmp-ups and nutdrv_qx. * Added new drivers for the Riello UPS product line (riello_ser/riello_usb). * Many improvements to the BCM/XCP. * Added a few variables to the Powercom HID mappings. * Updated the apcsmart driver, and renamed the previous driver to apcsmart-old. * Fixed the battery percentage calculation in the bestfcom driver. * libnutclient has been added as a C++ alternative to libupsclient. * Fix shutdown of Eaton HID, using usbhid-ups and mge-shut * usbhid-ups: final fix for APC Back UPS ES. * nut-scanner: fix crash * IPMI support can handle more different versions of FreeIPMI * Support power supplies scan over the network nut-scanner can now scan for power supplies with IPMI over LAN. This is currently limited to IPMI 1.5 only * Improve systemd integration * snmp-ups: Fixed a crash on outlet management, and added delta_ups MIB support. Also fixed mappings for upsBypassVoltage, upsBypassCurrent, and upsBypassPower in three-phase IETF MIB. - Enable FreeIPMI. - Turn systemd integration on. - Fix README.SUSE. - nut-preconfig.patch: Fix UID recommendation. OBS-URL: https://build.opensuse.org/request/show/221361 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=39
2014-02-10 16:13:33 +00:00
# PATCH-FIX-UPSTREAM nut-systemd-dirs.patch sbrabec@suse.cz -- Fix systemd targets.
Patch7: nut-systemd-dirs.patch
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
# PATCH-FEATURE-OPENSUSE nut-doc-fixed-date.patch sbrabec@suse.cz -- Make doc builds reproducible.
Patch8: nut-doc-fixed-date.patch
# PATCH-FIX-UPSTREAM nut-doc-cables.patch sbrabec@suse.cz -- Build HTML documentation of cables.
Patch9: nut-doc-cables.patch
# PATCH-FIX-UPSTREAM use-pkg-config-gdlib.diff alarrosa@suse.com -- Use pkg-config to obtain CFLAGS and LDFLAGS to use when building with gd
Patch10: use-pkg-config-gdlib.diff
BuildRequires: apache2-devel
BuildRequires: asciidoc
BuildRequires: avahi-devel
BuildRequires: dblatex
BuildRequires: gcc-c++
BuildRequires: libcppunit-devel
BuildRequires: libtool
%if 0%{?suse_version} >= 1330
BuildRequires: libnsl-devel
%endif
BuildRequires: libusb-devel
BuildRequires: libxml2-tools
BuildRequires: libxslt-tools
BuildRequires: net-snmp-devel
BuildRequires: pkgconfig
BuildRequires: source-highlight
BuildRequires: tcpd-devel
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gdlib)
BuildRequires: pkgconfig(libpowerman)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(neon)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(udev)
BuildRequires: tex(upquote.sty)
Requires: logrotate
Requires: usbutils
Requires(post): udev
# Package provides driver for USB HID UPSes, but people can live with hal addon:
Enhances: %{USBHIDDRIVERS}
# Package provides the only avalailable driver for other USB UPSes:
Supplements: %{USBNONHIDDRIVERS}
# for update from openSUSE <= 11.3, SLE <= 11
Provides: nut-classic = %{version}
Obsoletes: nut-classic < %{version}
Obsoletes: nut-hal < %{version}
%{?systemd_requires}
BuildRequires: pkgconfig(bash-completion)
%ifarch %{ix86} x86_64 ia64
BuildRequires: pkgconfig(libfreeipmi)
Accepting request 221361 from home:sbrabec:branches:hardware - Update to version 2.7.1: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. Potentially incompatible changes: * First release after the transition from Subversion to Git. * The linkman:apcsmart[8] driver has been replaced by a new implementation. There is a new parameter, 'ttymode'. In case of issues with this new version, users can revert to apcsmart-old. * The linkman:nutdrv_qx[8] driver will eventually supersede blazer_ser and blazer_usb. Options are not exactly the same, but are documented in the nutdrv_qx man page. * Mozilla NSS support has been added. * linkman:upsrw[8] now prints out the maximum size of variables. Other changes: * Added a new driver, nutdrv_qx, for Megatec/Qx devices. This driver will eventually replace the blazer_ser and blazer_usb drivers. In particular, it adds support for Voltronic Power devices. * Increased USB_TIMEOUT to standards-compliant 5.000 seconds in most drivers. This should reduce the number of timeouts on low-speed USB 1.1 devices. * Added many devices to the HCL. Of particular note are many Tripp Lite USB HID PDC models which were tested against NUT by Tripp Lite. * Reworked some visual elements of the HCL. * Also increased timeouts and added redundant commands to improve reliability of mge-utalk driver. * Added the apcupsd-ups driver to interoperate with apcupsd installations. * Added documentation on creating subdrivers for snmp-ups and nutdrv_qx. * Added new drivers for the Riello UPS product line (riello_ser/riello_usb). * Many improvements to the BCM/XCP. * Added a few variables to the Powercom HID mappings. * Updated the apcsmart driver, and renamed the previous driver to apcsmart-old. * Fixed the battery percentage calculation in the bestfcom driver. * libnutclient has been added as a C++ alternative to libupsclient. * Fix shutdown of Eaton HID, using usbhid-ups and mge-shut * usbhid-ups: final fix for APC Back UPS ES. * nut-scanner: fix crash * IPMI support can handle more different versions of FreeIPMI * Support power supplies scan over the network nut-scanner can now scan for power supplies with IPMI over LAN. This is currently limited to IPMI 1.5 only * Improve systemd integration * snmp-ups: Fixed a crash on outlet management, and added delta_ups MIB support. Also fixed mappings for upsBypassVoltage, upsBypassCurrent, and upsBypassPower in three-phase IETF MIB. - Enable FreeIPMI. - Turn systemd integration on. - Fix README.SUSE. - nut-preconfig.patch: Fix UID recommendation. OBS-URL: https://build.opensuse.org/request/show/221361 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=39
2014-02-10 16:13:33 +00:00
%endif
%if 0%{?suse_version} >= 1330
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Requires(pre): user(upsd)
%endif
%description
Core package of Network UPS Tools.
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package drivers-net
Summary: Network UPS Tools - Extra Networking Drivers (for Network Monitoring)
Group: Hardware/UPS
Requires: %{name} = %{version}
Enhances: %{name}
%description drivers-net
Networking drivers for the Network UPS Tools. You will need them
together with nut to provide UPS networking support.
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package -n libupsclient1
Summary: Network UPS Tools Library (Uninterruptible Power Supply Monitoring)
Group: System/Libraries
%description -n libupsclient1
Shared library for the Network UPS Tools.
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package cgi
Summary: Network UPS Tools Web Server Support (UPS Status Pages)
Group: Hardware/UPS
Requires: %{name} = %{version}
Enhances: %{name}
Supplements: packageand(%{name}:apache2)
%description cgi
Web server support package for the Network UPS Tools.
Predefined URL is http://localhost/nut/index.html
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package devel
Summary: Network UPS Tools (Uninterruptible Power Supply Monitoring)
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: openssl-devel
%description devel
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
%package doc-images
Summary: Network UPS Tools - Images for Documentation
Group: Documentation/Other
Requires: %{name}-doc-images = %{version}
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Recommends: %{name} = %{version}
Enhances: %{name}
BuildArch: noarch
%description doc-images
Images for the documentation. It is a supplementary package for some NUT
documentation packages.
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package doc-asciidoc
Summary: Network UPS Tools - Documentation in AsciiDoc Format
Group: Documentation/Other
Requires: %{name}-doc-images = %{version}
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Recommends: %{name} = %{version}
Enhances: %{name}
BuildArch: noarch
%description doc-asciidoc
NUT manuals in AsciiDoc format (human readable source).
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package doc-pdf
Summary: Network UPS Tools - Documentation in PDF
Group: Documentation/Other
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Recommends: %{name} = %{version}
Enhances: %{name}
BuildArch: noarch
%description doc-pdf
User manual in PDF format.
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package doc-html
Summary: Network UPS Tools - Documentation in HTML
Group: Documentation/HTML
Requires: %{name}-doc-images = %{version}
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Recommends: %{name} = %{version}
Enhances: %{name}
BuildArch: noarch
%description doc-html
User manual in HTML format.
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package devel-doc-pdf
Summary: Network UPS Tools - Documentation in PDF
Group: Documentation/Other
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Recommends: %{name} = %{version}
Enhances: %{name}
BuildArch: noarch
%description devel-doc-pdf
Developer manual in PDF format.
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%package devel-doc-html
Summary: Network UPS Tools - Documentation in HTML
# For CSS files:
Group: Documentation/HTML
Requires: %{name}-doc-html = %{version}
Requires: %{name}-doc-images = %{version}
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
Recommends: %{name} = %{version}
Enhances: %{name}
BuildArch: noarch
%description devel-doc-html
Developer manual in HTML format.
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS hardware.
%prep
%setup -q
cp -a %{SOURCE2} %{SOURCE5} %{SOURCE6} %{SOURCE7} .
%patch0
%patch3
Accepting request 221361 from home:sbrabec:branches:hardware - Update to version 2.7.1: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. Potentially incompatible changes: * First release after the transition from Subversion to Git. * The linkman:apcsmart[8] driver has been replaced by a new implementation. There is a new parameter, 'ttymode'. In case of issues with this new version, users can revert to apcsmart-old. * The linkman:nutdrv_qx[8] driver will eventually supersede blazer_ser and blazer_usb. Options are not exactly the same, but are documented in the nutdrv_qx man page. * Mozilla NSS support has been added. * linkman:upsrw[8] now prints out the maximum size of variables. Other changes: * Added a new driver, nutdrv_qx, for Megatec/Qx devices. This driver will eventually replace the blazer_ser and blazer_usb drivers. In particular, it adds support for Voltronic Power devices. * Increased USB_TIMEOUT to standards-compliant 5.000 seconds in most drivers. This should reduce the number of timeouts on low-speed USB 1.1 devices. * Added many devices to the HCL. Of particular note are many Tripp Lite USB HID PDC models which were tested against NUT by Tripp Lite. * Reworked some visual elements of the HCL. * Also increased timeouts and added redundant commands to improve reliability of mge-utalk driver. * Added the apcupsd-ups driver to interoperate with apcupsd installations. * Added documentation on creating subdrivers for snmp-ups and nutdrv_qx. * Added new drivers for the Riello UPS product line (riello_ser/riello_usb). * Many improvements to the BCM/XCP. * Added a few variables to the Powercom HID mappings. * Updated the apcsmart driver, and renamed the previous driver to apcsmart-old. * Fixed the battery percentage calculation in the bestfcom driver. * libnutclient has been added as a C++ alternative to libupsclient. * Fix shutdown of Eaton HID, using usbhid-ups and mge-shut * usbhid-ups: final fix for APC Back UPS ES. * nut-scanner: fix crash * IPMI support can handle more different versions of FreeIPMI * Support power supplies scan over the network nut-scanner can now scan for power supplies with IPMI over LAN. This is currently limited to IPMI 1.5 only * Improve systemd integration * snmp-ups: Fixed a crash on outlet management, and added delta_ups MIB support. Also fixed mappings for upsBypassVoltage, upsBypassCurrent, and upsBypassPower in three-phase IETF MIB. - Enable FreeIPMI. - Turn systemd integration on. - Fix README.SUSE. - nut-preconfig.patch: Fix UID recommendation. OBS-URL: https://build.opensuse.org/request/show/221361 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=39
2014-02-10 16:13:33 +00:00
%patch7 -p1
%patch8 -p1
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
%patch9 -p1
%patch10 -p1
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
sed -i s/@now@/`date -r ChangeLog +%%Y-%%m-%%d`/g docs/docinfo.xml.in
sed -i s:%{_prefix}/local/ups/bin:/bin: conf/upssched.conf.sample.in
%build
autoreconf -fvi
%configure \
--disable-static \
--sysconfdir=%{CONFPATH} \
--datadir=%{_datadir}/nut \
--with-all \
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
--with-doc \
--with-ssl \
--with-openssl \
--without-nss \
--with-wrap \
%ifnarch %{ix86} x86_64 ia64
--without-ipmi \
%endif
--with-htmlpath=%{HTMLPATH} \
--with-cgipath=%{CGIPATH} \
--with-statepath=%{STATEPATH} \
--with-drvpath=%{MODELPATH} \
--with-user=%{USER} \
--with-group=%{GROUP} \
--with-udev-dir=%{_libexecdir}/udev \
--enable-option-checking=fatal
Accepting request 258925 from home:mvyskocil:branches:hardware - Update to version 2.7.2: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * upsdrvctl is now installed to $prefix/sbin rather than $driverexec. This usually means moving from /bin to /sbin, apart from few exceptions. * FreeDesktop Hardware Abstraction Layer (HAL) support was removed. * This is a good time to point out that for stricter packaging systems, it may be beneficial to add "--enable-option-checking=fatal" to the ./configure command line, in order to quickly pick up any other removed option flags. Other changes: * libupsclient had undefined references related to functions of libcommon.This issue was reported on Debian (bug #731156) and is now fixed * support for new devices: + CABAC UPS-1700DV2 + Eaton Powerware 3105 + Emerson Network Power Liebert PSI 1440 + MicroDowell B.Box LP 500 + Numeric Digital 800 plus + OptiUPS VS 575C + Tripp Lite SU10KRT3/1X * nutdrv_atcl_usb: new driver for 'ATCL FOR UPS' * al175: re-introduced this driver (actually, it was in 2.7.1) * upsdrvctl now provides retry options for upsdrvctl and driver(s) * snmp-ups: add support for XPPC-MIB and Tripp Lite SU10KRT3/1X. Also fix erroneous status in HP/Compaq SNMP MIB (with the most recent HP firmware (1.76) ; improved various MIBs (APC, HP/Compaq, ...) * nutdrv_qx: add new 'fallback' Q1 subdriver, with minimal OBS-URL: https://build.opensuse.org/request/show/258925 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=49
2014-11-01 22:34:50 +00:00
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
# There is a bug in doc build that makes impossible to build in parallel
cd docs
make -j1
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
cd ..
make %{?_smp_mflags}
PORT=$(sed -n 's/#define PORT //p' config.log)
if test "$PORT" = 3493 ; then
PORT=nut
fi
sed s/@PORT@/$PORT/ <nut.firewall.in >nut.firewall
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
mkdir -p %{buildroot}%{STATEPATH}
# initscript
mkdir -p %{buildroot}%{_sbindir}
ln -s service %{buildroot}%{_sbindir}/rcnut-driver
ln -s service %{buildroot}%{_sbindir}/rcnut-server
ln -s service %{buildroot}%{_sbindir}/rcnut-monitor
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 scripts/logrotate/nutlogd %{buildroot}%{_sysconfdir}/logrotate.d/nut
mkdir -p %{buildroot}%{STATEPATH}
rename .sample "" %{buildroot}%{_sysconfdir}/ups/*.sample
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
cp nut.firewall %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/nut
install -d %{buildroot}%{_libexecdir}/systemd/system-sleep
install nut.system-sleep %{buildroot}%{_libexecdir}/systemd/system-sleep/%{name}.sh
# Rename web pages to not conflict with apache2-example-pages or user home page:
mkdir %{buildroot}%{HTMLPATH}/nut %{buildroot}%{CGIPATH}/nut
mv %{buildroot}%{HTMLPATH}/*.{html,png} %{buildroot}%{HTMLPATH}/nut/
mv %{buildroot}%{CGIPATH}/*.cgi %{buildroot}%{CGIPATH}/nut
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
mkdir -p %{buildroot}%{bashcompletionsdir}
install -m0644 scripts/misc/nut.bash_completion %{buildroot}%{bashcompletionsdir}/nut
# Documentation
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -a AUTHORS COPYING ChangeLog MAINTAINERS NEWS README README.SUSE UPGRADING %{buildroot}%{_docdir}/%{name}/
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
cp -a docs/*.txt docs/cables docs/images %{buildroot}%{_docdir}/%{name}/
cp -a docs/*.css docs/*.html docs/*.pdf %{buildroot}%{_docdir}/%{name}/
# Not needed for packaged contents:
rm %{buildroot}%{_docdir}/%{name}/packager-guide.*
%pre
%if 0%{?suse_version} < 1330
getent passwd %{USER} >/dev/null || useradd -r -g %{GROUP} -s /bin/false -c "UPS daemon" -d /sbin %{USER} 2>/dev/null
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
%endif
Accepting request 221361 from home:sbrabec:branches:hardware - Update to version 2.7.1: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. Potentially incompatible changes: * First release after the transition from Subversion to Git. * The linkman:apcsmart[8] driver has been replaced by a new implementation. There is a new parameter, 'ttymode'. In case of issues with this new version, users can revert to apcsmart-old. * The linkman:nutdrv_qx[8] driver will eventually supersede blazer_ser and blazer_usb. Options are not exactly the same, but are documented in the nutdrv_qx man page. * Mozilla NSS support has been added. * linkman:upsrw[8] now prints out the maximum size of variables. Other changes: * Added a new driver, nutdrv_qx, for Megatec/Qx devices. This driver will eventually replace the blazer_ser and blazer_usb drivers. In particular, it adds support for Voltronic Power devices. * Increased USB_TIMEOUT to standards-compliant 5.000 seconds in most drivers. This should reduce the number of timeouts on low-speed USB 1.1 devices. * Added many devices to the HCL. Of particular note are many Tripp Lite USB HID PDC models which were tested against NUT by Tripp Lite. * Reworked some visual elements of the HCL. * Also increased timeouts and added redundant commands to improve reliability of mge-utalk driver. * Added the apcupsd-ups driver to interoperate with apcupsd installations. * Added documentation on creating subdrivers for snmp-ups and nutdrv_qx. * Added new drivers for the Riello UPS product line (riello_ser/riello_usb). * Many improvements to the BCM/XCP. * Added a few variables to the Powercom HID mappings. * Updated the apcsmart driver, and renamed the previous driver to apcsmart-old. * Fixed the battery percentage calculation in the bestfcom driver. * libnutclient has been added as a C++ alternative to libupsclient. * Fix shutdown of Eaton HID, using usbhid-ups and mge-shut * usbhid-ups: final fix for APC Back UPS ES. * nut-scanner: fix crash * IPMI support can handle more different versions of FreeIPMI * Support power supplies scan over the network nut-scanner can now scan for power supplies with IPMI over LAN. This is currently limited to IPMI 1.5 only * Improve systemd integration * snmp-ups: Fixed a crash on outlet management, and added delta_ups MIB support. Also fixed mappings for upsBypassVoltage, upsBypassCurrent, and upsBypassPower in three-phase IETF MIB. - Enable FreeIPMI. - Turn systemd integration on. - Fix README.SUSE. - nut-preconfig.patch: Fix UID recommendation. OBS-URL: https://build.opensuse.org/request/show/221361 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=39
2014-02-10 16:13:33 +00:00
%service_add_pre nut-driver.service nut-server.service nut-monitor.service
%post
# Be sure that all files are owned by a dedicated user.
chown -R %{USER}:%{GROUP} %{STATEPATH}
# Generate initial passwords.
if grep -q "password = @UPSD_INITIAL_MASTER_PASSWORD@" %{CONFPATH}/upsmon.conf %{CONFPATH}/upsd.users; then
UPSD_INITIAL_MASTER_PASSWORD=$(head -c 20 /dev/urandom | md5sum | head -c 10)
sed -i s/@UPSD_INITIAL_MASTER_PASSWORD@/$UPSD_INITIAL_MASTER_PASSWORD/ %{CONFPATH}/upsmon.conf %{CONFPATH}/upsd.users
fi
if grep -q "password = @UPSD_INITIAL_SLAVE_PASSWORD@" %{CONFPATH}/upsd.users ; then
UPSD_INITIAL_SLAVE_PASSWORD=$(head -c 20 /dev/urandom | md5sum | head -c 10)
sed -i s/@UPSD_INITIAL_SLAVE_PASSWORD@/$UPSD_INITIAL_SLAVE_PASSWORD/ %{CONFPATH}/upsd.users
fi
# Be sure that all files are owned by a dedicated user.
/bin/chown %{USER}:root %{CONFPATH}/upsd.conf %{CONFPATH}/upsmon.conf %{CONFPATH}/upsd.users
/bin/chmod 600 %{CONFPATH}/upsd.conf %{CONFPATH}/upsmon.conf %{CONFPATH}/upsd.users
# Migrate Suspend to Disc to the new convention (bnc#449861 and later bnc#871406):
# It was never on by default, but documentation up to 11.0 recommends
# "shutdown -z +0" for suspend to disc. It was discontinued before 11.0.
# Documentation since 11.0 up to 13.1 recommends /powersave -U.
# pm-utils (and powersave) were obsoleted after 13.1 in favor of systemd.
if grep "shutdown -z +0" %{_sysconfdir}/ups/upsmon.conf ; then
sed -i 's:/sbin/shutdown -z +0:%{_bindir}/systemctl hibernate:;s:shutdown -z +0:%{_bindir}/systemctl hibernate:' %{_sysconfdir}/ups/upsmon.conf
fi
if grep "powersave -U" %{_sysconfdir}/ups/upsmon.conf ; then
sed -i 's:%{_bindir}/powersave -U:%{_bindir}/systemctl hibernate:;s:powersave -U:%{_bindir}/systemctl hibernate:' %{_sysconfdir}/ups/upsmon.conf
fi
# And finally trigger udev to set permissions according to newly installed rules files.
/sbin/udevadm trigger --subsystem-match=usb --property-match=DEVTYPE=usb_device
Accepting request 221361 from home:sbrabec:branches:hardware - Update to version 2.7.1: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. Potentially incompatible changes: * First release after the transition from Subversion to Git. * The linkman:apcsmart[8] driver has been replaced by a new implementation. There is a new parameter, 'ttymode'. In case of issues with this new version, users can revert to apcsmart-old. * The linkman:nutdrv_qx[8] driver will eventually supersede blazer_ser and blazer_usb. Options are not exactly the same, but are documented in the nutdrv_qx man page. * Mozilla NSS support has been added. * linkman:upsrw[8] now prints out the maximum size of variables. Other changes: * Added a new driver, nutdrv_qx, for Megatec/Qx devices. This driver will eventually replace the blazer_ser and blazer_usb drivers. In particular, it adds support for Voltronic Power devices. * Increased USB_TIMEOUT to standards-compliant 5.000 seconds in most drivers. This should reduce the number of timeouts on low-speed USB 1.1 devices. * Added many devices to the HCL. Of particular note are many Tripp Lite USB HID PDC models which were tested against NUT by Tripp Lite. * Reworked some visual elements of the HCL. * Also increased timeouts and added redundant commands to improve reliability of mge-utalk driver. * Added the apcupsd-ups driver to interoperate with apcupsd installations. * Added documentation on creating subdrivers for snmp-ups and nutdrv_qx. * Added new drivers for the Riello UPS product line (riello_ser/riello_usb). * Many improvements to the BCM/XCP. * Added a few variables to the Powercom HID mappings. * Updated the apcsmart driver, and renamed the previous driver to apcsmart-old. * Fixed the battery percentage calculation in the bestfcom driver. * libnutclient has been added as a C++ alternative to libupsclient. * Fix shutdown of Eaton HID, using usbhid-ups and mge-shut * usbhid-ups: final fix for APC Back UPS ES. * nut-scanner: fix crash * IPMI support can handle more different versions of FreeIPMI * Support power supplies scan over the network nut-scanner can now scan for power supplies with IPMI over LAN. This is currently limited to IPMI 1.5 only * Improve systemd integration * snmp-ups: Fixed a crash on outlet management, and added delta_ups MIB support. Also fixed mappings for upsBypassVoltage, upsBypassCurrent, and upsBypassPower in three-phase IETF MIB. - Enable FreeIPMI. - Turn systemd integration on. - Fix README.SUSE. - nut-preconfig.patch: Fix UID recommendation. OBS-URL: https://build.opensuse.org/request/show/221361 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=39
2014-02-10 16:13:33 +00:00
%service_add_post nut-driver.service nut-server.service nut-monitor.service
%preun
Accepting request 221361 from home:sbrabec:branches:hardware - Update to version 2.7.1: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. Potentially incompatible changes: * First release after the transition from Subversion to Git. * The linkman:apcsmart[8] driver has been replaced by a new implementation. There is a new parameter, 'ttymode'. In case of issues with this new version, users can revert to apcsmart-old. * The linkman:nutdrv_qx[8] driver will eventually supersede blazer_ser and blazer_usb. Options are not exactly the same, but are documented in the nutdrv_qx man page. * Mozilla NSS support has been added. * linkman:upsrw[8] now prints out the maximum size of variables. Other changes: * Added a new driver, nutdrv_qx, for Megatec/Qx devices. This driver will eventually replace the blazer_ser and blazer_usb drivers. In particular, it adds support for Voltronic Power devices. * Increased USB_TIMEOUT to standards-compliant 5.000 seconds in most drivers. This should reduce the number of timeouts on low-speed USB 1.1 devices. * Added many devices to the HCL. Of particular note are many Tripp Lite USB HID PDC models which were tested against NUT by Tripp Lite. * Reworked some visual elements of the HCL. * Also increased timeouts and added redundant commands to improve reliability of mge-utalk driver. * Added the apcupsd-ups driver to interoperate with apcupsd installations. * Added documentation on creating subdrivers for snmp-ups and nutdrv_qx. * Added new drivers for the Riello UPS product line (riello_ser/riello_usb). * Many improvements to the BCM/XCP. * Added a few variables to the Powercom HID mappings. * Updated the apcsmart driver, and renamed the previous driver to apcsmart-old. * Fixed the battery percentage calculation in the bestfcom driver. * libnutclient has been added as a C++ alternative to libupsclient. * Fix shutdown of Eaton HID, using usbhid-ups and mge-shut * usbhid-ups: final fix for APC Back UPS ES. * nut-scanner: fix crash * IPMI support can handle more different versions of FreeIPMI * Support power supplies scan over the network nut-scanner can now scan for power supplies with IPMI over LAN. This is currently limited to IPMI 1.5 only * Improve systemd integration * snmp-ups: Fixed a crash on outlet management, and added delta_ups MIB support. Also fixed mappings for upsBypassVoltage, upsBypassCurrent, and upsBypassPower in three-phase IETF MIB. - Enable FreeIPMI. - Turn systemd integration on. - Fix README.SUSE. - nut-preconfig.patch: Fix UID recommendation. OBS-URL: https://build.opensuse.org/request/show/221361 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=39
2014-02-10 16:13:33 +00:00
%service_del_preun nut-driver.service nut-server.service nut-monitor.service
%postun
Accepting request 221361 from home:sbrabec:branches:hardware - Update to version 2.7.1: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. Potentially incompatible changes: * First release after the transition from Subversion to Git. * The linkman:apcsmart[8] driver has been replaced by a new implementation. There is a new parameter, 'ttymode'. In case of issues with this new version, users can revert to apcsmart-old. * The linkman:nutdrv_qx[8] driver will eventually supersede blazer_ser and blazer_usb. Options are not exactly the same, but are documented in the nutdrv_qx man page. * Mozilla NSS support has been added. * linkman:upsrw[8] now prints out the maximum size of variables. Other changes: * Added a new driver, nutdrv_qx, for Megatec/Qx devices. This driver will eventually replace the blazer_ser and blazer_usb drivers. In particular, it adds support for Voltronic Power devices. * Increased USB_TIMEOUT to standards-compliant 5.000 seconds in most drivers. This should reduce the number of timeouts on low-speed USB 1.1 devices. * Added many devices to the HCL. Of particular note are many Tripp Lite USB HID PDC models which were tested against NUT by Tripp Lite. * Reworked some visual elements of the HCL. * Also increased timeouts and added redundant commands to improve reliability of mge-utalk driver. * Added the apcupsd-ups driver to interoperate with apcupsd installations. * Added documentation on creating subdrivers for snmp-ups and nutdrv_qx. * Added new drivers for the Riello UPS product line (riello_ser/riello_usb). * Many improvements to the BCM/XCP. * Added a few variables to the Powercom HID mappings. * Updated the apcsmart driver, and renamed the previous driver to apcsmart-old. * Fixed the battery percentage calculation in the bestfcom driver. * libnutclient has been added as a C++ alternative to libupsclient. * Fix shutdown of Eaton HID, using usbhid-ups and mge-shut * usbhid-ups: final fix for APC Back UPS ES. * nut-scanner: fix crash * IPMI support can handle more different versions of FreeIPMI * Support power supplies scan over the network nut-scanner can now scan for power supplies with IPMI over LAN. This is currently limited to IPMI 1.5 only * Improve systemd integration * snmp-ups: Fixed a crash on outlet management, and added delta_ups MIB support. Also fixed mappings for upsBypassVoltage, upsBypassCurrent, and upsBypassPower in three-phase IETF MIB. - Enable FreeIPMI. - Turn systemd integration on. - Fix README.SUSE. - nut-preconfig.patch: Fix UID recommendation. OBS-URL: https://build.opensuse.org/request/show/221361 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=39
2014-02-10 16:13:33 +00:00
%service_del_postun nut-driver.service nut-server.service nut-monitor.service
%post -n libupsclient1 -p /sbin/ldconfig
%postun -n libupsclient1 -p /sbin/ldconfig
%files
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/[A-EG-Z]*
%config %{_sysconfdir}/logrotate.d/*
%{_bindir}/*
%{_datadir}/nut
%{_mandir}/man5/*%{ext_man}
%{_mandir}/man8/*%{ext_man}
%exclude %{_mandir}/man8/netxml-ups*.*
%exclude %{_mandir}/man8/snmp-ups*.*
%dir %{_libexecdir}/ups
%{_sbindir}/*
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/nut
%{_udevrulesdir}/*.rules
%config(noreplace) %{CONFPATH}/hosts.conf
%config(noreplace) %attr(600,%{USER},root) %{CONFPATH}/upsd.conf
%config(noreplace) %attr(600,%{USER},root) %{CONFPATH}/upsd.users
%config(noreplace) %attr(600,%{USER},root) %{CONFPATH}/upsmon.conf
%dir %{CONFPATH}
%config(noreplace) %{CONFPATH}/nut.conf
%config(noreplace) %{CONFPATH}/ups.conf
%config(noreplace) %{CONFPATH}/upsset.conf
%config(noreplace) %{CONFPATH}/upssched.conf
%dir %{MODELPATH}
%{MODELPATH}/*
%exclude %{MODELPATH}/snmp-ups
%exclude %{MODELPATH}/netxml-ups
%attr(700,%{USER},%{GROUP}) %{STATEPATH}
%{_unitdir}/*.service
Accepting request 221361 from home:sbrabec:branches:hardware - Update to version 2.7.1: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. Potentially incompatible changes: * First release after the transition from Subversion to Git. * The linkman:apcsmart[8] driver has been replaced by a new implementation. There is a new parameter, 'ttymode'. In case of issues with this new version, users can revert to apcsmart-old. * The linkman:nutdrv_qx[8] driver will eventually supersede blazer_ser and blazer_usb. Options are not exactly the same, but are documented in the nutdrv_qx man page. * Mozilla NSS support has been added. * linkman:upsrw[8] now prints out the maximum size of variables. Other changes: * Added a new driver, nutdrv_qx, for Megatec/Qx devices. This driver will eventually replace the blazer_ser and blazer_usb drivers. In particular, it adds support for Voltronic Power devices. * Increased USB_TIMEOUT to standards-compliant 5.000 seconds in most drivers. This should reduce the number of timeouts on low-speed USB 1.1 devices. * Added many devices to the HCL. Of particular note are many Tripp Lite USB HID PDC models which were tested against NUT by Tripp Lite. * Reworked some visual elements of the HCL. * Also increased timeouts and added redundant commands to improve reliability of mge-utalk driver. * Added the apcupsd-ups driver to interoperate with apcupsd installations. * Added documentation on creating subdrivers for snmp-ups and nutdrv_qx. * Added new drivers for the Riello UPS product line (riello_ser/riello_usb). * Many improvements to the BCM/XCP. * Added a few variables to the Powercom HID mappings. * Updated the apcsmart driver, and renamed the previous driver to apcsmart-old. * Fixed the battery percentage calculation in the bestfcom driver. * libnutclient has been added as a C++ alternative to libupsclient. * Fix shutdown of Eaton HID, using usbhid-ups and mge-shut * usbhid-ups: final fix for APC Back UPS ES. * nut-scanner: fix crash * IPMI support can handle more different versions of FreeIPMI * Support power supplies scan over the network nut-scanner can now scan for power supplies with IPMI over LAN. This is currently limited to IPMI 1.5 only * Improve systemd integration * snmp-ups: Fixed a crash on outlet management, and added delta_ups MIB support. Also fixed mappings for upsBypassVoltage, upsBypassCurrent, and upsBypassPower in three-phase IETF MIB. - Enable FreeIPMI. - Turn systemd integration on. - Fix README.SUSE. - nut-preconfig.patch: Fix UID recommendation. OBS-URL: https://build.opensuse.org/request/show/221361 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=39
2014-02-10 16:13:33 +00:00
%{systemdsystemdutildir}/system-shutdown/*
%{_libexecdir}/systemd/system-sleep/%{name}.sh
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
%{bashcompletionsdir}/*
%files drivers-net
%{MODELPATH}/snmp-ups
%{MODELPATH}/netxml-ups
%{_mandir}/man8/netxml-ups*%{ext_man}
%{_mandir}/man8/snmp-ups*%{ext_man}
%files -n libupsclient1
%{_libdir}/*.so.*
%files cgi
%{CGIPATH}/nut
%{HTMLPATH}/nut
%config(noreplace) %{CONFPATH}/upsstats-single.html
%config(noreplace) %{CONFPATH}/upsstats.html
%files devel
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*%{ext_man}
Accepting request 489344 from home:sbrabec:branches:hardware - Update to version 2.7.4: For more see NEWS and UPGRADING in /usr/share/doc/packages/nut. * New class of device supported: ATS - Automatic Transfer Switch * NUT command and variable naming scheme changes. * support for new devices: AEG PROTECT B / NAS APC ATS AP7724 (should be supported) Asium P700 Eaton ATS Eaton 5E 1100iUSB Eaton E Series DX UPS 1-20 kVA Eaton Powerware 9125-5000g Electrys UPS 2500 Fideltronic INIGO Viper 1200 Legrand Keor Multiplug LYONN CTB-800V Micropower LCD 1000 NHS Laser Senoidal 5000VA Sweex model P220 TS Shara Various APCUPSD-controlled APC devices * snmp-ups improvements. * Eaton: improvements and fixes of 3ph SNMP, ePDU (G2 and G3) and XML/PDC. * Further fixes and improvements of bcmxcp_usb, dummy-ups, libnutclient, nutdrv_atcl_usb, nutdrv_qx, nut-ipmipsu, solis, tripplitesu, usbhid-ups. * nut-scanner: Don't depend on development libraries (boo#963505). * Improved SSL support through Mozilla NSS, Augeas support. * Fixed UPower device matching in recent kernels. * nut-server.service: Restore systemd relationship (drop 0001-Restore-systemd-relationship-with-nut-driver-service.patch). * Network protocol information change. - Drop dummy init scripts. They are not needed any more (nut-monitor, nut-server, nut-driver, boo#801542#c2). - Build and package documentation (nut-doc-fixed-date.patch, nut-doc-cables.patch). - Fix dependencies. - Fix bash-completion path. OBS-URL: https://build.opensuse.org/request/show/489344 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=57
2017-05-05 16:53:57 +00:00
%files doc-images
%doc %dir %{_docdir}/%{name}
%{_docdir}/%{name}/images
%files doc-asciidoc
%doc %dir %{_docdir}/%{name}
%{_docdir}/%{name}/*.txt
%{_docdir}/%{name}/cables
%files doc-pdf
%doc %dir %{_docdir}/%{name}
%{_docdir}/%{name}/FAQ.pdf
%{_docdir}/%{name}/cables.pdf
%{_docdir}/%{name}/user-manual.pdf
%files doc-html
%{_docdir}/%{name}/FAQ.html
%{_docdir}/%{name}/cables.html
%{_docdir}/%{name}/user-manual.html
%{_docdir}/%{name}/*.css
%files devel-doc-pdf
%doc %dir %{_docdir}/%{name}
%{_docdir}/%{name}/developer-guide.pdf
%files devel-doc-html
%{_docdir}/%{name}/developer-guide.html
%changelog