2024-01-06 07:44:13 +01:00
|
|
|
Name: nut
|
2024-04-11 19:10:46 +02:00
|
|
|
Version: 2.8.2
|
2024-01-06 07:44:15 +01:00
|
|
|
Release: 1mamba
|
2024-04-11 19:10:46 +02:00
|
|
|
Summary: A collection of network UPS tools
|
|
|
|
Group: System/Kernel and Hardware
|
2024-01-06 07:44:13 +01:00
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-04-11 19:10:46 +02:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://networkupstools.org/
|
|
|
|
Source: https://github.com/networkupstools/nut.git/v%{version}/nut-%{version}.tar.bz2
|
|
|
|
Source1: nut.sysusers
|
|
|
|
Source2: nut.tmpfiles
|
2024-01-06 07:44:13 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-04-11 19:10:46 +02:00
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libgd-devel
|
|
|
|
BuildRequires: libi2c-devel
|
|
|
|
BuildRequires: libltdl-devel
|
|
|
|
BuildRequires: libneon-devel
|
|
|
|
BuildRequires: libnetsnmp-devel
|
|
|
|
BuildRequires: libnsl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libpython27-devel
|
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libsystemd-devel
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
BuildRequires: libwrap-devel
|
2024-01-06 07:44:13 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-04-11 19:10:46 +02:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 07:44:13 +01:00
|
|
|
|
2024-01-06 07:44:15 +01:00
|
|
|
%description
|
2024-04-11 19:10:46 +02:00
|
|
|
Network UPS Tools is a collection of programs which provide a common interface for monitoring and administering UPS, PDU and SCD hardware.
|
|
|
|
It uses a layered approach to connect all of the parts.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
2024-01-06 07:44:15 +01:00
|
|
|
|
2024-01-06 07:44:13 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-04-11 19:10:46 +02:00
|
|
|
./autogen.sh
|
2024-01-06 07:44:13 +01:00
|
|
|
|
|
|
|
%build
|
2024-04-11 19:10:46 +02:00
|
|
|
%configure \
|
|
|
|
--sysconfdir=%{_sysconfdir}/nut \
|
|
|
|
--datadir=%{_datadir}/nut \
|
|
|
|
--with-udev-dir=%{_prefix}/lib/udev \
|
|
|
|
--disable-static \
|
|
|
|
--with-user=nut \
|
|
|
|
--with-group=nut \
|
|
|
|
--with-altpidpath=/run/nut \
|
|
|
|
--with-cgipath=%{_datadir}/nut/cgi \
|
|
|
|
--with-drvpath=%{_libdir}/nut \
|
|
|
|
--with-htmlpath=%{_datadir}/nut/html \
|
|
|
|
--with-pidpath=/run/nut \
|
|
|
|
--with-statepath=/var/lib/nut \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
|
|
--with-udev-dir=/usr/lib/udev \
|
|
|
|
--with-cgi \
|
|
|
|
--with-dev \
|
|
|
|
--with-doc=man \
|
|
|
|
--with-libltdl \
|
|
|
|
--with-neon \
|
|
|
|
--with-openssl \
|
|
|
|
--with-serial \
|
|
|
|
--with-snmp \
|
|
|
|
--with-usb
|
|
|
|
|
2024-01-06 07:44:13 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
find %{buildroot}%{_sysconfdir}/nut -name *.sample -exec rename '.sample' '' {} \;
|
2024-01-06 07:44:15 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/nut.conf
|
|
|
|
#install -D -m0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/nut.conf
|
|
|
|
mv %{buildroot}%{_tmpfilesdir}/nut{-common-tmpfiles,}.conf
|
2024-01-06 07:44:15 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 07:44:15 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
%pre
|
|
|
|
%sysusers_create_package nut %{SOURCE1}
|
|
|
|
:
|
2024-01-06 07:44:15 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
%post
|
|
|
|
%tmpfiles_create %{name}.conf
|
|
|
|
:
|
2024-01-06 07:44:15 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
2024-01-06 07:44:14 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/hosts.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/nut.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/ups.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/upsd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/upsd.users
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/upsmon.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/upsset.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/upsstats-single.html
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/upsstats.html
|
|
|
|
%config(noreplace) %{_sysconfdir}/nut/upssched.conf
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_sbindir}/ups*
|
|
|
|
%{_udevrulesdir}/62-nut-usbups.rules
|
|
|
|
%{_unitdir}/nut-driver-enumerator.path
|
|
|
|
%{_unitdir}/nut-driver-enumerator.service
|
|
|
|
%{_unitdir}/nut-driver-enumerator-daemon-activator.path
|
|
|
|
%{_unitdir}/nut-driver-enumerator-daemon-activator.service
|
|
|
|
%{_unitdir}/nut-driver-enumerator-daemon.service
|
|
|
|
%{_unitdir}/nut-driver.target
|
|
|
|
%{_unitdir}/nut-driver@.service
|
|
|
|
%{_unitdir}/nut-monitor.service
|
|
|
|
%{_unitdir}/nut-server.service
|
|
|
|
%{_unitdir}/nut.target
|
|
|
|
%{_systemd_util_dir}/system-shutdown/nutshutdown
|
|
|
|
%{_sysusersdir}/nut.conf
|
|
|
|
%{_tmpfilesdir}/nut.conf
|
|
|
|
%{python27_sitearch}/PyNUT.py
|
|
|
|
%{python27_sitearch}/test_nutclient.py
|
|
|
|
%{python3_sitearch}/PyNUT.py
|
|
|
|
%{python3_sitearch}/test_nutclient.py
|
|
|
|
%{_datadir}/augeas/lenses/dist/nut*.aug
|
|
|
|
%dir %{_datadir}/nut
|
|
|
|
%{_datadir}/nut/*
|
|
|
|
%dir %{_datadir}/nut-monitor
|
|
|
|
%{_datadir}/nut-monitor/*
|
|
|
|
%{_mandir}/man5/*.5*
|
|
|
|
%{_mandir}/man8/*.8*
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libnutclient.so.*
|
|
|
|
%{_libdir}/libnutclientstub.so.*
|
|
|
|
%{_libdir}/libnutscan.so.*
|
|
|
|
%{_libdir}/libupsclient.so.*
|
|
|
|
%dir %{_libdir}/nut
|
|
|
|
%{_libdir}/nut/*
|
|
|
|
%{_libexecdir}/nut-driver-enumerator.sh
|
|
|
|
%{_libexecdir}/sockdebug
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/libnutclient.so
|
|
|
|
%{_libdir}/libnutclientstub.so
|
|
|
|
%{_libdir}/libnutscan.so
|
|
|
|
%{_libdir}/libupsclient.so
|
|
|
|
%{_libdir}/pkgconfig/libnutclient.pc
|
|
|
|
%{_libdir}/pkgconfig/libnutclientstub.pc
|
|
|
|
%{_libdir}/pkgconfig/libnutscan.pc
|
|
|
|
%{_libdir}/pkgconfig/libupsclient.pc
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%doc NEWS README
|
2024-01-06 07:44:15 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
%changelog
|
|
|
|
* Wed Apr 10 2024 Automatic Build System <autodist@openmamba.org> 2.8.2-1mamba
|
2024-01-06 07:44:15 +01:00
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
* Mon Dec 04 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.1-2mamba
|
|
|
|
- fix for duplicate tmpfilesdir conf provided
|
2024-01-06 07:44:15 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
* Wed Nov 08 2023 Automatic Build System <autodist@mambasoft.it> 2.8.1-1mamba
|
2024-01-06 07:44:15 +01:00
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
* Wed Jun 22 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.0-2mamba
|
|
|
|
- fix run path, sysusers and tmpfiles
|
2024-01-06 07:44:13 +01:00
|
|
|
|
2024-04-11 19:10:46 +02:00
|
|
|
* Wed Jun 22 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.0-1mamba
|
|
|
|
- package created using the webbuild interface
|