Summary: The Linux Infrared Remote Control package. Summary(ja): 赤外線リモートコントロールパッケージ Name: lirc Version: 0.8.6 Release: 3%{?_dist_release} License: GPL Group: System Environment/Daemons URL: http://www.lirc.org/ Source0: http://prdownloads.sourceforge.net/lirc/%{name}-%{version}.tar.bz2 Source1: lirc.init Source2: lircd.logrotate Source3: lirc.sysconfig Patch0: lirc-use-new-instead-of-conf-as-filename-suffix.patch # https://bugzilla.redhat.com/show_bug.cgi?id=457273 # http://thread.gmane.org/gmane.comp.hardware.lirc/6884 Patch1: lirc-0.8.6-standardized-remote-keycodes.patch Patch2: lirc-0.8.4-make-remote-names-all-unique.patch # http://sourceforge.net/mailarchive/forum.php?thread_name=453E54B8-5C11-41E1-84E9-5EFF3CF9B3F1%40wilsonet.com&forum_name=lirc-list Patch3: lirc-0.8.6-linux-2.6.32.patch # Vine patch Patch100: lirc-0.8.6-mceusb-GV-MC7_RCKIT.patch BuildRequires: perl BuildRequires: libusb-devel, python-devel BuildRequires: automake libtool BuildRequires: alsa-lib-devel BuildRequires: libXt-devel ## Currently not supportd (yet) for Vine Linux #BuildRequires: libftdi-devel, libirman-devel Requires(post): /sbin/chkconfig Requires(post): /sbin/ldconfig Requires(preun): /sbin/chkconfig Requires(postun): /sbin/ldconfig BuildRoot: %{_tmppath}/%{name}-%{version}-root %description LIRC stands for 'Linux Infra-red Remote Control'. This package provides the daemons and some utilities to support infra-red remote controls under Linux. %description -l ja LIRC は 'Linux Infra-red Remote Control' の略です。 このパッケージには Linux で赤外線リモコンをサポートする為に 必要なデーモンといくつかのユーティリティが含まれています。 %package -n dkms-%{name} Summary: Kernel modules for LIRC Group: System Environment/Kernel Requires(post): dkms Requires(preun):dkms %description -n dkms-%{name} This package provides the kernel modules for LIRC. Install this package if the LIRC driver you are using requires them and your kernel doesn't include them. Note that lirc_gpio and lirc_parallel are in packages of their own. %description -n dkms-%{name} -l ja このパッケージには LIRC 用のカーネルモジュールが含まれています。 もしあなたが使っている赤外線リモコン用のドライバがカーネルに 含まれていない場合は、このパッケージをインストールしてください。 注記: lirc_gpio と lirc_parallel は別のパッケージになっています。 ## This package up (uni processor) kernel, but only smp kernel is supplied officially. ## So we don't create this sub package. #%package -n dkms-%{name}-parallel #Summary: Parallel port module for LIRC #Group: System/Kernel and hardware #Requires: dkms-%{name} = %version #Requires(post): dkms #Requires(preun):dkms # #%description -n dkms-%{name}-parallel #This package provides the parallel port module for LIRC. # #This module requires a non-SMP kernel. # #%description -n dkms-%{name}-parallel -l ja #このパッケージにはパラレルポート接続の LIRC 用のカーネル #モジュールが含まれています。 # #このモジュールは SMP カーネルでは使用できません。 ## Required header files (bttv.h ...) are not included in kernel-devel. ## So we can't build this package (now?). #%package -n dkms-%{name}-gpio #Summary: GPIO module for LIRC #Group: System/Kernel and hardware #Requires: dkms-%{name} = %version #Requires(post): dkms #Requires(preun):dkms # #%description -n dkms-%{name}-gpio #This package provides the GPIO module for LIRC. # #%description -n dkms-%{name}-gpio -l ja #このパッケージには GPIO 接続の LIRC 用のカーネルモジュールが #含まれています。 %prep %setup -q %patch0 -p1 -b .suffix %patch3 -p1 -b .kcompat %patch100 -p1 -b .rckit %{__chmod} 644 contrib/* %{__chmod} +x contrib/hal %{__sed} -i -e 's|/usr/local/etc/|/etc/|' contrib/irman2lirc %{__sed} -i -e 's/\r//' remotes/hercules/lircd.conf.smarttv_stereo \ remotes/adstech/lircd.conf.usbx-707 %{__sed} -i -e 's|/sbin/init.d/lircd|%{_initdir}/lirc|' contrib/lircs for f in remotes/chronos/lircd.conf.chronos \ remotes/creative/lircd.conf.livedrive \ remotes/atiusb/lircd.conf.atiusb \ NEWS ChangeLog AUTHORS contrib/lircrc ; do iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f done # use /dev/lirc0 by default instead of /dev/lirc %{__sed} -i -e 's|#define DEV_LIRC "lirc"|#define DEV_LIRC "lirc0"|' config.h.in # use fixed instead of Courier w/xmode2, should be more prevalent on linux boxen %{__sed} -i -e 's|char.*font1_name.*Courier.*$|char font1_name[]="-misc-fixed-*-r-*-*-12-*-*-*-*-*-iso8859-1";|g' tools/xmode2.c # lib64 rpath %{__sed} -i -e 's|"/lib /usr/lib |"/%{_lib} %{_libdir} |' configure # *cough* I wish there was a good way to disable portaudio/svgalib... %{__sed} -i -e 's/portaudio.h/PORTAUDIO_DISABLED/g' configure* %{__sed} -i -e 's/vga.h/SVGALIB_DISABLED/g' configure* # avoid autofoo re-run touch -r aclocal.m4 configure.ac # Do this after, as we're touching the remote definitions earlier # Don't create a backup, or the original definitions will get installed %patch1 -p1 -b .keycode %patch2 -p1 -b .uniq %build %configure \ --disable-static \ --disable-manage-devices \ --enable-sandboxed \ --with-x \ --with-transmitter \ --with-driver=userspace \ --with-kerneldir=$(pwd) %{__make} %install %{__rm} -rf $RPM_BUILD_ROOT __docs %{__make} install DESTDIR=$RPM_BUILD_ROOT %{__install} -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/lirc %{__perl} -pi -e \ 's|/etc/|%{_sysconfdir}/|g ; s|/var/|%{_localstatedir}/|g ; s|/usr/sbin/|%{_sbindir}/|g' \ $RPM_BUILD_ROOT%{_initdir}/lirc #%{__install} -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/lircd %{__install} -Dpm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lirc %{__install} -Dpm 644 doc/lirc.hwdb $RPM_BUILD_ROOT%{_datadir}/lirc/lirc.hwdb %{__install} -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/lirc touch $RPM_BUILD_ROOT%{_sysconfdir}/lirc/lirc{d,md}.conf %{__install} -dm 755 $RPM_BUILD_ROOT%{_localstatedir}/run/lirc/ touch $RPM_BUILD_ROOT%{_localstatedir}/run/lirc/lirc{d,m} # Put remote definitions in place cp -ar remotes $RPM_BUILD_ROOT%{_datadir}/lirc-remotes # Remove unpacked file %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblirc_client.la # Remove unnecessary documents %{__mkdir} __docs %{__cp} -pR doc contrib __docs pushd __docs %{__rm} -rf doc/Makefile* doc/.libs doc/man* doc/lirc.hwdb %{__rm} -rf contrib/irman2lirc contrib/lirc.* contrib/sendxevent.c popd ## For DKMS sub packagtes # #for lircsrcdir in %{name} %{name}-parallel %{name}-gpio; do for lircsrcdir in %{name}; do install -d -m755 $RPM_BUILD_ROOT/usr/src/$lircsrcdir-%{version}-%{release} cp -a Makefile Makefile.in Makefile.am acinclude.m4 \ configure.ac config.status config.h \ $RPM_BUILD_ROOT/usr/src/$lircsrcdir-%{version}-%{release} # Makefiles call there to unnecessarily regenerate files echo '#!/bin/true' > $RPM_BUILD_ROOT/usr/src/$lircsrcdir-%{version}-%{release}/configure chmod +x $RPM_BUILD_ROOT/usr/src/$lircsrcdir-%{version}-%{release}/configure done cp -a drivers $RPM_BUILD_ROOT/usr/src/%{name}-%{version}-%{release} #for drivername in parallel gpio; do #install -d -m755 $RPM_BUILD_ROOT/usr/src/%{name}-$drivername-%{version}-%{release}/drivers #mv $RPM_BUILD_ROOT/usr/src/%{name}-%{version}-%{release}/drivers/lirc_$drivername \ # $RPM_BUILD_ROOT/usr/src/%{name}-$drivername-%{version}-%{release}/drivers/ #cp -a drivers/*.h drivers/Makefile* drivers/lirc_dev \ # $RPM_BUILD_ROOT/usr/src/%{name}-$drivername-%{version}-%{release}/drivers/ # #done # get modulelist pushd drivers drivers=$(echo lirc_* | sed "s/lirc_parallel //" | sed "s/lirc_gpio //") popd # Anssi 2009-03 empty directory drivers="${drivers/lirc_cmdir /}" cat > $RPM_BUILD_ROOT/usr/src/%{name}-%{version}-%{release}/dkms.conf <> $RPM_BUILD_ROOT/usr/src/%{name}-%{version}-%{release}/dkms.conf <<-EOF BUILT_MODULE_NAME[$i]="$module" BUILT_MODULE_LOCATION[$i]="drivers/$module" DEST_MODULE_LOCATION[$i]="/kernel/drivers/input/misc" EOF i=$((i+1)) done #for drivername in parallel gpio; do #cat > %{buildroot}/usr/src/%{name}-$drivername-%{version}-%{release}/dkms.conf < 0.8.6-3 - rebuilt with python-2.6.4-3 * Wed Dec 23 2009 Kazutaka HARADA 0.8.6-2 - add Patch3 to fix compilation error against kernel-2.6.32 * Sat Nov 14 2009 Kazutaka HARADA 0.8.6-1 - new upstream release - drop obsolete patches - add new patches and configuration files from fedora package - rewrite spec - add dkms-lirc sub packages refer to mandriva package (but we don't build lirc-paralle and lirc-gpio sub packages) * Sat Aug 09 2008 Shu KONNO 0.6.5-1vl5 - added lirc-0.6.5-config.patch for x86_64 - applied new versioning policy - spec in utf-8 * Mon Feb 16 2004 Daisuke SUZUKI 0.6.5-0vl1 - initial build for Vine Linux