From 661e51de8e95c17ea6b02ae3085db80b15a641f3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 29 Nov 2024 21:41:39 +0100 Subject: [PATCH] update to 1.2.1 updated URL; closes #1 [release 1.2.1-1mamba;Fri Nov 29 2024] --- iguanair.spec | 60 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/iguanair.spec b/iguanair.spec index 8d4f373..06e9b9e 100644 --- a/iguanair.spec +++ b/iguanair.spec @@ -1,23 +1,22 @@ Name: iguanair -Version: 20160823git -Release: 2mamba +Epoch: 1 +Version: 1.2.1 +Release: 1mamba Summary: Iguanaworks USB IR Project: firmware and software Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://www.iguanaworks.net -## GITSOURCE https://github.com/iguanaworks/iguanair.git master -Source: https://github.com/iguanaworks/iguanair.git/master/iguanair-%{version}.tar.bz2 +URL: https://www.iguanaworks.net/ +Source: https://github.com/iguanaworks/iguanair.git/%{version}/iguanair-%{version}.tar.bz2 License: GPL, LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libpython3-devel +BuildRequires: libpython311-devel BuildRequires: libusb-devel ## AUTOBUILDREQ-END -BuildRequires: libpython3-devel >= 3.7 Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Iguanaworks USB IR Project: firmware and software. @@ -37,7 +36,6 @@ Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. - %debug_package %prep @@ -53,37 +51,67 @@ This package contains libraries and header files for developing applications tha [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C software/usb_ir/build +rm -f %{buildroot}%{python27_sitearch}/* + +install -d -m0755 %{buildroot}%{python3_sitearch} +mv %{buildroot}%{_libdir}/python3.1/site-packages/* %{buildroot}%{python3_sitearch} + +%preun +%systemd_preun iguanaIR.service +: + +%post +%tmpfiles_create iguanair.conf +%systemd_post iguanaIR.service +: + +%postun +%systemd_postun_with_restart iguanaIR.service +: + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -n lib%{name} -p /sbin/ldconfig -%postun -n lib%{name} -p /sbin/ldconfig - %files %defattr(-,root,root) %{_sysconfdir}/default/iguanaIR -%{_sysconfdir}/init.d/iguanaIR -%{_udevrulesdir}/80-iguanaIR.rules %{_bindir}/igclient %{_bindir}/igdaemon %{_bindir}/iguanaIR-reflasher %{_bindir}/iguanaIR-rescan -%{python3_sitearch}/_iguanaIR.so -%{python3_sitearch}/iguanaIR.py +%{_unitdir}/iguanaIR.service +%{_udevrulesdir}/80-iguanaIR.rules +%{_tmpfilesdir}/iguanair.conf +%dir %{_datadir}/iguanaIR-reflasher +%dir %{_datadir}/iguanaIR-reflasher/hex +%{_datadir}/iguanaIR-reflasher/hex/*.hex %{_datadir}/iguanaIR-reflasher/iguanaIR-reflasher +%{_mandir}/man1/igclient.1* +%{_mandir}/man1/iguanaIR-reflasher.1* +%{_mandir}/man1/iguanaIR-rescan.1* +%{_mandir}/man8/igdaemon.8* %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libiguanaIR.so.* +%{_libdir}/libdirectIguanaIR.so.* %dir %{_libdir}/iguanaIR -%{_libdir}/iguanaIR/libusb.so +%{_libdir}/iguanaIR/libusbdrv.so +%{python3_sitearch}/_iguanaIR.so +%{python3_sitearch}/iguanaIR.py +%doc software/usb_ir/AUTHORS software/usb_ir/LICENSE* %files -n lib%{name}-devel %defattr(-,root,root) %{_includedir}/iguanaIR.h %{_libdir}/libiguanaIR.so +%{_libdir}/libdirectIguanaIR.so %changelog +* Fri Nov 29 2024 Silvan Calarco 1.2.1-1mamba +- update to 1.2.1 +- updated URL; closes #1 + * Sat Dec 26 2020 Silvan Calarco 20160823git-2mamba - rebuilt with python3 3.7