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
6 # - create modprobe alias files instead of reminding in post scriptlets
9 %bcond_without dist_kernel # without sources of distribution kernel
10 %bcond_without kernel # don't build kernel modules, only library+programs
11 %bcond_without userspace # build only packages with kernel modules
12 %bcond_with svga # without svgalib-based utility
13 %bcond_without x # without X11-based utilitied
16 %undefine with_dist_kernel
19 %if "%{_alt_kernel}" != "%{nil}"
20 %undefine with_userspace
29 # lirc_gpio fails to build under kernel >= 2.6.23
31 %if "%{_kernel_ver}" >= "2.6.23"
32 %if "%{_kernel_ver}" >= "3.0.0"
33 %define drivers "lirc_atiusb lirc_bt829 lirc_dev lirc_i2c lirc_igorplugusb lirc_imon lirc_parallel lirc_sasem lirc_serial lirc_sir lirc_ttusbir"
35 %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"
38 %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"
40 Summary: Linux Infrared Remote Control daemons
41 Summary(pl.UTF-8): Serwery do zdalnego sterowania Linuksem za pomocą podczerwieni
42 Name: %{pname}%{_alt_kernel}
47 Source0: http://downloads.sourceforge.net/lirc/%{pname}-%{version}.tar.bz2
48 # Source0-md5: b232aef26f23fe33ea8305d276637086
49 Source1: http://lirc.sourceforge.net/remotes.tar.bz2
50 # Source1-md5: 238d1773d3c405acc02813674f5a55f8
51 Source2: %{pname}d.sysconfig
52 Source3: %{pname}d.init
53 Source4: %{pname}md.init
54 Source5: %{pname}.tmpfiles
55 Patch0: %{pname}-opt.patch
56 Patch1: %{pname}-tmp.patch
57 Patch2: %{pname}-no-svgalib.patch
58 Patch3: %{pname}-kernel.patch
59 Patch4: %{pname}-sparc.patch
60 Patch5: %{pname}-remotes.patch
61 Patch6: %{pname}-kernelcc.patch
62 Patch7: format-security.patch
63 Patch8: %{pname}-am.patch
64 URL: http://www.lirc.org/
65 BuildRequires: alsa-lib-devel
66 BuildRequires: autoconf >= 2.50
67 BuildRequires: automake
68 BuildRequires: iguanaIR-devel
69 BuildRequires: libftdi-devel >= 0.12
70 BuildRequires: libirman-devel >= 0.4.5
71 BuildRequires: libtool
72 BuildRequires: libusb-compat-devel >= 0.1.0
74 BuildRequires: kernel%{_alt_kernel}-headers
75 BuildRequires: kernel%{_alt_kernel}-module-build
77 %{?with_kernel:BuildRequires: %{kgcc_package}}
78 BuildRequires: rpm-pythonprov
79 BuildRequires: rpmbuild(macros) >= 1.379
80 %{?with_svga:BuildRequires: svgalib-devel}
81 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
82 Requires(post,preun): /sbin/chkconfig
83 BuildRequires: rpmbuild(macros) >= 1.268
84 Requires: %{pname}-libs = %{version}-%{release}
85 Requires: libftdi >= 0.12
87 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
89 %if %{without userspace}
90 %define no_spec_install_post_check_tmpfiles 1
94 LIRC is a package that allows you to decode and send infra-red signals
95 of many (but not all) commonly used remote controls.
97 %description -l pl.UTF-8
98 LIRC to program pozwalający na dekodowanie nadchodzących oraz
99 wysyłanie sygnałów w podczerwieni za pomocą wielu (ale nie wszystkich)
100 popularnych urządzeń do zdalnego sterowania.
103 Summary: Lirc remotes database
104 Summary(pl.UTF-8): Baza pilotów obsługiwanych przez lirc
106 Requires: %{pname} = %{version}-%{rel}
109 This package contains configuration files for many remotes supported
112 %description remotes -l pl.UTF-8
113 Ten pakiet zawiera pliki konfiguracyjne dla wielu pilotów
114 obsługiwanych przez lirc.
117 Summary: Linux Infrared Remote Control - X11 utilities
118 Summary(pl.UTF-8): Zdalne sterowanie Linuksem za pomocą podczerwieni - narzędzia X11
119 Group: X11/Applications
120 Requires: %{pname}-libs = %{version}-%{release}
123 Linux Infrared Remote Control - X11 utilities.
125 %description X11 -l pl.UTF-8
126 Zdalne sterowanie Linuksem za pomocą podczerwieni - narzędzia X11.
129 Summary: Linux Infrared Remote Control - svgalib utilities
130 Summary(pl.UTF-8): Zdalne sterowanie Linuksem za pomocą podczerwieni - narzędzia svgalib
132 Requires: %{pname}-libs = %{version}-%{release}
135 Linux Infrared Remote Control - svgalib-based utilities.
137 %description svga -l pl.UTF-8
138 Zdalne sterowanie Linuksem za pomocą podczerwieni - narzędzia oparte
142 Summary: LIRC libraries
143 Summary(pl.UTF-8): Biblioteki LIRC
145 Conflicts: lirc < 0.6.3-3
146 # didn't use /tmp/.lircd
149 This package provides the libraries necessary to run lirc client
152 %description libs -l pl.UTF-8
153 Ten pakiet zawiera biblioteki niezbędne do działania klientów LIRC.
156 Summary: Header files for LIRC development
157 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów z obsługą LIRC
158 Group: Development/Libraries
159 Requires: %{pname}-libs = %{version}-%{release}
162 This package provides the files necessary to develop LIRC-based
165 %description devel -l pl.UTF-8
166 Ten pakiet zawiera pliki niezbędne do tworzenia programów opartych na
170 Summary: Static library for LIRC development
171 Summary(pl.UTF-8): Biblioteka statyczna LIRC
172 Group: Development/Libraries
173 Requires: %{pname}-devel = %{version}-%{release}
176 The files necessary for development of statically-linked lirc-based
179 %description static -l pl.UTF-8
180 Pliki potrzebne do tworzenia łączonych statycznie programów opartych
183 %package -n kernel%{_alt_kernel}-char-lirc-atiusb
184 Summary: Kernel modules for Linux Infrared Remote Control
185 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
186 Release: %{rel}@%{_kernel_ver_str}
188 %if %{with dist_kernel}
189 %requires_releq_kernel
190 Requires(postun): %releq_kernel
192 Requires(post,postun): /sbin/depmod
193 Requires: %{pname} = %{version}
194 Conflicts: dev < 2.8.0-3
196 %description -n kernel%{_alt_kernel}-char-lirc-atiusb
197 This package contains the kernel modules necessary to operate some
198 infrared remote control devices (such as the ones bundled with TV
203 %description -n kernel%{_alt_kernel}-char-lirc-atiusb -l pl.UTF-8
204 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
205 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
209 %package -n kernel%{_alt_kernel}-char-lirc-bt829
210 Summary: Kernel modules for Linux Infrared Remote Control
211 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
212 Release: %{rel}@%{_kernel_ver_str}
214 %if %{with dist_kernel}
215 %requires_releq_kernel
216 Requires(postun): %releq_kernel
218 Requires(post,postun): /sbin/depmod
219 Requires: %{pname} = %{version}
220 Conflicts: dev < 2.8.0-3
222 %description -n kernel%{_alt_kernel}-char-lirc-bt829
223 This package contains the kernel modules necessary to operate some
224 infrared remote control devices (such as the ones bundled with TV
229 %description -n kernel%{_alt_kernel}-char-lirc-bt829 -l pl.UTF-8
230 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
231 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
235 %package -n kernel%{_alt_kernel}-char-lirc-dev
236 Summary: Kernel modules for Linux Infrared Remote Control
237 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
238 Release: %{rel}@%{_kernel_ver_str}
240 %if %{with dist_kernel}
241 %requires_releq_kernel
242 Requires(postun): %releq_kernel
244 Requires(post,postun): /sbin/depmod
245 Requires: %{pname} = %{version}
246 Obsoletes: lirc-modules
247 Obsoletes: lirc-modules-dev
248 Conflicts: dev < 2.8.0-3
250 %description -n kernel%{_alt_kernel}-char-lirc-dev
251 This package contains the kernel modules necessary to operate some
252 infrared remote control devices (such as the ones bundled with TV
257 %description -n kernel%{_alt_kernel}-char-lirc-dev -l pl.UTF-8
258 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
259 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
263 %package -n kernel%{_alt_kernel}-char-lirc-ene0100
264 Summary: Kernel modules for Linux Infrared Remote Control
265 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
266 Release: %{rel}@%{_kernel_ver_str}
268 %if %{with dist_kernel}
269 %requires_releq_kernel
270 Requires(postun): %releq_kernel
272 Requires(post,postun): /sbin/depmod
273 Requires: %{pname} = %{version}
274 Obsoletes: lirc-modules
275 Conflicts: dev < 2.8.0-3
277 %description -n kernel%{_alt_kernel}-char-lirc-ene0100
278 This package contains the kernel modules necessary to operate some
279 infrared remote control ene0100ices (such as the ones bundled with TV
284 %description -n kernel%{_alt_kernel}-char-lirc-ene0100 -l pl.UTF-8
285 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
286 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
290 %package -n kernel%{_alt_kernel}-char-lirc-gpio
291 Summary: Kernel modules for Linux Infrared Remote Control
292 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
293 Release: %{rel}@%{_kernel_ver_str}
295 %if %{with dist_kernel}
296 %requires_releq_kernel
297 Requires(postun): %releq_kernel
299 Requires(post,postun): /sbin/depmod
300 Requires: %{pname} = %{version}
301 Obsoletes: lirc-modules
302 Obsoletes: lirc-modules-gpio
303 Conflicts: dev < 2.8.0-3
305 %description -n kernel%{_alt_kernel}-char-lirc-gpio
306 This package contains the kernel modules necessary to operate some
307 infrared remote control devices (such as the ones bundled with TV
312 %description -n kernel%{_alt_kernel}-char-lirc-gpio -l pl.UTF-8
313 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
314 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
318 %package -n kernel%{_alt_kernel}-char-lirc-i2c
319 Summary: Kernel modules for Linux Infrared Remote Control
320 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
321 Release: %{rel}@%{_kernel_ver_str}
323 %if %{with dist_kernel}
324 %requires_releq_kernel
325 Requires(postun): %releq_kernel
327 Requires(post,postun): /sbin/depmod
328 Requires: %{pname} = %{version}
329 Obsoletes: lirc-modules
330 Obsoletes: lirc-modules-i2c
331 Conflicts: dev < 2.8.0-3
333 %description -n kernel%{_alt_kernel}-char-lirc-i2c
334 This package contains the kernel modules necessary to operate some
335 infrared remote control devices (such as the ones bundled with TV
340 %description -n kernel%{_alt_kernel}-char-lirc-i2c -l pl.UTF-8
341 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
342 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
346 %package -n kernel%{_alt_kernel}-char-lirc-igorplugusb
347 Summary: Kernel modules for Linux Infrared Remote Control
348 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
349 Release: %{rel}@%{_kernel_ver_str}
351 %if %{with dist_kernel}
352 %requires_releq_kernel
353 Requires(postun): %releq_kernel
355 Requires(post,postun): /sbin/depmod
356 Requires: %{pname} = %{version}
357 Obsoletes: lirc-modules
358 Obsoletes: lirc-modules-igorplugusb
359 Conflicts: dev < 2.8.0-3
361 %description -n kernel%{_alt_kernel}-char-lirc-igorplugusb
362 This package contains the kernel modules necessary to operate some
363 infrared remote control devices (such as the ones bundled with TV
366 lirc_igorplugusb module.
368 %description -n kernel%{_alt_kernel}-char-lirc-igorplugusb -l pl.UTF-8
369 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
370 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
372 Moduł lirc_igorplugusb.
374 %package -n kernel%{_alt_kernel}-char-lirc-imon
375 Summary: Kernel modules for Linux Infrared Remote Control
376 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
377 Release: %{rel}@%{_kernel_ver_str}
379 %if %{with dist_kernel}
380 %requires_releq_kernel
381 Requires(postun): %releq_kernel
383 Requires(post,postun): /sbin/depmod
384 Requires: %{pname} = %{version}
385 Obsoletes: lirc-modules
386 Obsoletes: lirc-modules-imon
387 Conflicts: dev < 2.8.0-3
389 %description -n kernel%{_alt_kernel}-char-lirc-imon
390 This package contains the kernel modules necessary to operate some
391 infrared remote control devices (such as the ones bundled with TV
396 %description -n kernel%{_alt_kernel}-char-lirc-imon -l pl.UTF-8
397 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
398 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
402 %package -n kernel%{_alt_kernel}-char-lirc-sasem
403 Summary: Kernel modules for Linux Infrared Remote Control
404 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
405 Release: %{rel}@%{_kernel_ver_str}
407 %if %{with dist_kernel}
408 %requires_releq_kernel
409 Requires(postun): %releq_kernel
411 Requires(post,postun): /sbin/depmod
412 Requires: %{pname} = %{version}
413 Conflicts: dev < 2.8.0-3
415 %description -n kernel%{_alt_kernel}-char-lirc-sasem
416 This package contains the kernel modules necessary to operate some
417 infrared remote control devices (such as the ones bundled with TV
422 %description -n kernel%{_alt_kernel}-char-lirc-sasem -l pl.UTF-8
423 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
424 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
428 %package -n kernel%{_alt_kernel}-char-lirc-serial
429 Summary: Kernel modules for Linux Infrared Remote Control
430 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
431 Release: %{rel}@%{_kernel_ver_str}
433 %if %{with dist_kernel}
434 %requires_releq_kernel
435 Requires(postun): %releq_kernel
437 Requires(post,postun): /sbin/depmod
438 Requires: %{pname} = %{version}
439 %{?with_dist_kernel:Requires: setserial}
440 Obsoletes: lirc-modules
441 Obsoletes: lirc-modules-serial
442 Conflicts: dev < 2.8.0-3
444 %description -n kernel%{_alt_kernel}-char-lirc-serial
445 This package contains the kernel modules necessary to operate some
446 infrared remote control devices (such as the ones bundled with TV
449 lirc_serial module for devices connected to serial port.
451 %description -n kernel%{_alt_kernel}-char-lirc-serial -l pl.UTF-8
452 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
453 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
455 Moduł lirc_serial dla urządzeń podłączanych do portu szeregowego.
457 %package -n kernel%{_alt_kernel}-char-lirc-sir
458 Summary: Kernel modules for Linux Infrared Remote Control
459 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
460 Release: %{rel}@%{_kernel_ver_str}
462 %if %{with dist_kernel}
463 %requires_releq_kernel
464 Requires(postun): %releq_kernel
466 Requires(post,postun): /sbin/depmod
467 Requires: %{pname} = %{version}
468 Obsoletes: lirc-modules
469 Obsoletes: lirc-modules-sir
470 Conflicts: dev < 2.8.0-3
472 %description -n kernel%{_alt_kernel}-char-lirc-sir
473 This package contains the kernel modules necessary to operate some
474 infrared remote control devices (such as the ones bundled with TV
479 %description -n kernel%{_alt_kernel}-char-lirc-sir -l pl.UTF-8
480 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
481 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
485 %package -n kernel%{_alt_kernel}-char-lirc-ttusbir
486 Summary: Kernel modules for Linux Infrared Remote Control
487 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
488 Release: %{rel}@%{_kernel_ver_str}
490 %if %{with dist_kernel}
491 %requires_releq_kernel
492 Requires(postun): %releq_kernel
494 Requires(post,postun): /sbin/depmod
495 Requires: %{pname} = %{version}
496 Obsoletes: lirc-modules
497 Obsoletes: lirc-modules-ttusbir
498 Conflicts: dev < 2.8.0-3
500 %description -n kernel%{_alt_kernel}-char-lirc-ttusbir
501 This package contains the kernel modules necessary to operate
502 TechnoTrend USB IR Receiver.
506 %description -n kernel%{_alt_kernel}-char-lirc-ttusbir -l pl.UTF-8
507 Ten pakiet zawiera moduł kernela niezbędny do obsługi urządzenia
508 TechnoTrend USB IR Receiver.
512 %package -n kernel%{_alt_kernel}-char-lirc-wpc87691
513 Summary: Kernel modules for Linux Infrared Remote Control
514 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
515 Release: %{rel}@%{_kernel_ver_str}
517 %if %{with dist_kernel}
518 %requires_releq_kernel
519 Requires(postun): %releq_kernel
521 Requires(post,postun): /sbin/depmod
522 Requires: %{pname} = %{version}
523 Conflicts: dev < 2.8.0-3
525 %description -n kernel%{_alt_kernel}-char-lirc-wpc87691
526 This package contains the kernel modules necessary to operate
527 TechnoTrend USB IR Receiver.
529 lirc_wpc87691 module.
531 %description -n kernel%{_alt_kernel}-char-lirc-wpc87691 -l pl.UTF-8
532 Ten pakiet zawiera moduł kernela niezbędny do obsługi urządzenia
533 TechnoTrend USB IR Receiver.
537 %package -n kernel%{_alt_kernel}-char-lirc-parallel
538 Summary: Kernel modules for Linux Infrared Remote Control
539 Summary(pl.UTF-8): Moduły jądra dla zdalnej obsługi Linuksa za pomocą podczerwieni
540 Release: %{rel}@%{_kernel_ver_str}
542 %if %{with dist_kernel}
543 %requires_releq_kernel
544 Requires(postun): %releq_kernel
546 Requires(post,postun): /sbin/depmod
547 Requires: %{pname} = %{version}
548 Obsoletes: lirc-modules
549 Obsoletes: lirc-modules-parallel
550 Conflicts: dev < 2.8.0-3
552 %description -n kernel%{_alt_kernel}-char-lirc-parallel
553 This package contains the kernel modules necessary to operate some
554 infrared remote control devices (such as the ones bundled with TV
557 lirc-parallel module for devices connected to parallel port.
559 %description -n kernel%{_alt_kernel}-char-lirc-parallel -l pl.UTF-8
560 Ten pakiet zawiera moduły jądra niezbędne do obsługi niektórych
561 pilotów na podczerwień (w tym tych dostarczanych z kartami TV).
563 Moduł lirc_parallel dla urządzeń podłączanych do portu równoległego.
566 %setup -q -n %{pname}-%{version} -a 1
580 echo '#' > drivers/Makefile.am
588 ac_cv_header_portaudio_h=no \
592 ac_cv_have_kernel="no_kernel=yes" \
594 --with-kerneldir=%{_kernelsrcdir} \
595 %{?with_x:--with-x} \
598 --without-soft-carrier \
599 --with-driver=userspace \
602 %if %{with userspace}
611 for drv in $drivers; do
615 RCS_FIND_IGNORE="-name '*.ko' -o" \
621 KBUILD_MODPOST_WARN=1 \
631 rm -rf $RPM_BUILD_ROOT
635 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
636 for drv in $drivers; do
637 %install_kernel_modules -m drivers/$drv/$drv -d misc
641 %if %{with userspace}
642 install -d $RPM_BUILD_ROOT{%{_bindir},%{_aclocaldir},/dev,/var/{log,run/lirc}} \
643 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,lirc} \
644 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
646 %{__make} -j1 install \
647 DESTDIR=$RPM_BUILD_ROOT \
648 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}
650 cat>$RPM_BUILD_ROOT%{_sysconfdir}/lirc/lircd.conf<<END
652 # This is a placeholder for your configuration file.
653 # See %{_docdir}/%{pname}-%{version}/remotes for some examples.
656 cp -f $RPM_BUILD_ROOT%{_sysconfdir}/lirc/lirc{,m}d.conf
657 cp -p contrib/*.m4 $RPM_BUILD_ROOT%{_aclocaldir}
658 :> $RPM_BUILD_ROOT/var/log/lircd
660 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/lircd
661 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/lircd
662 install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/lircmd
663 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
667 rm -rf $RPM_BUILD_ROOT
669 %post libs -p /sbin/ldconfig
670 %postun libs -p /sbin/ldconfig
673 /sbin/chkconfig --add lircd
674 /sbin/chkconfig --add lircmd
675 %service lircd restart
676 %service lircmd restart
678 echo "If you are using a kernel-module-based driver, don't forget to"
679 echo "install the kernel%{_alt_kernel}-char-lirc-<your_driver> package."
682 if [ "$1" = "0" ]; then
685 /sbin/chkconfig --del lircd
686 /sbin/chkconfig --del lircmd
689 %triggerpostun -- %{name} < 0.8.6-8
690 if [ -f %{_sysconfdir}/lircd.conf.rpmsave ]; then
691 mv -f %{_sysconfdir}/lircd.conf.rpmsave %{_sysconfdir}/lirc/lircd.conf
693 if [ -f %{_sysconfdir}/lircmd.conf.rpmsave ]; then
694 mv -f %{_sysconfdir}/lircmd.conf.rpmsave %{_sysconfdir}/lirc/lircmd.conf
697 %post -n kernel%{_alt_kernel}-char-lirc-atiusb
698 %depmod %{_kernel_ver}
699 if [ "$1" = "1" ]; then
700 echo "Don't forget to add an 'alias lirc lirc_atiusb' to modprobe config"
703 %postun -n kernel%{_alt_kernel}-char-lirc-atiusb
704 %depmod %{_kernel_ver}
706 %post -n kernel%{_alt_kernel}-char-lirc-bt829
707 %depmod %{_kernel_ver}
708 if [ "$1" = "1" ]; then
709 echo "Don't forget to add an 'alias lirc lirc_bt829' to modprobe config"
712 %postun -n kernel%{_alt_kernel}-char-lirc-bt829
713 %depmod %{_kernel_ver}
715 %post -n kernel%{_alt_kernel}-char-lirc-dev
716 %depmod %{_kernel_ver}
718 %postun -n kernel%{_alt_kernel}-char-lirc-dev
719 %depmod %{_kernel_ver}
721 %post -n kernel%{_alt_kernel}-char-lirc-ene0100
722 %depmod %{_kernel_ver}
724 %postun -n kernel%{_alt_kernel}-char-lirc-ene0100
725 %depmod %{_kernel_ver}
727 %post -n kernel%{_alt_kernel}-char-lirc-gpio
728 %depmod %{_kernel_ver}
729 if [ "$1" = "1" ]; then
730 echo "Don't forget to add an 'alias lirc lirc_gpio' to modprobe config"
733 %postun -n kernel%{_alt_kernel}-char-lirc-gpio
734 %depmod %{_kernel_ver}
736 %post -n kernel%{_alt_kernel}-char-lirc-i2c
737 %depmod %{_kernel_ver}
738 if [ "$1" = "1" ]; then
739 echo "Don't forget to add an 'alias lirc lirc_i2c' to modprobe config"
742 %postun -n kernel%{_alt_kernel}-char-lirc-i2c
743 %depmod %{_kernel_ver}
745 %post -n kernel%{_alt_kernel}-char-lirc-igorplugusb
746 %depmod %{_kernel_ver}
747 if [ "$1" = "1" ]; then
748 echo "Don't forget to add an 'alias lirc lirc_igorplugusb' to modprobe config"
751 %postun -n kernel%{_alt_kernel}-char-lirc-igorplugusb
752 %depmod %{_kernel_ver}
754 %post -n kernel%{_alt_kernel}-char-lirc-imon
755 %depmod %{_kernel_ver}
756 if [ "$1" = "1" ]; then
757 echo "Don't forget to add an 'alias lirc lirc_imon' to modprobe config"
760 %postun -n kernel%{_alt_kernel}-char-lirc-imon
761 %depmod %{_kernel_ver}
763 %post -n kernel%{_alt_kernel}-char-lirc-sasem
764 %depmod %{_kernel_ver}
765 if [ "$1" = "1" ]; then
766 echo "Don't forget to add an 'alias lirc lirc_sasem' to modprobe config"
769 %postun -n kernel%{_alt_kernel}-char-lirc-sasem
770 %depmod %{_kernel_ver}
772 %post -n kernel%{_alt_kernel}-char-lirc-serial
773 %depmod %{_kernel_ver}
774 if [ "$1" = "1" ]; then
775 echo "Don't forget to add an 'alias lirc lirc_serial' to modprobe config"
778 %postun -n kernel%{_alt_kernel}-char-lirc-serial
779 %depmod %{_kernel_ver}
781 %post -n kernel%{_alt_kernel}-char-lirc-parallel
782 %depmod %{_kernel_ver}
783 if [ "$1" = "1" ]; then
784 echo "Don't forget to add an 'alias lirc lirc_parallel' modprobe config"
787 %postun -n kernel%{_alt_kernel}-char-lirc-parallel
788 %depmod %{_kernel_ver}
790 %post -n kernel%{_alt_kernel}-char-lirc-sir
791 %depmod %{_kernel_ver}
792 if [ "$1" = "1" ]; then
793 echo "Don't forget to add an 'alias lirc lirc_sir' to modprobe config"
796 %postun -n kernel%{_alt_kernel}-char-lirc-sir
797 %depmod %{_kernel_ver}
799 %post -n kernel%{_alt_kernel}-char-lirc-ttusbir
800 %depmod %{_kernel_ver}
801 if [ "$1" = "1" ]; then
802 echo "Don't forget to add an 'alias lirc lirc_ttusbir' to modprobe config"
805 %postun -n kernel%{_alt_kernel}-char-lirc-ttusbir
806 %depmod %{_kernel_ver}
808 %post -n kernel%{_alt_kernel}-char-lirc-wpc87691
809 %depmod %{_kernel_ver}
810 if [ "$1" = "1" ]; then
811 echo "Don't forget to add an 'alias lirc lirc_wpc87691' to modprobe config"
814 %postun -n kernel%{_alt_kernel}-char-lirc-wpc87691
815 %depmod %{_kernel_ver}
817 %if %{with userspace}
819 %defattr(644,root,root,755)
820 %doc ANNOUNCE AUTHORS NEWS README TODO ChangeLog
821 %doc contrib/lircrc doc/{html,images,lirc.css}
822 %attr(755,root,root) %{_bindir}/ircat
823 %attr(755,root,root) %{_bindir}/irexec
824 %attr(755,root,root) %{_bindir}/irpty
825 %attr(755,root,root) %{_bindir}/irrecord
826 %attr(755,root,root) %{_bindir}/irsend
827 %attr(755,root,root) %{_bindir}/irw
828 %attr(755,root,root) %{_bindir}/mode2
829 %attr(755,root,root) %{_bindir}/lircrcd
830 %attr(755,root,root) %{_bindir}/pronto2lirc
831 %attr(755,root,root) %{_sbindir}/lircd
832 %attr(755,root,root) %{_sbindir}/lircmd
833 %attr(754,root,root) /etc/rc.d/init.d/lircd
834 %attr(754,root,root) /etc/rc.d/init.d/lircmd
835 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/lircd
836 %dir %{_sysconfdir}/lirc
837 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lirc/lircd.conf
838 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lirc/lircmd.conf
839 %{_mandir}/man1/ircat.1*
840 %{_mandir}/man1/irexec.1*
841 %{_mandir}/man1/irpty.1*
842 %{_mandir}/man1/irrecord.1*
843 %{_mandir}/man1/irsend.1*
844 %{_mandir}/man1/irw.1*
845 %{_mandir}/man1/lircrcd.1*
846 %{_mandir}/man1/mode2.1*
847 %{_mandir}/man8/lircd.8*
848 %{_mandir}/man8/lircmd.8*
849 %attr(600,root,root) %ghost /var/log/lircd
851 %{systemdtmpfilesdir}/%{name}.conf
854 %defattr(644,root,root,755)
855 # XXX: are jpegs in docs (remotes) a good idea?
860 %defattr(644,root,root,755)
861 %doc doc/irxevent.keys
862 %attr(755,root,root) %{_bindir}/irxevent
863 %attr(755,root,root) %{_bindir}/xmode2
864 %{_mandir}/man1/irxevent.1*
865 %{_mandir}/man1/xmode2.1*
870 %defattr(644,root,root,755)
871 %attr(755,root,root) %{_bindir}/smode2
872 %{_mandir}/man1/smode2.1*
876 %defattr(644,root,root,755)
877 %attr(755,root,root) %{_libdir}/liblirc_client.so.*.*.*
878 %attr(755,root,root) %ghost %{_libdir}/liblirc_client.so.0
881 %defattr(644,root,root,755)
882 %attr(755,root,root) %{_libdir}/liblirc_client.so
883 %{_libdir}/liblirc_client.la
885 %{_aclocaldir}/lirc.m4
888 %defattr(644,root,root,755)
889 %{_libdir}/liblirc_client.a
893 %files -n kernel%{_alt_kernel}-char-lirc-atiusb
894 %defattr(644,root,root,755)
895 /lib/modules/%{_kernel_ver}/misc/lirc_atiusb.ko*
897 %files -n kernel%{_alt_kernel}-char-lirc-bt829
898 %defattr(644,root,root,755)
899 /lib/modules/%{_kernel_ver}/misc/lirc_bt829.ko*
901 %files -n kernel%{_alt_kernel}-char-lirc-dev
902 %defattr(644,root,root,755)
903 /lib/modules/%{_kernel_ver}/misc/lirc_dev.ko*
905 %if "%{_kernel_ver}" < "3.0.0"
906 %files -n kernel%{_alt_kernel}-char-lirc-ene0100
907 %defattr(644,root,root,755)
908 /lib/modules/%{_kernel_ver}/misc/lirc_ene0100.ko*
911 %if "%{_kernel_ver}" < "2.6.23"
912 %files -n kernel%{_alt_kernel}-char-lirc-gpio
913 %defattr(644,root,root,755)
914 /lib/modules/%{_kernel_ver}/misc/lirc_gpio.ko*
917 %files -n kernel%{_alt_kernel}-char-lirc-i2c
918 %defattr(644,root,root,755)
919 /lib/modules/%{_kernel_ver}/misc/lirc_i2c.ko*
921 %files -n kernel%{_alt_kernel}-char-lirc-igorplugusb
922 %defattr(644,root,root,755)
923 /lib/modules/%{_kernel_ver}/misc/lirc_igorplugusb.ko*
925 %files -n kernel%{_alt_kernel}-char-lirc-imon
926 %defattr(644,root,root,755)
927 /lib/modules/%{_kernel_ver}/misc/lirc_imon.ko*
929 %files -n kernel%{_alt_kernel}-char-lirc-sasem
930 %defattr(644,root,root,755)
931 /lib/modules/%{_kernel_ver}/misc/lirc_sasem.ko*
933 %files -n kernel%{_alt_kernel}-char-lirc-serial
934 %defattr(644,root,root,755)
935 /lib/modules/%{_kernel_ver}/misc/lirc_serial.ko*
937 %files -n kernel%{_alt_kernel}-char-lirc-sir
938 %defattr(644,root,root,755)
939 /lib/modules/%{_kernel_ver}/misc/lirc_sir.ko*
941 %files -n kernel%{_alt_kernel}-char-lirc-ttusbir
942 %defattr(644,root,root,755)
943 /lib/modules/%{_kernel_ver}/misc/lirc_ttusbir.ko*
945 %if "%{_kernel_ver}" < "3.0.0"
946 %files -n kernel%{_alt_kernel}-char-lirc-wpc87691
947 %defattr(644,root,root,755)
948 /lib/modules/%{_kernel_ver}/misc/lirc_wpc8769l.ko*
951 %files -n kernel%{_alt_kernel}-char-lirc-parallel
952 %defattr(644,root,root,755)
953 /lib/modules/%{_kernel_ver}/misc/lirc_parallel.ko*