63 lines
1.6 KiB
RPMSpec
63 lines
1.6 KiB
RPMSpec
|
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 <silvan.calarco@mambasoft.it>
|
||
|
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 <silvan.calarco@mambasoft.it> 3.14.13-1mamba
|
||
|
- package created using the webbuild interface
|