diff --git a/README.md b/README.md index 6cf315c..6f474d4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # iguanair +Iguanaworks USB IR Project: firmware and software. + diff --git a/iguanair.spec b/iguanair.spec new file mode 100644 index 0000000..88be684 --- /dev/null +++ b/iguanair.spec @@ -0,0 +1,87 @@ +Name: iguanair +Version: 20160823git +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 +License: GPL, LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libpython3-devel +BuildRequires: libusb-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 + +%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 +/lib/udev/rules.d/80-iguanaIR.rules +%{_bindir}/igclient +%{_bindir}/igdaemon +%{_bindir}/iguanaIR-reflasher +%{_bindir}/iguanaIR-rescan +%{python3_sitearch}/_iguanaIR.so +%{python3_sitearch}/iguanaIR.py +%{_datadir}/iguanaIR-reflasher/iguanaIR-reflasher + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libiguanaIR.so.* +%dir %{_libdir}/iguanaIR +%{_libdir}/iguanaIR/libusb.so + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/iguanaIR.h +%{_libdir}/libiguanaIR.so + +%changelog +* Tue Aug 23 2016 Silvan Calarco 20160823git-1mamba +- package created using the webbuild interface