Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Fedora Release Engineering
d71ed2aa54 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:48:55 +00:00
Fedora Release Engineering
f2445acf01 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 17:07:44 +00:00
Gwyn Ciesla
c2ac98a585 Don't ship /usr/bin/smtp 2025-05-22 14:25:42 -05:00
Gwyn Ciesla
583cb0b03b Move binaries to bin 2025-05-09 15:00:02 -05:00
Davide Cavalca
8a2cf41162 Fix libusb conditional to make it build on EPEL 10 2025-04-23 14:15:16 -07:00
2 changed files with 25 additions and 5 deletions

View file

@ -5,7 +5,7 @@ After=network-online.target
[Service]
ExecStartPre=-/bin/rm -f /etc/apcupsd/powerfail
ExecStart=/sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf
ExecStart=/usr/bin/apcupsd -b -f /etc/apcupsd/apcupsd.conf
KillMode=process
[Install]

View file

@ -4,7 +4,7 @@
Name: apcupsd
Version: 3.14.14
Release: 35%{?dist}
Release: 40%{?dist}
Summary: APC UPS Power Control Daemon
License: GPL-2.0-only
@ -31,7 +31,7 @@ Patch4: 99-apcupsd-xfer-glitch.patch
BuildRequires: gcc-c++
BuildRequires: glibc-devel, gd-devel
%if %{defined fedora}
%if %{defined fedora} || (%{defined rhel} && 0%{?rhel} > 9)
BuildRequires: libusb-compat-0.1-devel
%endif
%if (%{defined rhel} && 0%{?rhel} <= 9)
@ -87,7 +87,7 @@ printf 'install:\n\techo skipped\n' > platforms/redhat/Makefile
%configure \
--sysconfdir="/etc/apcupsd" \
--with-cgi-bin="/var/www/apcupsd" \
--sbindir=/sbin \
--sbindir=%{_bindir} \
--enable-cgi \
--enable-pthreads \
--enable-net \
@ -144,7 +144,11 @@ rm examples/*.in
%config(noreplace) /etc/apcupsd/onbattery
%config(noreplace) /etc/logrotate.d/apcupsd
/usr/share/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi
%attr(0755,root,root) /sbin/*
%{_bindir}/apcaccess
%{_bindir}/apctest
%{_bindir}/apcupsd
%exclude %{_bindir}/smtp
%{_mandir}/*/*
%files cgi
@ -177,6 +181,22 @@ rm examples/*.in
%changelog
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.14-40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.14-39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu May 22 2025 Gwyn Ciesla <gwync@protonmail.com> - 3.14.14-38
- Don't ship /usr/bin/smtp, not used, conflicts with opensmtpd.
* Fri May 09 2025 Gwyn Ciesla <gwync@protonmail.com> - 3.14.14-37
- Move binaries from sbin to bin, 2365293.
* Wed Apr 23 2025 Davide Cavalca <dcavalca@fedoraproject.org> - 3.14.14-36
- Fix libusb conditional to make it build on EPEL 10
Fixes: RHBZ#2337139
* Wed Apr 09 2025 Germano Massullo <germano.massullo@gmail.com> - 3.14.14-35
- Adds 99-apcupsd-xfer-glitch.patch