Summary(pl.UTF-8): Oprogramowanie do zarządzania energią dla UPS-ów APC
Name: apcupsd
Version: 3.14.10
-Release: 2
+Release: 3
License: GPL v2
Group: Networking/Daemons
Source0: http://downloads.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz
Source3: %{name}.sysconfig
Patch0: %{name}-configure.patch
Patch1: %{name}-pcnet-seconds.patch
+Patch2: format-security.patch
URL: http://www.apcupsd.com/
%{?with_gapcmon:BuildRequires: GConf2-devel >= 2.0}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gd-devel
%{?with_gapcmon:BuildRequires: gtk+2-devel >= 2:2.4.0}
-BuildRequires: man
+BuildRequires: man-db
%{?with_snmp:BuildRequires: net-snmp-devel}
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.268
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
for i in configure.in aclocal.m4 config.h.in; do install autoconf/$i .;done
cp -f %{_datadir}/automake/config.sub autoconf
--- /dev/null
+--- apcupsd-3.14.10/src/gapcmon/gapcmon.c~ 2008-09-16 06:58:20.000000000 +0200
++++ apcupsd-3.14.10/src/gapcmon/gapcmon.c 2013-07-14 20:18:41.520640348 +0200
+@@ -2883,15 +2883,9 @@
+ static void gapc_util_log_app_msg(gchar * pch_func, gchar * pch_topic,
+ gchar * pch_emsg)
+ {
+- gchar *pch = NULL;
+-
+ g_return_if_fail(pch_func != NULL);
+
+- pch = g_strdup_printf("%s(%s) emsg=%s", pch_func, pch_topic, pch_emsg);
+-
+- g_message(pch);
+-
+- g_free(pch);
++ g_message("%s(%s) emsg=%s", pch_func, pch_topic, pch_emsg);
+
+ return;
+ }