]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
- updated to 3.14.14, adjusted configure patch for current autotools master auto/th/apcupsd-3.14.14-1
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 18 Jul 2023 19:41:06 +0000 (21:41 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 18 Jul 2023 19:41:06 +0000 (21:41 +0200)
apcupsd-configure.patch
apcupsd.spec

index aaf88c93835f3c24ffba2a7e50a125220665ed3f..0a7c120b904d0eb7d8db6567beaf7221ec5039fe 100644 (file)
  
 --- apcupsd-3.14.13/autoconf/configure.in~     2015-09-16 16:36:41.000000000 +0300
 +++ apcupsd-3.14.13/autoconf/configure.in      2015-09-16 16:37:57.190362425 +0300
+@@ -14,7 +14,7 @@ dnl Config header file.
+ AC_CONFIG_HEADER(include/apcconfig.h:autoconf/config.h.in)
+ topdir=`pwd`
+-AC_CONFIG_AUX_DIR(${topdir}/autoconf)
++AC_CONFIG_AUX_DIR([autoconf])
+ dnl
+ dnl Absolute srcdir
+@@ -887,9 +887,6 @@ dnl If the AC_CONFIG_AUX_DIR macro for a
+ dnl find the mkinstalldirs script in another subdir than ($topdir).
+ dnl Try to locate it.
+ MKINSTALLDIRS=
+-if test -n "$ac_aux_dir"; then
+-   MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
+-fi
+ if test x$MKINSTALLDIRS = x ; then
+    MKINSTALLDIRS="\$(topdir)/autoconf/mkinstalldirs"
+ fi
 @@ -1261,16 +1261,25 @@
  # Find the default directory to put the root-mode PID file in
  for PIDDIR in "/var/run" "/etc/apcupsd"
index 078e85e2e2a547f6a1ddb564a39396f20aeadceb..2fa0fb6d0cd8287c4b63d59fba35f6cf03fc2dc9 100644 (file)
@@ -1,21 +1,21 @@
 #
 # Conditional build:
-%bcond_without cgi     # without CGI program support
-%bcond_without gapcmon # without gapcmon GUI
-%bcond_without net     # without network support
-%bcond_with    snmp    # with SNMP support
-%bcond_without test    # without TEST support
-%bcond_without usb     # without USB support
+%bcond_without cgi     # CGI program support
+%bcond_without gapcmon # gapcmon GUI
+%bcond_without net     # network support
+%bcond_with    snmp    # SNMP support
+%bcond_without test    # TEST support
+%bcond_without usb     # USB support
 
 Summary:       Power management software for APC UPS hardware
 Summary(pl.UTF-8):     Oprogramowanie do zarządzania energią dla UPS-ów APC
 Name:          apcupsd
-Version:       3.14.13
+Version:       3.14.14
 Release:       1
 License:       GPL v2
 Group:         Networking/Daemons
-Source0:       http://downloads.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz
-# Source0-md5: c291d9d3923b4d9c0e600b755ad4f489
+Source0:       https://downloads.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz
+# Source0-md5: cc8f5ced77f38906a274787acb9bc980
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       %{name}.sysconfig
@@ -33,6 +33,8 @@ BuildRequires:        autoconf
 BuildRequires: automake
 BuildRequires: gd-devel
 %{?with_gapcmon:BuildRequires: gtk+2-devel >= 2:2.4.0}
+BuildRequires: libstdc++-devel
+BuildRequires: libwrap-devel
 BuildRequires: man-db
 %{?with_snmp:BuildRequires:    net-snmp-devel}
 BuildRequires: pkgconfig
@@ -80,7 +82,8 @@ o stanie UPS-a.
 Summary:       Apcupsd GUI monitoring application
 Summary(pl.UTF-8):     Aplikacja GUI monitorowania Apcupsd
 Group:         X11/Applications
-URL:           http://gapcmon.sourceforge.net/
+URL:           https://gapcmon.sourceforge.net/
+Requires:      gtk+2 >= 2:2.4.0
 
 %description gapcmon
 GNOME/GTK+ based application which integrates into most desktop panels
@@ -105,26 +108,29 @@ serwera NIS. Status każdego UPS-a przedstawia ikona.
 %patch7 -p1
 
 %build
-for i in configure.in aclocal.m4 config.h.in; do install autoconf/$i .;done
-cp -f %{_datadir}/automake/config.sub autoconf
+for i in configure.in aclocal.m4 config.h.in; do
+       cp -pf autoconf/$i .
+done
+cp -pf %{_datadir}/automake/{config.guess,config.sub,install-sh,mkinstalldirs} autoconf
 %{__autoconf}
 %configure \
        APCUPSD_MAIL="/bin/mail" \
        SHUTDOWN="/sbin/shutdown" \
        WALL="%{_bindir}/wall" \
+       --with-libwrap \
        --with-log-dir=%{_var}/log \
        --with-stat-dir=%{_var}/lib/apcupsd \
        --enable-apcsmart \
-       --enable-dumb \
-       --enable-pcnet \
 %if %{with cgi}
        --enable-cgi \
        --with-cgi-bin=/home/services/httpd/cgi-bin \
 %endif
-       %{?with_test:--enable-test} \
-       %{?with_net:--enable-net} \
+       --enable-dumb \
        %{?with_gapcmon:--enable-gapcmon} \
+       %{?with_net:--enable-net} \
+       --enable-pcnet \
        %{?with_snmp:--enable-snmp} \
+       %{?with_test:--enable-test} \
        %{?with_usb:--enable-usb}
 
 %{__make} \
@@ -177,7 +183,7 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog Developers
+%doc ChangeLog Developers ReleaseNotes
 %attr(755,root,root) %{_sbindir}/apcaccess
 %attr(755,root,root) %{_sbindir}/apctest
 %attr(755,root,root) %{_sbindir}/apcupsd
@@ -212,7 +218,10 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/multimon.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apcupsd.css
-%attr(755,root,root) %{_cgidir}/*.cgi
+%attr(755,root,root) %{_cgidir}/multimon.cgi
+%attr(755,root,root) %{_cgidir}/upsfstats.cgi
+%attr(755,root,root) %{_cgidir}/upsimage.cgi
+%attr(755,root,root) %{_cgidir}/upsstats.cgi
 %endif
 
 %if %{with gapcmon}
@@ -220,5 +229,10 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gapcmon
 %{_desktopdir}/gapcmon.desktop
-%{_pixmapsdir}/*.png
+%{_pixmapsdir}/apcupsd.png
+%{_pixmapsdir}/charging.png
+%{_pixmapsdir}/gapc_prefs.png
+%{_pixmapsdir}/onbatt.png
+%{_pixmapsdir}/online.png
+%{_pixmapsdir}/unplugged.png
 %endif
This page took 0.126189 seconds and 4 git commands to generate.