Name: iguanaIR Version: 1.0.1 Release: 2%{?dist} Summary: Driver for Iguanaworks USB IR transceiver Group: System Environment/Daemons License: GPLv2 and LGPLv2 URL: http://iguanaworks.net/ir Source0: http://iguanaworks.net/downloads/%{name}-%{version}.tar.bz2 # https://iguanaworks.net/projects/IguanaIR/ticket/205 for both patch 1 and 2 Patch1: iguanaIR-fixes.patch Patch2: iguanaIR-fix-shlib-exit-calls.patch Patch3: iguanaIR-no-enable-initscript-by-default.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: lirc, udev Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig /sbin/service BuildRequires: popt-devel, libusb1-devel, libusb-devel # some features can be disabled during the rpm build %{?_without_clock_gettime: %define _disable_clock_gettime --disable-clock_gettime} %description This package provides igdaemon and igclient, the programs necessary to control the Iguanaworks USB IR transceiver. %package devel Summary: Library and header files for iguanaIR Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The development files needed to interact with the iguanaIR igdaemon are included in this package. %package python Group: System Environment/Daemons Summary: Python module for Iguanaworks USB IR transceiver Requires: %{name} = %{version}-%{release}, python >= 2.4 BuildRequires: python-devel swig %description python This package provides the swig-generated Python module for interfacing with the Iguanaworks USB IR transceiver. %package reflasher Group: System Environment/Daemons Summary: Reflasher for Iguanaworks USB IR transceiver Requires: iguanaIR-python = %{version} BuildArch: noarch %description reflasher This package provides the reflasher/testing script and assorted firmware versions for the Iguanaworks USB IR transceiver. If you have no idea what this means, you don't need it. %prep %setup -q -n %{name}-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 # Fix incorrect permissions chmod -x iguanaIR_wrap.c %build %configure %{?_disable_clock_gettime} make CFLAGS="%{optflags} -fpic" %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install PREFIX=$RPM_BUILD_ROOT/usr DESTDIR=$RPM_BUILD_ROOT INLIBDIR=$RPM_BUILD_ROOT%{_libdir} install -m755 -d $RPM_BUILD_ROOT%{_localstatedir}/run/%{name} # Fix up some stray file permissions issues chmod -x $RPM_BUILD_ROOT%{python_sitearch}/*.py \ $RPM_BUILD_ROOT%{_includedir}/%{name}.h \ $RPM_BUILD_ROOT%{_libexecdir}/%{name}-reflasher/hex/* %clean rm -rf $RPM_BUILD_ROOT %pre getent group iguanair >/dev/null || groupadd -r iguanair getent passwd iguanair >/dev/null || \ useradd -r -g iguanair -d %{_localstatedir}/run/%{name} -s /sbin/nologin \ -c "Iguanaworks IR Daemon" iguanair exit 0 %post /sbin/chkconfig --add %{name} /sbin/ldconfig %preun if [ "$1" = 0 ]; then /sbin/service %{name} stop > /dev/null 2>&1 || : /sbin/chkconfig --del %{name} fi %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS LICENSE LICENSE-LGPL WHY protocols.txt README.txt notes.txt ChangeLog %{_bindir}/igdaemon %{_bindir}/igclient %{_libdir}/lib%{name}.so.* %dir %{_libexecdir}/%{name} %{_libexecdir}/%{name}/* %{_sysconfdir}/init.d/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %config(noreplace) %{_sysconfdir}/udev/rules.d/80-%{name}.rules %attr(755, iguanair, iguanair) /lib/udev/devices/%{name} %attr(755, iguanair, iguanair) %{_localstatedir}/run/%{name} %attr(755, iguanair, iguanair) /var/run/iguanaIR %files devel %defattr(-,root,root,-) %{_includedir}/%{name}.h %{_libdir}/lib%{name}.so %files python %defattr(-,root,root,-) %{python_sitearch}/* %files reflasher %defattr(-,root,root,-) %dir %{_libexecdir}/%{name}-reflasher %{_libexecdir}/%{name}-reflasher/* %{_bindir}/%{name}-reflasher %changelog * Fri Jan 28 2011 Jarod Wilson 1.0.1-2 - Address Fedora package review concerns (#642773) * Thu Jan 20 2011 Jarod Wilson 1.0.1-1 - Update to 1.0.1 release * Wed Oct 13 2010 Jarod Wilson 1.0-0.2.pre2.svn1419 - Update to 1.0pre2 snapshot plus svn rev 1419 additions - Patch in additional changes to use more suitable locations for plugins, socket directory and reflasher files * Wed Jul 21 2010 Jarod Wilson 1.0-0.1.pre2 - Update to 1.0pre2 snapshot - Revamp spec to be more compliant with Fedora packaging guidelines * Sat Jun 27 2008 Joseph Dunn 0.96-1 - Bug fix release. * Fri Mar 27 2008 Joseph Dunn 0.95-1 - Decided to do another release to fix a udev problem. * Sun Mar 23 2008 Joseph Dunn 0.94-1 - Better windows support, a pile of bugs fixed. Works with newer firmwares (version 0x102) including frequency and channel support with or without LIRC. * Sat Mar 10 2007 Joseph Dunn 0.31-1 - First release with tentative win32 and darwin support. Darwin needs some work, and windows needs to interface with applications. * Thu Feb 1 2007 Joseph Dunn 0.30-1 - Added a utility to change the frequency on firmware version 3, and had to make iguanaRemoveData accessible to python code. * Sun Jan 21 2007 Joseph Dunn 0.29-1 - Last currently known problem in the driver. Using clock_gettime instead of gettimeofday to avoid clock rollbacks. * Sun Dec 31 2006 Joseph Dunn 0.26-1 - Happy New Years! and a bugfix. Long standing bug that caused the igdaemon to hang is fixed. * Sun Dec 10 2006 Joseph Dunn 0.25-1 - The socket specification accept a path instead of just an index or label. * Wed Dec 6 2006 Joseph Dunn 0.24-1 - Fixes bad argument parsing in igdaemon, and the init script *should* work for fedora and debian now. * Wed Oct 18 2006 Joseph Dunn 0.19-1 - A real release has been made, and we'll try to keep track of version numbers a bit better now. * Sat Sep 23 2006 Joseph Dunn 0.10-1 - Preparing for a real release. * Wed Jul 11 2006 Joseph Dunn 0.9-1 - Switch to using udev instead of hotplug. * Mon Jul 10 2006 Joseph Dunn 0.8-1 - Version number bumps, and added python support and package. * Mon Mar 27 2006 Joseph Dunn 0.5-1 - Version number bump. * Mon Mar 20 2006 Joseph Dunn 0.4-1 - Version number bump. * Tue Mar 07 2006 Joseph Dunn 0.3-1 - Packaged a client library, and header file. * Tue Mar 07 2006 Joseph Dunn 0.2-2 - Added support for chkconfig * Tue Mar 07 2006 Joseph Dunn 0.2-1 - Added files for hotplug. * Tue Mar 07 2006 Joseph Dunn 0.1-1 - Initial RPM spec file.