120 lines
3.1 KiB
RPMSpec
120 lines
3.1 KiB
RPMSpec
Name: iguanair
|
|
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 <silvan.calarco@mambasoft.it>
|
|
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
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description
|
|
Iguanaworks USB IR Project: firmware and software.
|
|
|
|
%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}
|
|
|
|
%description -n lib%{name}-devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake -d software/usb_ir/build \
|
|
-DLIBDIR=%{_libdir}
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{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}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sysconfdir}/default/iguanaIR
|
|
%{_bindir}/igclient
|
|
%{_bindir}/igdaemon
|
|
%{_bindir}/iguanaIR-reflasher
|
|
%{_bindir}/iguanaIR-rescan
|
|
%{_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/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 <silvan.calarco@mambasoft.it> 1.2.1-1mamba
|
|
- update to 1.2.1
|
|
- updated URL; closes #1
|
|
|
|
* Sat Dec 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 20160823git-2mamba
|
|
- rebuilt with python3 3.7
|
|
|
|
* Tue Aug 23 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 20160823git-1mamba
|
|
- package created using the webbuild interface
|