From 345fadb5d2fad3163c10c2c8a7ef0ec5268ff70c Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 19 Feb 2025 11:36:39 +0100 Subject: [PATCH 1/3] build for epel10, trim changelog --- nut.spec | 327 +++---------------------------------------------------- 1 file changed, 15 insertions(+), 312 deletions(-) diff --git a/nut.spec b/nut.spec index 2d04cd3..71e0d60 100644 --- a/nut.spec +++ b/nut.spec @@ -14,7 +14,7 @@ Summary: Network UPS Tools Name: nut Version: 2.8.2.1 -Release: 5%{?dist}.1.git20240703pr2505 +Release: 0%{?dist}.1.git20240703pr2505 License: GPL-2.0-or-later AND GPL-3.0-or-later Url: https://www.networkupstools.org/ Source: https://www.networkupstools.org/source/2.8/%{name}-%{version}.tar.gz @@ -47,16 +47,15 @@ BuildRequires: freetype-devel BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gd-devel -%if 0%{?fedora} < 39 -BuildRequires: libgpiod-devel -%endif +# not available in epel atm +#BuildRequires: libgpiod-devel +#BuildRequires: libmodbus-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: libtool-ltdl-devel BuildRequires: libX11-devel BuildRequires: libXpm-devel -BuildRequires: libmodbus-devel BuildRequires: libi2c-devel BuildRequires: neon-devel BuildRequires: net-snmp-devel @@ -162,6 +161,8 @@ export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS" export LDFLAGS="-Wl,-z,now" %configure \ --with-all \ + --without-modbus \ + --without-gpio \ %if %{without powerman} --without-powerman \ %endif @@ -334,8 +335,8 @@ fi %{_mandir}/man8/nutconf.8.gz -%{_mandir}/man8/adelsystem_cbi.8.gz -%{_mandir}/man8/apc_modbus.8.gz +#%{_mandir}/man8/adelsystem_cbi.8.gz +#%{_mandir}/man8/apc_modbus.8.gz %{_mandir}/man8/al175.8.gz %{_mandir}/man8/apcsmart.8.gz @@ -358,13 +359,11 @@ fi %{_mandir}/man8/everups.8.gz %{_mandir}/man8/etapro.8.gz %{_mandir}/man8/gamatronic.8.gz -%{_mandir}/man8/generic_modbus.8.gz +#%{_mandir}/man8/generic_modbus.8.gz %{_mandir}/man8/genericups.8.gz -%if 0%{?fedora} < 39 -%{_mandir}/man8/generic_gpio.8.gz -%endif +#%{_mandir}/man8/generic_gpio.8.gz %{_mandir}/man8/hwmon_ina219.8.gz -%{_mandir}/man8/huawei-ups2000.8.gz +#%{_mandir}/man8/huawei-ups2000.8.gz %{_mandir}/man8/isbmex.8.gz %{_mandir}/man8/ivtscd.8.gz %{_mandir}/man8/liebert.8.gz @@ -385,7 +384,7 @@ fi %{_mandir}/man8/nutdrv_qx.8.gz %{_mandir}/man8/oneac.8.gz %{_mandir}/man8/optiups.8.gz -%{_mandir}/man8/phoenixcontact_modbus.8.gz +#%{_mandir}/man8/phoenixcontact_modbus.8.gz %{_mandir}/man8/pijuice.8.gz %{_mandir}/man8/powercom.8.gz %if %{with powerman} @@ -401,7 +400,7 @@ fi %{_mandir}/man8/snmp-ups.8.gz %{_mandir}/man8/solis.8* %{_mandir}/man8/sockdebug.8.gz -%{_mandir}/man8/socomec_jbus.8.gz +#%{_mandir}/man8/socomec_jbus.8.gz %{_mandir}/man8/tripplite.8.gz %{_mandir}/man8/tripplite_usb.8.gz %{_mandir}/man8/tripplitesu.8.gz @@ -490,302 +489,6 @@ fi %{_libdir}/pkgconfig/libnutscan.pc %changelog -* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 2.8.2.1-5.1.git20240703pr2505 -- Add sysusers.d config file to allow rpm to create users/groups automatically - -* Wed Jan 29 2025 Michal Hlavinka - 2.8.2.1-4.1.git20240703pr2505 -- fix ftbfs, make it build with unified bin/sbin - -* Fri Jan 17 2025 Fedora Release Engineering - 2.8.2.1-3.1.git20240703pr2505 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Fri Nov 15 2024 Orion Poplawski - 2.8.2.1-2.1.git20240703pr2505 -- Add BR systemd-devel to enable systemd notification support - -* Thu Jul 18 2024 Fedora Release Engineering - 2.8.2.1-1.1.git20240703pr2505 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Wed Jul 03 2024 Michal Hlavinka - 2.8.2.1-0.1.git20240703pr2505 -- fix python FTBFS, uses git snapshot as of 20240703 with PR 2505 - -* Fri Jun 07 2024 Python Maint - 2.8.2-2 -- Rebuilt for Python 3.13 - -* Wed Apr 03 2024 Michal Hlavinka - 2.8.2-1 -- updated to 2.8.2(2272586) - -* Thu Jan 25 2024 Fedora Release Engineering - 2.8.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sun Jan 21 2024 Fedora Release Engineering - 2.8.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Thu Nov 30 2023 Orion Poplawski - 2.8.1-2 -- Re-add nut.target to nut-client (bz#2156504) - -* Wed Nov 01 2023 Michal Hlavinka - 2.8.1-1 -- updated to 2.8.1 (#2247337) - -* Tue Oct 10 2023 Michal Hlavinka - 2.8.0-14 -- spec cleanup, based on PR#14 by Orion Poplawski - -* Thu Jul 20 2023 Fedora Release Engineering - 2.8.0-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Tue Jun 13 2023 Python Maint - 2.8.0-12 -- Rebuilt for Python 3.12 - -* Wed Apr 26 2023 Michal Hlavinka - 2.8.0-11 -- update license tag format (SPDX migration) for https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1 - -* Tue Feb 14 2023 Michal Hlavinka - 2.8.0-10 -- add nut-xml to nut recommends (#2151810) - -* Thu Jan 19 2023 Fedora Release Engineering - 2.8.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Jan 04 2023 Michal Hlavinka - 2.8.0-8 -- move upslog to nut-client, some small spec file changes (#2156504) - -* Wed Nov 30 2022 Charles R. Anderson - 2.8.0-7 -- use piddir for specifying restart_flag location -- use piddir for specifying configure --with-statepath/pidpath/altpidpath -- add nut-2.8.0-piddir-owner.patch for upstream tmpfiles config creation to not append /nut and always use owner root -- update nut-2.6.3-tmpfiles.patch to use correct tmpfiles config file name -- remove unused downstream tmpfiles source and code - -* Sun Nov 27 2022 Florian Weimer - 2.8.0-6 -- Port configure script to C99 - -* Wed Aug 31 2022 Michal Hlavinka - 2.8.0-5 -- update pid path - -* Fri Jul 22 2022 Fedora Release Engineering - 2.8.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 2.8.0-3 -- Rebuilt for Python 3.11 - -* Tue Jun 07 2022 Michal Hlavinka - 2.8.0-2 -- drop unused solaris init script pulling unnecessary dependency - -* Mon May 09 2022 Michal Hlavinka - 2.8.0-1 -- updated to 2.8.0 - -* Thu Jan 20 2022 Fedora Release Engineering - 2.7.4-44 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Thu Sep 23 2021 Miro Hrončok - 2.7.4-43 -- Don't own /usr/lib/python3.X/site-packages - -* Tue Sep 14 2021 Sahana Prasad - 2.7.4-42 -- Rebuilt with OpenSSL 3.0.0 - -* Thu Jul 22 2021 Fedora Release Engineering - 2.7.4-41 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue Jun 08 2021 Michal Hlavinka - 2.7.4-40 -- drop snmp-ups support for DES, as required net-snmp no longer supports it - -* Fri Jun 04 2021 Python Maint - 2.7.4-39 -- Rebuilt for Python 3.10 - -* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 2.7.4-38 -- Rebuilt for updated systemd-rpm-macros - See https://pagure.io/fesco/issue/2583. - -* Tue Jan 26 2021 Fedora Release Engineering - 2.7.4-37 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Sep 15 2020 Jeff Law - 2.7.4-36 -- Force C++14 as this code is not C++17 ready - -* Wed Sep 02 2020 Josef Ridky - 2.7.4-35 -- Resolves: #1865077 - FTBFS in Fedora 33 -- Rebuilt for new release of net-snmp - -* Sat Aug 01 2020 Fedora Release Engineering - 2.7.4-34 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 2.7.4-33 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jun 02 2020 Michal Hlavinka - 2.7.4-32 -- nut user needs tty group for wall (#1774591) - -* Tue Jun 02 2020 Michal Hlavinka - 2.7.4-31 -- update tmpfiles nut run directory - -* Tue May 26 2020 Orion Poplawski - 2.7.4-30 -- Drop old udev requires/scriptlet - -* Tue May 26 2020 Orion Poplawski - 2.7.4-29 -- Add upstream patch for OpenSSL 1.1.0 support, enable for Fedora >= 33 - -* Tue May 26 2020 Miro Hrončok - 2.7.4-28 -- Rebuilt for Python 3.9 - -* Wed Jan 29 2020 Fedora Release Engineering - 2.7.4-27 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Fri Oct 04 2019 Michal Hlavinka - 2.7.4-26 -- drop pygtk2 requirements - -* Thu Oct 03 2019 Michal Hlavinka - 2.7.4-25 -- drop python 2 requirements including nut-monitor app - -* Thu Jul 25 2019 Fedora Release Engineering - 2.7.4-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Mon Mar 25 2019 Michal Hlavinka - 2.7.4-23 -- add missing requirements for nut monitor -- fix file descriptor leak for notifycmd - -* Fri Feb 01 2019 Fedora Release Engineering - 2.7.4-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Tue Oct 16 2018 Orion Poplawski - 2.7.4-21 -- Cleanup and modernize spec -- Fix ownership/permissions of /var/run/nut (bug #1584330, #1580082) -- Fix python shbangs - -* Sun Oct 14 2018 Peter Robinson 2.7.4-20 -- Updates dependencies, modernise spec, use %%license -- Python build fixes - -* Tue Jul 24 2018 Adam Williamson - 2.7.4-19 -- Rebuild for new net-snmp - -* Fri Jul 13 2018 Fedora Release Engineering - 2.7.4-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Apr 17 2018 Xavier Bachelot - 2.7.4-17 -- Remove unrecognized configure option --without-hal -- Explicitely disable tcpwrapper support -- Remove unneeded CRLF EOL fix -- Add BR: cppunit-devel - -* Wed Mar 07 2018 Michal Hlavinka - 2.7.4-16 -- add gcc buildrequire - -* Wed Feb 14 2018 Iryna Shcherbina - 2.7.4-15 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Thu Feb 08 2018 Fedora Release Engineering - 2.7.4-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Tue Nov 07 2017 Igor Gnatenko - 2.7.4-13 -- Remove old crufty coreutils requires - -* Wed Aug 30 2017 Michal Hlavinka - 2.7.4-12 -- rebuild for freeipmi update - -* Thu Aug 03 2017 Fedora Release Engineering - 2.7.4-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 2.7.4-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Thu Jun 22 2017 Michal Hlavinka - 2.7.4-9 -- enable nss crypto (#1463071) - -* Wed May 24 2017 Michal Hlavinka - 2.7.4-8 -- fix location of tmpfiles.d in service files (#1399602) - -* Sat Feb 11 2017 Fedora Release Engineering - 2.7.4-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Feb 01 2017 Sandro Mani - 2.7.4-6 -- Rebuild (libwebp) - -* Fri Nov 11 2016 Michal Hlavinka - 2.7.4-5 -- use %%_tmpfilesdir macro (#1394009) - -* Thu Sep 15 2016 Till Maas - 2.7.4-4 -- Disable powerman support, powerman was retired on Fedora - -* Thu Aug 11 2016 Michal Hlavinka - 2.7.4-3 -- make sure tmpfiles creation is executped before ups driver (#1365904,#1349362) - -* Tue Jul 19 2016 Fedora Release Engineering - 2.7.4-2 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Sat Mar 12 2016 Michal Hlavinka - 2.7.4-1 -- nut updated to 2.7.4 - -* Thu Feb 04 2016 Fedora Release Engineering - 2.7.3-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Sat Dec 05 2015 Kalev Lember - 2.7.3-6 -- Rebuilt for libfreeipmi soname bump - -* Tue Dec 1 2015 Tom Callaway - 2.7.3-5 -- rebuild for libvpx 1.5.0 - -* Wed Jun 17 2015 Fedora Release Engineering - 2.7.3-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat May 02 2015 Kalev Lember - 2.7.3-3 -- Rebuilt for GCC 5 C++11 ABI change - -* Tue Apr 28 2015 Michal Hlavinka - 2.7.3-2 -- start nut driver before the daemon - -* Thu Apr 23 2015 Michal Hlavinka - 2.7.3-1 -- nut updated to 2.7.3 - -* Mon Apr 6 2015 Tom Callaway - 2.7.2-4 -- rebuild against libvpx 1.4.0 - -* Sun Aug 17 2014 Fedora Release Engineering - 2.7.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 2.7.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Tue Apr 22 2014 Michal Hlavinka - 2.7.2-1 -- nut updated to 2.7.2 - -* Thu Apr 17 2014 Michal Hlavinka - 2.7.1-4 -- fix multilib issue (#831429) - -* Thu Mar 06 2014 Michal Hlavinka - 2.7.1-3 -- fix path of nut-driver executable (#1072076) -- fix location of udev rules - -* Thu Mar 06 2014 Michal Hlavinka - 2.7.1-2 -- fix undefined references in libupsclient (#1071919) - -* Thu Feb 27 2014 Michal Hlavinka - 2.7.1-1 -- nut updated to 2.7.1 - -* Tue Sep 24 2013 Michal Hlavinka - 2.6.5-16 -- rebuilt with updated freeipmi (1.3.2) - -* Tue Sep 03 2013 Michal Hlavinka - 2.6.5-15 -- rebuilt with updated freeipmi - -* Sat Aug 03 2013 Fedora Release Engineering - 2.6.5-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Tue Jun 11 2013 Remi Collet - 2.6.5-13 -- rebuild for new GD 2.1.0 - -* Mon Apr 22 2013 Michal Hlavinka - 2.6.5-12 -- do not let upsmon run during update (#916472) -- make binaries hardened (#955157) - -* Thu Feb 28 2013 Michal Hlavinka - 2.6.5-11 -- clean pid file on exit (#916468) - -* Thu Feb 14 2013 Fedora Release Engineering - 2.6.5-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Mon Jan 21 2013 Adam Tkac - 2.6.5-9 -- rebuild due to "jpeg8-ABI" feature drop - -* Mon Jan 07 2013 Michal Hlavinka - 2.6.5-8 -- do not traceback when ups is not reachable +* Wed Feb 19 2025 Michal Hlavinka - 2.8.2.1-0.1.git20240703pr2505 +- build for epel10, trim changelog From bf5c2534c310cc1c2cd40acb80a7a5abee0e2927 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 30 Apr 2025 11:03:22 +0200 Subject: [PATCH 2/3] build for epel10, trim changelog --- .gitignore | 1 + nut.spec | 16 ++++++++++++++-- sources | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 56f7b98..cae0d0a 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ nut-2.4.3.tar.gz /nut-2.8.1.tar.gz /nut-2.8.2.tar.gz /nut-2.8.2.1.tar.gz +/nut-2.8.3.tar.gz diff --git a/nut.spec b/nut.spec index 71e0d60..cb80d30 100644 --- a/nut.spec +++ b/nut.spec @@ -13,8 +13,8 @@ Summary: Network UPS Tools Name: nut -Version: 2.8.2.1 -Release: 0%{?dist}.1.git20240703pr2505 +Version: 2.8.3 +Release: 1%{?dist} License: GPL-2.0-or-later AND GPL-3.0-or-later Url: https://www.networkupstools.org/ Source: https://www.networkupstools.org/source/2.8/%{name}-%{version}.tar.gz @@ -47,6 +47,7 @@ BuildRequires: freetype-devel BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gd-devel +BuildRequires: jq # not available in epel atm #BuildRequires: libgpiod-devel #BuildRequires: libmodbus-devel @@ -319,12 +320,18 @@ fi %{_unitdir}/nut-driver.target %{_unitdir}/nut-server.service %{_unitdir}/nut.target +%{_presetdir}/nut-systemd.preset +%{_unitdir}/enphase-monitor@.service +%{_unitdir}/nut-logger.service +%{_unitdir}/nut-udev-settle.service %{_sbindir}/upsd %{_bindir}/nutconf %{_bindir}/nut-scanner %{_libdir}/libnutscan.so.* +%{_libdir}/libnutconf.so.* %{_libexecdir}/nut-driver-enumerator.sh %{_libexecdir}/sockdebug +%{_libexecdir}/enphase-monitor %{_datadir}/augeas/lenses/dist/nut* %{_datadir}/augeas/lenses/dist/tests/test_nut.aug %{_datadir}/%{name}/cmdvartab @@ -355,6 +362,7 @@ fi %{_mandir}/man8/blazer_ser.8.gz %{_mandir}/man8/blazer_usb.8.gz %{_mandir}/man8/clone.8.gz +%{_mandir}/man8/clone-outlet.8.gz %{_mandir}/man8/dummy-ups.8.gz %{_mandir}/man8/everups.8.gz %{_mandir}/man8/etapro.8.gz @@ -368,12 +376,14 @@ fi %{_mandir}/man8/ivtscd.8.gz %{_mandir}/man8/liebert.8.gz %{_mandir}/man8/liebert-esp2.8.gz +%{_mandir}/man8/liebert-gxe.8.gz %{_mandir}/man8/masterguard.8.gz %{_mandir}/man8/metasys.8.gz %{_mandir}/man8/microdowell.8.gz %{_mandir}/man8/microsol-apc.8.gz %{_mandir}/man8/mge-utalk.8.gz %{_mandir}/man8/mge-shut.8.gz +%{_mandir}/man8/nhs_ser.8.gz %{_mandir}/man8/nutupsdrv.8.gz %{_mandir}/man8/nutdrv_atcl_usb.8.gz %{_mandir}/man8/nutdrv_siemens_sitop.8.gz @@ -482,9 +492,11 @@ fi %{_libdir}/libupsclient.so %{_libdir}/libnutclient.so %{_libdir}/libnutclientstub.so +%{_libdir}/libnutconf.so %{_libdir}/libnutscan.so %{_libdir}/pkgconfig/libupsclient.pc %{_libdir}/pkgconfig/libnutclient.pc +%{_libdir}/pkgconfig/libnutconf.pc %{_libdir}/pkgconfig/libnutclientstub.pc %{_libdir}/pkgconfig/libnutscan.pc diff --git a/sources b/sources index 379e679..f63aad6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nut-2.8.2.1.tar.gz) = 62457781758be939919d1c9bbed4b2895d2c434c73ec6d36ab6120898f84a24131cf7796d320117c5f8780e63da1aa6966e59156466ff78f20267b0a4eed1652 +SHA512 (nut-2.8.3.tar.gz) = 0aeafad02ab323b02041a370c586dede91483cab57e0a9d1256a685716ca9f0d0f114df904ef472d48fa53ac1896690b7878828eb3b00934959c7aeaa63af99f From abfcfade86aea1ea22b2ecf905a4a27e72112e70 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Fri, 15 Aug 2025 11:01:01 +0200 Subject: [PATCH 3/3] updated to 2.8.4 (#2387244) rename rhino to nutdrv_rhino to prevent file conflict (rhbz#2367057) --- .gitignore | 1 + nut-2.8.3-rhinoname.patch | 23 +++++++++++++++++++++++ nut-c99-strdup.patch | 17 ----------------- nut.spec | 29 +++++++++++++++++++++++------ sources | 2 +- 5 files changed, 48 insertions(+), 24 deletions(-) create mode 100644 nut-2.8.3-rhinoname.patch delete mode 100644 nut-c99-strdup.patch diff --git a/.gitignore b/.gitignore index cae0d0a..a737052 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ nut-2.4.3.tar.gz /nut-2.8.2.tar.gz /nut-2.8.2.1.tar.gz /nut-2.8.3.tar.gz +/nut-2.8.4.tar.gz diff --git a/nut-2.8.3-rhinoname.patch b/nut-2.8.3-rhinoname.patch new file mode 100644 index 0000000..71be46d --- /dev/null +++ b/nut-2.8.3-rhinoname.patch @@ -0,0 +1,23 @@ +diff -up nut-2.8.4-build/nut-2.8.4/drivers/Makefile.am.rhinoname nut-2.8.4-build/nut-2.8.4/drivers/Makefile.am +--- nut-2.8.4-build/nut-2.8.4/drivers/Makefile.am.rhinoname 2025-08-14 11:08:48.763700333 +0200 ++++ nut-2.8.4-build/nut-2.8.4/drivers/Makefile.am 2025-08-14 11:29:43.803846801 +0200 +@@ -74,7 +74,7 @@ NUTSW_DRIVERLIST = $(NUTSW_DRIVERLIST_DU + SERIAL_DRIVERLIST = al175 bcmxcp belkin belkinunv bestfcom \ + bestfortress bestuferrups bestups etapro everups \ + gamatronic genericups isbmex liebert liebert-esp2 liebert-gxe masterguard metasys \ +- mge-utalk microdowell microsol-apc mge-shut nutdrv_hashx oneac optiups powercom powervar_cx_ser rhino \ ++ mge-utalk microdowell microsol-apc mge-shut nutdrv_hashx oneac optiups powercom powervar_cx_ser nutdrv_rhino \ + safenet nutdrv_siemens-sitop solis tripplite tripplitesu upscode2 victronups powerpanel \ + blazer_ser ivtscd apcsmart apcsmart-old riello_ser sms_ser bicker_ser ve-direct + if HAVE_LINUX_SERIAL_H +@@ -198,8 +198,8 @@ powerpanel_SOURCES = powerpanel.c powerp + powerpanel_LDADD = $(LDADD) -lm + powervar_cx_ser_SOURCES = powervar_cx_ser.c powervar_cx.c + powervar_cx_ser_CFLAGS = $(AM_CFLAGS) -DPVAR_SERIAL=1 +-rhino_SOURCES = rhino.c +-rhino_LDADD = $(LDADD) -lm ++nutdrv_rhino_SOURCES = rhino.c ++nutdrv_rhino_LDADD = $(LDADD) -lm + safenet_SOURCES = safenet.c + nutdrv_siemens_sitop_SOURCES = nutdrv_siemens_sitop.c + solis_SOURCES = solis.c diff --git a/nut-c99-strdup.patch b/nut-c99-strdup.patch deleted file mode 100644 index 90c83db..0000000 --- a/nut-c99-strdup.patch +++ /dev/null @@ -1,17 +0,0 @@ -Fix strdup configure test: Remove a call to the undeclared free -function. - -Submitted upstream: - -diff --git a/configure.ac b/configure.ac -index 3aa26c24ebc99bb6..c93ccd1e494874d5 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -294,7 +294,6 @@ AC_CACHE_CHECK([for strdup(s)], - char *t = "Test"; - char *s = strdup(t); - if (!s || !(s[0]=='T'&&s[1]=='e'&&s[2]=='s'&&s[3]=='t'&&s[4]=='\0') || s == t) res = 1; --if (s) free (s); - if (res != 0) return res - /* autoconf adds ";return 0;" */ - ]])], diff --git a/nut.spec b/nut.spec index cb80d30..5bb7205 100644 --- a/nut.spec +++ b/nut.spec @@ -13,7 +13,7 @@ Summary: Network UPS Tools Name: nut -Version: 2.8.3 +Version: 2.8.4 Release: 1%{?dist} License: GPL-2.0-or-later AND GPL-3.0-or-later Url: https://www.networkupstools.org/ @@ -23,7 +23,7 @@ Patch2: nut-2.8.0-piddir-owner.patch #quick fix. TODO: fix it properly Patch9: nut-2.6.5-rmpidf.patch -Patch15: nut-c99-strdup.patch +Patch16: nut-2.8.3-rhinoname.patch Requires(post): coreutils systemd Requires(preun): systemd @@ -32,6 +32,7 @@ Recommends: nut-xml Requires: group(dialout) Requires: group(tty) +BuildRequires: asciidoc BuildRequires: make BuildRequires: autoconf BuildRequires: automake @@ -129,9 +130,10 @@ necessary to develop NUT client applications. %prep %setup -q -%patch -P 2 -p1 -b .piddir-owner +#patch -P 2 -p1 -b .piddir-owner %patch -P 9 -p1 -b .rmpidf -%patch -P 15 -p1 +#patch -P 15 -p1 +%patch -P 16 -p2 -b .rhinoname sed -i 's|=NUT-Monitor|=nut-monitor|' scripts/python/app/nut-monitor-py3qt5.desktop sed -i "s|sys.argv\[0\]|'%{_datadir}/%{name}/nut-monitor/nut-monitor'|" scripts/python/app/NUT-Monitor-py3qt5.in @@ -193,7 +195,8 @@ export LDFLAGS="-Wl,-z,now" --with-pkgconfig-dir=%{_libdir}/pkgconfig \ --disable-static \ --with-udev-dir=%{_usr}/lib/udev \ - --libdir=%{_libdir} + --libdir=%{_libdir} \ + --enable-docs-changelog=no # --with-doc # does not work in 2.7.1 # for rhbz#838139 check if still needed? @@ -242,6 +245,9 @@ do mv -f $fe.new $fe done +# rename rhino to nutdrv_rhino to prevent file conflict (rhbz#2367057) +mv %{buildroot}%{_mandir}/man8/rhino.8 %{buildroot}%{_mandir}/man8/nutdrv_rhino.8 + # install PyNUT install -p -D -m 644 scripts/python/module/PyNUT.py %{buildroot}%{python3_sitelib}/PyNUT.py # install nut-monitor @@ -366,6 +372,7 @@ fi %{_mandir}/man8/dummy-ups.8.gz %{_mandir}/man8/everups.8.gz %{_mandir}/man8/etapro.8.gz +%{_mandir}/man8/failover.8.gz %{_mandir}/man8/gamatronic.8.gz #%{_mandir}/man8/generic_modbus.8.gz %{_mandir}/man8/genericups.8.gz @@ -386,6 +393,7 @@ fi %{_mandir}/man8/nhs_ser.8.gz %{_mandir}/man8/nutupsdrv.8.gz %{_mandir}/man8/nutdrv_atcl_usb.8.gz +%{_mandir}/man8/nutdrv_hashx.8.gz %{_mandir}/man8/nutdrv_siemens_sitop.8.gz %{_mandir}/man8/nut-driver-enumerator.8.gz %{_mandir}/man8/nut-ipmipsu.8.gz @@ -401,7 +409,9 @@ fi %{_mandir}/man8/powerman-pdu.8.gz %endif %{_mandir}/man8/powerpanel.8.gz -%{_mandir}/man8/rhino.8.gz +%{_mandir}/man8/powervar_cx_ser.8.gz +%{_mandir}/man8/powervar_cx_usb.8.gz +%{_mandir}/man8/nutdrv_rhino.8.gz %{_mandir}/man8/richcomm_usb.8.gz %{_mandir}/man8/riello_ser.8.gz %{_mandir}/man8/riello_usb.8.gz @@ -420,6 +430,8 @@ fi %{_mandir}/man8/upsdrvctl.8.gz %{_mandir}/man8/upsdrvsvcctl.8.gz %{_mandir}/man8/usbhid-ups.8.gz +%{_mandir}/man8/victronups.8.gz +%{_mandir}/man8/ve-direct.8.gz %{_sysusersdir}/nut.conf %files client @@ -450,6 +462,7 @@ fi %{_mandir}/man5/nut.conf.5.gz %{_mandir}/man5/upsmon.conf.5.gz %{_mandir}/man5/upssched.conf.5.gz +%{_mandir}/man7/nut.7.gz %{_mandir}/man8/upsc.8.gz %{_mandir}/man8/upscmd.8.gz %{_mandir}/man8/upslog.8.gz @@ -501,6 +514,10 @@ fi %{_libdir}/pkgconfig/libnutscan.pc %changelog +* Thu Aug 14 2025 Michal Hlavinka - 2.8.4-1 +- updated to 2.8.4 (#2387244) +- rename rhino to nutdrv_rhino to prevent file conflict (rhbz#2367057) + * Wed Feb 19 2025 Michal Hlavinka - 2.8.2.1-0.1.git20240703pr2505 - build for epel10, trim changelog diff --git a/sources b/sources index f63aad6..5f00a02 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nut-2.8.3.tar.gz) = 0aeafad02ab323b02041a370c586dede91483cab57e0a9d1256a685716ca9f0d0f114df904ef472d48fa53ac1896690b7878828eb3b00934959c7aeaa63af99f +SHA512 (nut-2.8.4.tar.gz) = 0d87c0006608f92ae54f8a500f93d9a81eac1d9abf57f32e7718dd72f265b8293a0b6cdba04c802b81eaf8907b52669c36b47b6875a4377f9752845ac6c5e8fa