From 45f63a97d60f1bbfd30ddcd45359044ea5a2587e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:29:36 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.14.13-1mamba;Tue Jul 28 2015] --- README.md | 2 ++ apcupsd.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 apcupsd.spec diff --git a/README.md b/README.md index ee820a9..b1787b4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # apcupsd +A daemon for controlling APC UPSes. + diff --git a/apcupsd.spec b/apcupsd.spec new file mode 100644 index 0000000..833e83c --- /dev/null +++ b/apcupsd.spec @@ -0,0 +1,62 @@ +Name: apcupsd +Version: 3.14.13 +Release: 1mamba +Summary: A daemon for controlling APC UPSes +Group: System/Monitoring +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.apcupsd.org +Source: http://downloads.sourceforge.net/project/apcupsd/apcupsd%20-%20Stable/%{version}/apcupsd-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A daemon for controlling APC UPSes. + +%debug_package + +%prep +%setup -q + +%build +%configure \ + --sysconfdir=%{_sysconfdir}/%{name} +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +rm -rf %{buildroot}%{_datadir}/hal + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/%{name}/apccontrol +%config(noreplace) %{_sysconfdir}/%{name}/apcupsd.conf +%config(noreplace) %{_sysconfdir}/%{name}/changeme +%config(noreplace) %{_sysconfdir}/%{name}/commfailure +%config(noreplace) %{_sysconfdir}/%{name}/commok +%config(noreplace) %{_sysconfdir}/%{name}/offbattery +%config(noreplace) %{_sysconfdir}/%{name}/onbattery +%{_sbindir}/apcaccess +%{_sbindir}/apctest +%{_sbindir}/apcupsd +%{_sbindir}/smtp +%{_mandir}/man5/apcupsd.conf.5* +%{_mandir}/man8/apcaccess.8* +%{_mandir}/man8/apccontrol.8* +%{_mandir}/man8/apctest.8* +%{_mandir}/man8/apcupsd.8* +%doc COPYING + +%changelog +* Tue Jul 28 2015 Silvan Calarco 3.14.13-1mamba +- package created using the webbuild interface