2 # - restore lirc_parallel driver
3 # - try to make it use builder_kernel_modules and install_kernel_modules; I couldn't make it
4 # - build is running kernel arch dependent, try to get rid of this
5 # - libcaraca_client (http://caraca.sourceforge.net/) - no releases yet
8 %bcond_without dist_kernel # without sources of distribution kernel
9 %bcond_without kernel # don't build kernel modules, only library+programs
10 %bcond_without userspace # build only packages with kernel modules
11 %bcond_with svga # without svgalib-based utility
12 %bcond_without x # without X11-based utilitied
15 %undefine with_dist_kernel
18 %if "%{_alt_kernel}" != "%{nil}"
19 %undefine with_userspace
28 # lirc_gpio fails to build under kernel >= 2.6.23
30 %if "%{_kernel_ver}" >= "2.6.23"
31 %if "%{_kernel_ver}" >= "3.0.0"
32 %define drivers "lirc_atiusb lirc_bt829 lirc_dev lirc_i2c lirc_igorplugusb lirc_imon lirc_parallel lirc_sasem lirc_serial lirc_sir lirc_ttusbir"
34 %define drivers "lirc_atiusb lirc_bt829 lirc_dev lirc_i2c lirc_igorplugusb lirc_imon lirc_parallel lirc_sasem lirc_serial lirc_sir lirc_ttusbir lirc_wpc8769l"
37 %define drivers "lirc_atiusb lirc_bt829 lirc_dev lirc_gpio lirc_i2c lirc_igorplugusb lirc_imon lirc_parallel lirc_sasem lirc_serial lirc_sir lirc_ttusbir lirc_wpc8769l"
39 Summary: Linux Infrared Remote Control daemons
40 Summary(pl.UTF-8): Serwery do zdalnego sterowania Linuksem za pomocą podczerwieni
41 Name: %{pname}%{_alt_kernel}
46 Source0: http://downloads.sourceforge.net/lirc/%{pname}-%{version}.tar.bz2
47 # Source0-md5: b232aef26f23fe33ea8305d276637086
48 Source1: http://lirc.sourceforge.net/remotes.tar.bz2
49 # Source1-md5: 238d1773d3c405acc02813674f5a55f8
50 Source2: %{pname}d.sysconfig
51 Source3: %{pname}d.init
52 Source4: %{pname}md.init
53 Source5: %{pname}.tmpfiles
54 Patch0: %{pname}-opt.patch
55 Patch1: %{pname}-tmp.patch
56 Patch2: %{pname}-no-svgalib.patch
57 Patch3: %{pname}-kernel.patch
58 Patch4: %{pname}-sparc.patch
59 Patch5: %{pname}-remotes.patch
60 Patch6: %{pname}-kernelcc.patch
61 Patch7: format-security.patch
62 URL: http://www.lirc.org/
63 BuildRequires: alsa-lib-devel
64 BuildRequires: autoconf >= 2.50
65 BuildRequires: automake
66 BuildRequires: iguanaIR-devel
67 BuildRequires: libftdi-devel >= 0.12
68 BuildRequires: libirman-devel >= 0.4.5
69 BuildRequires: libtool
70 BuildRequires: libusb-compat-devel >= 0.1.0
72 BuildRequires: kernel%{_alt_kernel}-headers
73 BuildRequires: kernel%{_alt_kernel}-module-build
75 %{?with_kernel:BuildRequires: %{kgcc_package}}
76 BuildRequires: rpm-pythonprov
77 BuildRequires: rpmbuild(macros) >= 1.379
78 %{?with_svga:BuildRequires: svgalib-devel}
79 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
80 Requires(post,preun): /sbin/chkconfig
81 BuildRequires: rpmbuild(macros) >= 1.268
82 Requires: %{pname}-libs = %{version}-%{release}
83 Requires: libftdi >= 0.12
85 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
87 %if %{without userspace}
88 %define no_spec_install_post_check_tmpfiles 1
92 LIRC is a package that allows you to decode and send infra-red signals
93 of many (but not all) commonly used remote controls.
95 %description -l pl.UTF-8
96 LIRC to program pozwalający na dekodowanie nadchodzących oraz
97 wysyłanie sygnałów w podczerwieni za pomocą wielu (ale nie wszystkich)
98 popularnych urządzeń do zdalnego sterowania.
101 Summary: Lirc remotes database
102 Summary(pl.UTF-8): Baza pilotów obsługiwanych przez lirc
104 Requires: %{pname} = %{version}-%{rel}
107 This package contains configuration files for many remotes supported
110 %description remotes -l pl.UTF-8
111 Ten pakiet zawiera pliki konfiguracyjne dla wielu pilotów
112 obsługiwanych przez lirc.
115 Summary: Linux Infrared Remote Control - X11 utilities
116 Summary(pl.UTF-8): Zdalne sterowanie Linuksem za pomocą podczerwieni - narzędzia X11
117 Group: X11/Applications
118 Requires: %{pname}-libs = %{version}-%{release}
121 Linux Infrared Remote Control - X11 utilities.
123 %description X11 -l pl.UTF-8
124 Zdalne sterowanie Linuksem za pomocą podczerwieni - narzędzia X11.
127 Summary: Linux Infrared Remote Control - svgalib utilities
128 Summary(pl.UTF-8): Zdalne sterowanie Linuksem za pomocą podczerwieni - narzędzia svgalib
130 Requires: %{pname}-libs = %{version}-%{release}
133 Linux Infrared Remote Control - svgalib-based utilities.
135 %description svga -l pl.UTF-8
136 Zdalne sterowanie Linuksem za pomocą podczerwieni - narzędzia oparte
140 Summary: LIRC libraries
141 Summary(pl.UTF-8): Biblioteki LIRC
143 Conflicts: lirc < 0.6.3-3
144 # didn't use /tmp/.lircd
147 This package provides the libraries necessary to run lirc client
150 %description libs -l pl.UTF-8
151 Ten pakiet zawiera biblioteki niezbędne do działania klientów LIRC.
154 Summary: Header files for LIRC development
155 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów z obsługą LIRC
156 Group: Development/Libraries
157 Requires: %{pname}-libs = %{version}-%{release}
160 This package provides the files necessary to develop LIRC-based
163 %description devel -l pl.UTF-8
164 Ten pakiet zawiera pliki niezbędne do tworzenia programów opartych na
168 Summary: Static library for LIRC development
169 Summary(pl.UTF-8): Biblioteka statyczna LIRC
170 Group: Development/Libraries
171 Requires: %{pname}-devel = %{version}-%{release}
174 The files necessary for development of statically-linked lirc-based
177 %description static -l pl.UTF-8
178 Pliki potrzebne do tworzenia łączonych statycznie programów opartych
181 %package -n kernel%{_alt_kernel}-char-lirc-atiusb
182 Summary: Kernel modules for Linux Infrared Remote Control
183 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
184 Release: %{rel}@%{_kernel_ver_str}
186 %if %{with dist_kernel}
187 %requires_releq_kernel
188 Requires(postun): %releq_kernel
190 Requires(post,postun): /sbin/depmod
191 Requires: %{pname} = %{version}-%{rel}
192 Conflicts: dev < 2.8.0-3
194 %description -n kernel%{_alt_kernel}-char-lirc-atiusb
195 This package contains the kernel modules necessary to operate some
196 infrared remote control devices (such as the ones bundled with TV
201 %description -n kernel%{_alt_kernel}-char-lirc-atiusb -l pl.UTF-8
202 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
203 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
207 %package -n kernel%{_alt_kernel}-char-lirc-bt829
208 Summary: Kernel modules for Linux Infrared Remote Control
209 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
210 Release: %{rel}@%{_kernel_ver_str}
212 %if %{with dist_kernel}
213 %requires_releq_kernel
214 Requires(postun): %releq_kernel
216 Requires(post,postun): /sbin/depmod
217 Requires: %{pname} = %{version}-%{rel}
218 Conflicts: dev < 2.8.0-3
220 %description -n kernel%{_alt_kernel}-char-lirc-bt829
221 This package contains the kernel modules necessary to operate some
222 infrared remote control devices (such as the ones bundled with TV
227 %description -n kernel%{_alt_kernel}-char-lirc-bt829 -l pl.UTF-8
228 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
229 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
233 %package -n kernel%{_alt_kernel}-char-lirc-dev
234 Summary: Kernel modules for Linux Infrared Remote Control
235 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
236 Release: %{rel}@%{_kernel_ver_str}
238 %if %{with dist_kernel}
239 %requires_releq_kernel
240 Requires(postun): %releq_kernel
242 Requires(post,postun): /sbin/depmod
243 Requires: %{pname} = %{version}-%{rel}
244 Obsoletes: lirc-modules
245 Obsoletes: lirc-modules-dev
246 Conflicts: dev < 2.8.0-3
248 %description -n kernel%{_alt_kernel}-char-lirc-dev
249 This package contains the kernel modules necessary to operate some
250 infrared remote control devices (such as the ones bundled with TV
255 %description -n kernel%{_alt_kernel}-char-lirc-dev -l pl.UTF-8
256 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
257 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
261 %package -n kernel%{_alt_kernel}-char-lirc-ene0100
262 Summary: Kernel modules for Linux Infrared Remote Control
263 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
264 Release: %{rel}@%{_kernel_ver_str}
266 %if %{with dist_kernel}
267 %requires_releq_kernel
268 Requires(postun): %releq_kernel
270 Requires(post,postun): /sbin/depmod
271 Requires: %{pname} = %{version}-%{rel}
272 Obsoletes: lirc-modules
273 Conflicts: dev < 2.8.0-3
275 %description -n kernel%{_alt_kernel}-char-lirc-ene0100
276 This package contains the kernel modules necessary to operate some
277 infrared remote control ene0100ices (such as the ones bundled with TV
282 %description -n kernel%{_alt_kernel}-char-lirc-ene0100 -l pl.UTF-8
283 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
284 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
288 %package -n kernel%{_alt_kernel}-char-lirc-gpio
289 Summary: Kernel modules for Linux Infrared Remote Control
290 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
291 Release: %{rel}@%{_kernel_ver_str}
293 %if %{with dist_kernel}
294 %requires_releq_kernel
295 Requires(postun): %releq_kernel
297 Requires(post,postun): /sbin/depmod
298 Requires: %{pname} = %{version}-%{rel}
299 Obsoletes: lirc-modules
300 Obsoletes: lirc-modules-gpio
301 Conflicts: dev < 2.8.0-3
303 %description -n kernel%{_alt_kernel}-char-lirc-gpio
304 This package contains the kernel modules necessary to operate some
305 infrared remote control devices (such as the ones bundled with TV
310 %description -n kernel%{_alt_kernel}-char-lirc-gpio -l pl.UTF-8
311 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
312 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
316 %package -n kernel%{_alt_kernel}-char-lirc-i2c
317 Summary: Kernel modules for Linux Infrared Remote Control
318 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
319 Release: %{rel}@%{_kernel_ver_str}
321 %if %{with dist_kernel}
322 %requires_releq_kernel
323 Requires(postun): %releq_kernel
325 Requires(post,postun): /sbin/depmod
326 Requires: %{pname} = %{version}-%{rel}
327 Obsoletes: lirc-modules
328 Obsoletes: lirc-modules-i2c
329 Conflicts: dev < 2.8.0-3
331 %description -n kernel%{_alt_kernel}-char-lirc-i2c
332 This package contains the kernel modules necessary to operate some
333 infrared remote control devices (such as the ones bundled with TV
338 %description -n kernel%{_alt_kernel}-char-lirc-i2c -l pl.UTF-8
339 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
340 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
344 %package -n kernel%{_alt_kernel}-char-lirc-igorplugusb
345 Summary: Kernel modules for Linux Infrared Remote Control
346 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
347 Release: %{rel}@%{_kernel_ver_str}
349 %if %{with dist_kernel}
350 %requires_releq_kernel
351 Requires(postun): %releq_kernel
353 Requires(post,postun): /sbin/depmod
354 Requires: %{pname} = %{version}-%{rel}
355 Obsoletes: lirc-modules
356 Obsoletes: lirc-modules-igorplugusb
357 Conflicts: dev < 2.8.0-3
359 %description -n kernel%{_alt_kernel}-char-lirc-igorplugusb
360 This package contains the kernel modules necessary to operate some
361 infrared remote control devices (such as the ones bundled with TV
364 lirc_igorplugusb module.
366 %description -n kernel%{_alt_kernel}-char-lirc-igorplugusb -l pl.UTF-8
367 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
368 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
370 Moduł lirc_igorplugusb.
372 %package -n kernel%{_alt_kernel}-char-lirc-imon
373 Summary: Kernel modules for Linux Infrared Remote Control
374 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
375 Release: %{rel}@%{_kernel_ver_str}
377 %if %{with dist_kernel}
378 %requires_releq_kernel
379 Requires(postun): %releq_kernel
381 Requires(post,postun): /sbin/depmod
382 Requires: %{pname} = %{version}-%{rel}
383 Obsoletes: lirc-modules
384 Obsoletes: lirc-modules-imon
385 Conflicts: dev < 2.8.0-3
387 %description -n kernel%{_alt_kernel}-char-lirc-imon
388 This package contains the kernel modules necessary to operate some
389 infrared remote control devices (such as the ones bundled with TV
394 %description -n kernel%{_alt_kernel}-char-lirc-imon -l pl.UTF-8
395 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
396 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
400 %package -n kernel%{_alt_kernel}-char-lirc-sasem
401 Summary: Kernel modules for Linux Infrared Remote Control
402 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
403 Release: %{rel}@%{_kernel_ver_str}
405 %if %{with dist_kernel}
406 %requires_releq_kernel
407 Requires(postun): %releq_kernel
409 Requires(post,postun): /sbin/depmod
410 Requires: %{pname} = %{version}-%{rel}
411 Conflicts: dev < 2.8.0-3
413 %description -n kernel%{_alt_kernel}-char-lirc-sasem
414 This package contains the kernel modules necessary to operate some
415 infrared remote control devices (such as the ones bundled with TV
420 %description -n kernel%{_alt_kernel}-char-lirc-sasem -l pl.UTF-8
421 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
422 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
426 %package -n kernel%{_alt_kernel}-char-lirc-serial
427 Summary: Kernel modules for Linux Infrared Remote Control
428 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
429 Release: %{rel}@%{_kernel_ver_str}
431 %if %{with dist_kernel}
432 %requires_releq_kernel
433 Requires(postun): %releq_kernel
435 Requires(post,postun): /sbin/depmod
436 Requires: %{pname} = %{version}-%{rel}
437 %{?with_dist_kernel:Requires: setserial}
438 Obsoletes: lirc-modules
439 Obsoletes: lirc-modules-serial
440 Conflicts: dev < 2.8.0-3
442 %description -n kernel%{_alt_kernel}-char-lirc-serial
443 This package contains the kernel modules necessary to operate some
444 infrared remote control devices (such as the ones bundled with TV
447 lirc_serial module for devices connected to serial port.
449 %description -n kernel%{_alt_kernel}-char-lirc-serial -l pl.UTF-8
450 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
451 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
453 Moduł lirc_serial dla urządzeń podłączanych do portu szeregowego.
455 %package -n kernel%{_alt_kernel}-char-lirc-sir
456 Summary: Kernel modules for Linux Infrared Remote Control
457 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
458 Release: %{rel}@%{_kernel_ver_str}
460 %if %{with dist_kernel}
461 %requires_releq_kernel
462 Requires(postun): %releq_kernel
464 Requires(post,postun): /sbin/depmod
465 Requires: %{pname} = %{version}-%{rel}
466 Obsoletes: lirc-modules
467 Obsoletes: lirc-modules-sir
468 Conflicts: dev < 2.8.0-3
470 %description -n kernel%{_alt_kernel}-char-lirc-sir
471 This package contains the kernel modules necessary to operate some
472 infrared remote control devices (such as the ones bundled with TV
477 %description -n kernel%{_alt_kernel}-char-lirc-sir -l pl.UTF-8
478 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
479 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
483 %package -n kernel%{_alt_kernel}-char-lirc-ttusbir
484 Summary: Kernel modules for Linux Infrared Remote Control
485 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
486 Release: %{rel}@%{_kernel_ver_str}
488 %if %{with dist_kernel}
489 %requires_releq_kernel
490 Requires(postun): %releq_kernel
492 Requires(post,postun): /sbin/depmod
493 Requires: %{pname} = %{version}-%{rel}
494 Obsoletes: lirc-modules
495 Obsoletes: lirc-modules-ttusbir
496 Conflicts: dev < 2.8.0-3
498 %description -n kernel%{_alt_kernel}-char-lirc-ttusbir
499 This package contains the kernel modules necessary to operate
500 TechnoTrend USB IR Receiver.
504 %description -n kernel%{_alt_kernel}-char-lirc-ttusbir -l pl.UTF-8
505 Ten pakiet zawiera moduł kernela niezbędny do obsługi urządzenia
506 TechnoTrend USB IR Receiver.
510 %package -n kernel%{_alt_kernel}-char-lirc-wpc87691
511 Summary: Kernel modules for Linux Infrared Remote Control
512 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
513 Release: %{rel}@%{_kernel_ver_str}
515 %if %{with dist_kernel}
516 %requires_releq_kernel
517 Requires(postun): %releq_kernel
519 Requires(post,postun): /sbin/depmod
520 Requires: %{pname} = %{version}-%{rel}
521 Conflicts: dev < 2.8.0-3
523 %description -n kernel%{_alt_kernel}-char-lirc-wpc87691
524 This package contains the kernel modules necessary to operate
525 TechnoTrend USB IR Receiver.
527 lirc_wpc87691 module.
529 %description -n kernel%{_alt_kernel}-char-lirc-wpc87691 -l pl.UTF-8
530 Ten pakiet zawiera moduł kernela niezbędny do obsługi urządzenia
531 TechnoTrend USB IR Receiver.
535 %package -n kernel%{_alt_kernel}-char-lirc-parallel
536 Summary: Kernel modules for Linux Infrared Remote Control
537 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
538 Release: %{rel}@%{_kernel_ver_str}
540 %if %{with dist_kernel}
541 %requires_releq_kernel
542 Requires(postun): %releq_kernel
544 Requires(post,postun): /sbin/depmod
545 Requires: %{pname} = %{version}-%{rel}
546 Obsoletes: lirc-modules
547 Obsoletes: lirc-modules-parallel
548 Conflicts: dev < 2.8.0-3
550 %description -n kernel%{_alt_kernel}-char-lirc-parallel
551 This package contains the kernel modules necessary to operate some
552 infrared remote control devices (such as the ones bundled with TV
555 lirc-parallel module for devices connected to parallel port.
557 %description -n kernel%{_alt_kernel}-char-lirc-parallel -l pl.UTF-8
558 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
559 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
561 Moduł lirc_parallel dla urządzeń podłączanych do portu równoległego.
564 %setup -q -n %{pname}-%{version} -a 1
577 echo '#' > drivers/Makefile.am
585 ac_cv_header_portaudio_h=no \
589 ac_cv_have_kernel="no_kernel=yes" \
591 --with-kerneldir=%{_kernelsrcdir} \
592 %{?with_x:--with-x} \
595 --without-soft-carrier \
596 --with-driver=userspace \
599 %if %{with userspace}
608 for drv in $drivers; do
612 RCS_FIND_IGNORE="-name '*.ko' -o" \
618 KBUILD_MODPOST_WARN=1 \
628 rm -rf $RPM_BUILD_ROOT
632 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
633 for drv in $drivers; do
634 install drivers/$drv/$drv.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/$drv.ko
638 %if %{with userspace}
639 install -d $RPM_BUILD_ROOT{%{_bindir},%{_aclocaldir},/dev,/var/{log,run/lirc}} \
640 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,lirc} \
641 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
643 %{__make} -j1 install \
644 DESTDIR=$RPM_BUILD_ROOT \
645 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}
647 cat>$RPM_BUILD_ROOT%{_sysconfdir}/lirc/lircd.conf<<END
649 # This is a placeholder for your configuration file.
650 # See %{_docdir}/%{pname}-%{version}/remotes for some examples.
653 cp -f $RPM_BUILD_ROOT%{_sysconfdir}/lirc/lirc{,m}d.conf
654 install contrib/*.m4 $RPM_BUILD_ROOT%{_aclocaldir}
655 :> $RPM_BUILD_ROOT/var/log/lircd
657 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/lircd
658 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/lircd
659 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/lircmd
660 install %{SOURCE5} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
664 rm -rf $RPM_BUILD_ROOT
666 %post libs -p /sbin/ldconfig
667 %postun libs -p /sbin/ldconfig
670 /sbin/chkconfig --add lircd
671 /sbin/chkconfig --add lircmd
672 %service lircd restart
673 %service lircmd restart
675 echo "If you are using a kernel-module-based driver, don't forget to"
676 echo "install the kernel%{_alt_kernel}-char-lirc-<your_driver> or"
677 echo "kernel%{_alt_kernel}-smp-char-lirc-<your_driver> package."
680 if [ "$1" = "0" ]; then
681 if [ -f /var/lock/subsys/lircd ]; then
682 /etc/rc.d/init.d/lircd stop >&2
684 /sbin/chkconfig --del lircd
686 if [ "$1" = "0" ]; then
687 if [ -f /var/lock/subsys/lircmd ]; then
688 /etc/rc.d/init.d/lircmd stop >&2
690 /sbin/chkconfig --del lircmd
693 %triggerpostun -- %{name} < 0.8.6-8
694 if [ -f %{_sysconfdir}/lircd.conf.rpmsave ]; then
695 mv -f %{_sysconfdir}/lircd.conf.rpmsave %{_sysconfdir}/lirc/lircd.conf
697 if [ -f %{_sysconfdir}/lircmd.conf.rpmsave ]; then
698 mv -f %{_sysconfdir}/lircmd.conf.rpmsave %{_sysconfdir}/lirc/lircmd.conf
701 %post -n kernel%{_alt_kernel}-char-lirc-atiusb
702 %depmod %{_kernel_ver}
703 if [ "$1" = "1" ]; then
704 echo "Don't forget to add an 'alias lirc lirc_atiusb' line"
705 echo "to your /etc/modules.conf."
708 %postun -n kernel%{_alt_kernel}-char-lirc-atiusb
709 %depmod %{_kernel_ver}
711 %post -n kernel%{_alt_kernel}-char-lirc-bt829
712 %depmod %{_kernel_ver}
713 if [ "$1" = "1" ]; then
714 echo "Don't forget to add an 'alias lirc lirc_bt829' line"
715 echo "to your /etc/modules.conf."
718 %postun -n kernel%{_alt_kernel}-char-lirc-bt829
719 %depmod %{_kernel_ver}
721 %post -n kernel%{_alt_kernel}-char-lirc-dev
722 %depmod %{_kernel_ver}
724 %postun -n kernel%{_alt_kernel}-char-lirc-dev
725 %depmod %{_kernel_ver}
727 %post -n kernel%{_alt_kernel}-char-lirc-ene0100
728 %depmod %{_kernel_ver}
730 %postun -n kernel%{_alt_kernel}-char-lirc-ene0100
731 %depmod %{_kernel_ver}
733 %post -n kernel%{_alt_kernel}-char-lirc-gpio
734 %depmod %{_kernel_ver}
735 if [ "$1" = "1" ]; then
736 echo "Don't forget to add an 'alias lirc lirc_gpio' line"
737 echo "to your /etc/modules.conf."
740 %postun -n kernel%{_alt_kernel}-char-lirc-gpio
741 %depmod %{_kernel_ver}
743 %post -n kernel%{_alt_kernel}-char-lirc-i2c
744 %depmod %{_kernel_ver}
745 if [ "$1" = "1" ]; then
746 echo "Don't forget to add an 'alias lirc lirc_i2c' line"
747 echo "to your /etc/modules.conf."
750 %postun -n kernel%{_alt_kernel}-char-lirc-i2c
751 %depmod %{_kernel_ver}
753 %post -n kernel%{_alt_kernel}-char-lirc-igorplugusb
754 %depmod %{_kernel_ver}
755 if [ "$1" = "1" ]; then
756 echo "Don't forget to add an 'alias lirc lirc_igorplugusb' line"
757 echo "to your /etc/modules.conf."
760 %postun -n kernel%{_alt_kernel}-char-lirc-igorplugusb
761 %depmod %{_kernel_ver}
763 %post -n kernel%{_alt_kernel}-char-lirc-imon
764 %depmod %{_kernel_ver}
765 if [ "$1" = "1" ]; then
766 echo "Don't forget to add an 'alias lirc lirc_imon' line"
767 echo "to your /etc/modules.conf."
770 %postun -n kernel%{_alt_kernel}-char-lirc-imon
771 %depmod %{_kernel_ver}
773 %post -n kernel%{_alt_kernel}-char-lirc-sasem
774 %depmod %{_kernel_ver}
775 if [ "$1" = "1" ]; then
776 echo "Don't forget to add an 'alias lirc lirc_sasem' line"
777 echo "to your /etc/modules.conf."
780 %postun -n kernel%{_alt_kernel}-char-lirc-sasem
781 %depmod %{_kernel_ver}
783 %post -n kernel%{_alt_kernel}-char-lirc-serial
784 %depmod %{_kernel_ver}
785 if [ "$1" = "1" ]; then
786 echo "Don't forget to add an 'alias lirc lirc_serial' line"
787 echo "to your /etc/modules.conf."
790 %postun -n kernel%{_alt_kernel}-char-lirc-serial
791 %depmod %{_kernel_ver}
793 %post -n kernel%{_alt_kernel}-char-lirc-parallel
794 %depmod %{_kernel_ver}
795 if [ "$1" = "1" ]; then
796 echo "Don't forget to add an 'alias lirc lirc_parallel' line"
797 echo "to your /etc/modules.conf."
800 %postun -n kernel%{_alt_kernel}-char-lirc-parallel
801 %depmod %{_kernel_ver}
803 %post -n kernel%{_alt_kernel}-char-lirc-sir
804 %depmod %{_kernel_ver}
805 if [ "$1" = "1" ]; then
806 echo "Don't forget to add an 'alias lirc lirc_sir' line"
807 echo "to your /etc/modules.conf."
810 %postun -n kernel%{_alt_kernel}-char-lirc-sir
811 %depmod %{_kernel_ver}
813 %post -n kernel%{_alt_kernel}-char-lirc-ttusbir
814 %depmod %{_kernel_ver}
815 if [ "$1" = "1" ]; then
816 echo "Don't forget to add an 'alias lirc lirc_ttusbir' line"
817 echo "to your /etc/modules.conf."
820 %postun -n kernel%{_alt_kernel}-char-lirc-ttusbir
821 %depmod %{_kernel_ver}
823 %post -n kernel%{_alt_kernel}-char-lirc-wpc87691
824 %depmod %{_kernel_ver}
825 if [ "$1" = "1" ]; then
826 echo "Don't forget to add an 'alias lirc lirc_wpc87691' line"
827 echo "to your /etc/modules.conf."
830 %postun -n kernel%{_alt_kernel}-char-lirc-wpc87691
831 %depmod %{_kernel_ver}
833 %if %{with userspace}
835 %defattr(644,root,root,755)
836 %doc ANNOUNCE AUTHORS NEWS README TODO ChangeLog
837 %doc contrib/lircrc doc/{html,images,lirc.css}
838 %attr(755,root,root) %{_bindir}/ircat
839 %attr(755,root,root) %{_bindir}/irexec
840 %attr(755,root,root) %{_bindir}/irpty
841 %attr(755,root,root) %{_bindir}/irrecord
842 %attr(755,root,root) %{_bindir}/irsend
843 %attr(755,root,root) %{_bindir}/irw
844 %attr(755,root,root) %{_bindir}/mode2
845 %attr(755,root,root) %{_bindir}/lircrcd
846 %attr(755,root,root) %{_bindir}/pronto2lirc
847 %attr(755,root,root) %{_sbindir}/lircd
848 %attr(755,root,root) %{_sbindir}/lircmd
849 %attr(754,root,root) /etc/rc.d/init.d/lircd
850 %attr(754,root,root) /etc/rc.d/init.d/lircmd
851 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/lircd
852 %dir %{_sysconfdir}/lirc
853 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lirc/lircd.conf
854 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lirc/lircmd.conf
855 %{_mandir}/man1/ircat.1*
856 %{_mandir}/man1/irexec.1*
857 %{_mandir}/man1/irpty.1*
858 %{_mandir}/man1/irrecord.1*
859 %{_mandir}/man1/irsend.1*
860 %{_mandir}/man1/irw.1*
861 %{_mandir}/man1/lircrcd.1*
862 %{_mandir}/man1/mode2.1*
863 %{_mandir}/man8/lircd.8*
864 %{_mandir}/man8/lircmd.8*
865 %attr(600,root,root) %ghost /var/log/lircd
867 %{systemdtmpfilesdir}/%{name}.conf
870 %defattr(644,root,root,755)
871 # XXX: are jpegs in docs (remotes) a good idea?
876 %defattr(644,root,root,755)
877 %doc doc/irxevent.keys
878 %attr(755,root,root) %{_bindir}/irxevent
879 %attr(755,root,root) %{_bindir}/xmode2
880 %{_mandir}/man1/irxevent.1*
881 %{_mandir}/man1/xmode2.1*
886 %defattr(644,root,root,755)
887 %attr(755,root,root) %{_bindir}/smode2
888 %{_mandir}/man1/smode2.1*
892 %defattr(644,root,root,755)
893 %attr(755,root,root) %{_libdir}/liblirc_client.so.*.*.*
894 %attr(755,root,root) %ghost %{_libdir}/liblirc_client.so.0
897 %defattr(644,root,root,755)
898 %attr(755,root,root) %{_libdir}/liblirc_client.so
899 %{_libdir}/liblirc_client.la
901 %{_aclocaldir}/lirc.m4
904 %defattr(644,root,root,755)
905 %{_libdir}/liblirc_client.a
909 %files -n kernel%{_alt_kernel}-char-lirc-atiusb
910 %defattr(644,root,root,755)
911 /lib/modules/%{_kernel_ver}/misc/lirc_atiusb.ko*
913 %files -n kernel%{_alt_kernel}-char-lirc-bt829
914 %defattr(644,root,root,755)
915 /lib/modules/%{_kernel_ver}/misc/lirc_bt829.ko*
917 %files -n kernel%{_alt_kernel}-char-lirc-dev
918 %defattr(644,root,root,755)
919 /lib/modules/%{_kernel_ver}/misc/lirc_dev.ko*
921 %if "%{_kernel_ver}" < "3.0.0"
922 %files -n kernel%{_alt_kernel}-char-lirc-ene0100
923 %defattr(644,root,root,755)
924 /lib/modules/%{_kernel_ver}/misc/lirc_ene0100.ko*
927 %if "%{_kernel_ver}" < "2.6.23"
928 %files -n kernel%{_alt_kernel}-char-lirc-gpio
929 %defattr(644,root,root,755)
930 /lib/modules/%{_kernel_ver}/misc/lirc_gpio.ko*
933 %files -n kernel%{_alt_kernel}-char-lirc-i2c
934 %defattr(644,root,root,755)
935 /lib/modules/%{_kernel_ver}/misc/lirc_i2c.ko*
937 %files -n kernel%{_alt_kernel}-char-lirc-igorplugusb
938 %defattr(644,root,root,755)
939 /lib/modules/%{_kernel_ver}/misc/lirc_igorplugusb.ko*
941 %files -n kernel%{_alt_kernel}-char-lirc-imon
942 %defattr(644,root,root,755)
943 /lib/modules/%{_kernel_ver}/misc/lirc_imon.ko*
945 %files -n kernel%{_alt_kernel}-char-lirc-sasem
946 %defattr(644,root,root,755)
947 /lib/modules/%{_kernel_ver}/misc/lirc_sasem.ko*
949 %files -n kernel%{_alt_kernel}-char-lirc-serial
950 %defattr(644,root,root,755)
951 /lib/modules/%{_kernel_ver}/misc/lirc_serial.ko*
953 %files -n kernel%{_alt_kernel}-char-lirc-sir
954 %defattr(644,root,root,755)
955 /lib/modules/%{_kernel_ver}/misc/lirc_sir.ko*
957 %files -n kernel%{_alt_kernel}-char-lirc-ttusbir
958 %defattr(644,root,root,755)
959 /lib/modules/%{_kernel_ver}/misc/lirc_ttusbir.ko*
961 %if "%{_kernel_ver}" < "3.0.0"
962 %files -n kernel%{_alt_kernel}-char-lirc-wpc87691
963 %defattr(644,root,root,755)
964 /lib/modules/%{_kernel_ver}/misc/lirc_wpc8769l.ko*
967 %files -n kernel%{_alt_kernel}-char-lirc-parallel
968 %defattr(644,root,root,755)
969 /lib/modules/%{_kernel_ver}/misc/lirc_parallel.ko*