Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
lirc
lirc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lirc.spec of Package lirc
# # spec file for package lirc # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _udevdir %(pkg-config --variable udevdir udev) %if ! %{defined _rundir} %define _rundir %{_localstatedir}/run %endif Name: lirc # Version: 0.9.3a Release: 0 Summary: Tools for Infrared Receivers License: GPL-2.0+ Group: Hardware/Other Url: http://www.lirc.org/ Source0: http://downloads.sourceforge.net/project/lirc/LIRC/%{version}/lirc-%{version}.tar.bz2 Source1: baselibs.conf Source6: fix-remote-keys.pl Source8: README.SUSE Source9: 51-lirc.rules # PATCH-FEATURE-UPSTREAM 0001-lirc-Fix-segfault-when-starting-lircd-AUR-41581.patch --lircd fails to start ending in a segfault Patch0: 0001-Fix-segfault-when-starting-lircd-AUR-41581.patch # PATCH-FEATURE-UPSTREAM 0002-lircd-Fix-bad-default-for-lircdfile.patch -- Fix bad default for lircdfile Patch1: 0002-lircd-Fix-bad-default-for-lircdfile.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: libxslt-tools # for hw_atilibusb driver BuildRequires: pkgconfig BuildRequires: pkgconfig(alsa) %if 0%{?suse_version} > 1320 BuildRequires: pkgconfig(libftdi1) BuildRequires: pkgconfig(libirman) %endif BuildRequires: python3 BuildRequires: python3-PyYAML BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(portaudio-2.0) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(x11) Requires: udev Recommends: lirc-remotes Suggests: lirc-kmp Supplements: lirc-kmp %ifnarch s390 s390x # i2c-dev.h now moved to that package BuildRequires: i2c-tools # for hw_i2cuser driver BuildRequires: linux-kernel-headers %endif %description LIRC is a package that supports receiving and sending IR signals with the most common IR remote controls. It contains a daemon that decodes and sends IR signals, a mouse daemon that translates IR signals to mouse movements, and a couple of user programs that allow you to control your computer with a remote control. %package core Summary: LIRC core, always needed to run LIRC License: GPL-2.0+ Group: Hardware/Other Provides: %{name} = %{version} Obsoletes: %{name} < %{version} %description core The LIRC core contains the lircd daemons, the devinput and default driver and most of the applications. %package config Summary: LIRC Configuration Tools and Data License: GPL-2.0+ Group: Hardware/Other Requires: lirc-core = %{version} Provides: %{name}-remotes = %{version} Obsoletes: %{name}-remotes < %{version} Requires: python3-PyYAML Requires: python3-gobject BuildArch: noarch %description config The LIRC config package contains tools and data to ease the LIRC configuration process. %package devel Summary: LIRC development files License: GPL-2.0+ Group: Development/Libraries/C and C++ Requires: libirrecord0 = %{version} Requires: liblirc0 = %{version} Requires: liblirc_client0 = %{version} Requires: liblirc_driver0 = %{version} # files were in lirc package previously Conflicts: lirc <= 0.8.4 %description devel LIRC is a package that supports receiving and sending IR signals with the most common IR remote controls. It contains a daemon that decodes and sends IR signals, a mouse daemon that translates IR signals to mouse movements, and a couple of user programs that allow you to control your computer with a remote control. %package -n liblirc_client0 Summary: LIRC client library License: GPL-2.0+ Group: Hardware/Other # files were in lirc package previously Conflicts: lirc <= 0.8.4 %description -n liblirc_client0 The LIRC client library. To actually use LIRC the lircd daemon from the 'lirc' package has to be configured and started. %package -n liblirc_driver0 Summary: LIRC driver library License: GPL-2.0+ Group: Hardware/Other %description -n liblirc_driver0 The LIRC driver library. To actually use the lirc plugins. %package -n libirrecord0 Summary: LIRC record library License: GPL-2.0+ Group: Hardware/Other %description -n libirrecord0 The LIRC record library. To actually use the lirc plugins. %package -n liblirc0 Summary: LIRC driver library License: GPL-2.0+ Group: Hardware/Other %description -n liblirc0 The LIRC library. LIRC is a package that supports receiving and sending IR signals with the most common IR remote controls. %package disable-kernel-rc Summary: Disable kernel ir device handling in favor of lirc License: GPL-2.0+ Group: Hardware/Other Requires: %{name}-core = %{version}-%{release} Recommends: lirc-core = %{version} %description disable-kernel-rc Udev rule which disables the kernel built-in handling of infrared devices (i. e., rc* ones) by making lirc the only used protocol. %if 0%{?suse_version} > 1320 %package drv-ftdi Summary: Ftdi LIRC User-Space Driver License: GPL-2.0+ Group: Hardware/Other Requires: lirc-core = %{version} %description drv-ftdi LIRC user-space driver which works together with the kernel, providing full support for the ftdi device. %endif %package drv-portaudio Summary: Portaudio LIRC User-Space Driver License: LGPL-2.0 Group: Hardware/Other Requires: lirc-core = %{version} %description drv-portaudio LIRC user space driver which supports a IR receiver in microphone input using the portaudio library. %package tools-gui Summary: LIRC GUI tools License: GPL-2.0+ Group: Hardware/Other Requires: lirc-core = %{version} Requires: xorg-x11-fonts-core %description tools-gui Some seldom used X11-based tools for debugging lirc configurations. # Don't provide or require anything from _docdir, per policy. %global __provides_exclude_from ^%{_docdir}/.*$ %global __requires_exclude_from ^%{_docdir}/.*$ %prep %setup -q %patch0 -p1 %patch1 -p1 cp %{SOURCE8} . %if %{defined _rundir} # Fix rundir for openSUSE > 13.1 sed -i 's|${localstatedir}/run|run|g' configure %else # But fix systemd unit files for openSUSE <= 13.1 sed -i 's|run|%{_localstatedir}/run|g' systemd/lircd.socket %endif %build %configure \ --with-igor \ --with-transmitter \ --with-port=0x3f8 \ --with-irq=4 \ --enable-ipv6 # make %%{?_smp_mflags} # parallel makes are currently busted, do single-threaded for now make perl %{SOURCE6} configs %install make DESTDIR=%{buildroot} install %{?_smp_mflags} # Create backward compatibility symlink ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}d ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}md mkdir -p %{buildroot}%{_tmpfilesdir} echo "d %{_localstatedir}/run/lirc 0755 root root 10d" \ > %{buildroot}/%{_tmpfilesdir}/lirc.conf # # udev stuff install -d -m 755 %{buildroot}/%{_udevdir}/rules.d install -m 644 %{SOURCE9} %{buildroot}/%{_udevdir}/rules.d # install -Dpm 644 contrib/99-remote-control-lirc.rules \ %{buildroot}%{_udevrulesdir}/99-remote-control-lirc.rules # get rid of libtool file find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete # # get rid of useless contrib stuff rm contrib/lirc.* # # Don't install documentation in a non standard directory rm -rf %{buildroot}%{_datadir}/doc # hide python dependency chmod 644 %{buildroot}%{_bindir}/pronto2lirc mkdir -p %{buildroot}%{_rundir} # Remove old %{_rundir}; depreciated but still installed by lirc, which is not looking for it rm -rf %{buildroot}%{_localstatedir} # Remove contrib folder; we will copy it into doc directory rm -rf %{buildroot}%{_datadir}/lirc/contrib # rm -rf %{buildroot}%{_datadir}/lirc/plugindocs # # remove lirc.4, as it is part of man-pages from 4.05 on rm %{buildroot}%{_mandir}/man4/lirc.4 # %fdupes -s %{buildroot} %fdupes -s . %post -n liblirc_client0 -p /sbin/ldconfig %post -n liblirc_driver0 -p /sbin/ldconfig %post -n liblirc0 -p /sbin/ldconfig %post -n libirrecord0 -p /sbin/ldconfig %postun -n liblirc_client0 -p /sbin/ldconfig %postun -n liblirc_driver0 -p /sbin/ldconfig %postun -n liblirc0 -p /sbin/ldconfig %postun -n libirrecord0 -p /sbin/ldconfig %pre core %service_add_pre lircd.service lircmd.service lircd.socket %post core %service_add_post lircd.service lircmd.service lircd.socket %if 0%{?suse_version} <= 1320 systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf >/dev/null 2>&1 || : %else %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %endif # config files moved to /etc/lirc in 0.8.6 for file in lircd.conf lircmd.conf lircrc; do if [ -e %{_sysconfdir}/$file -a ! -L %{_sysconfdir}/$file ]; then if [ ! -e %{_sysconfdir}/lirc/$file ]; then mv %{_sysconfdir}/$file %{_sysconfdir}/lirc/$file || true ln -s lirc/$file %{_sysconfdir}/$file || true else echo "Warning: lirc ignores %{_sysconfdir}/$file, use %{_sysconfdir}/lirc/$file instead" >&2 fi fi done %preun core %service_del_preun lircd.service lircmd.service lircd.socket %postun core %service_del_postun lircd.service lircmd.service lircd.socket %files core %defattr (-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README %doc README.SUSE %doc doc/html doc/lirc.hwdb doc/irxevent.keys %doc contrib %dir %{_datadir}/%{name} %dir %{_libdir}/%{name} %dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}/lircd.conf.d %dir %ghost %{_rundir}/lirc %ghost %{_rundir}/lirc/lircm %ghost %{_rundir}/lirc/lircd %exclude %{_bindir}/irxevent %exclude %{_bindir}/xmode2 %{_bindir}/* %{_datadir}/%{name}/lirc.hwdb %{_sbindir}/* %{_udevdir}/rules.d/51-%{name}.rules %{_libdir}/%{name}/plugins %exclude %{_libdir}/%{name}/plugins/ftdi.so %exclude %{_libdir}/%{name}/plugins/audio.so %exclude %{_mandir}/man1/irxevent.* %exclude %{_mandir}/man1/xmode2.* %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man8/* %{python3_sitelib}/* %dir %{_sysconfdir}/%{name} %config(noreplace,missingok) %{_sysconfdir}/lirc/lircd.conf %config(noreplace,missingok) %{_sysconfdir}/lirc/lircmd.conf %config(noreplace,missingok) %{_sysconfdir}/lirc/lirc_options.conf %config(noreplace,missingok) %{_sysconfdir}/lirc/lircd.conf.d/README.conf.d %{_unitdir}/lirc* %{_tmpfilesdir}/lirc.conf %files devel %defattr (-,root,root) %dir %{_includedir}/lirc %{_includedir}/lirc/* %{_includedir}/lirc_client.h %{_includedir}/lirc_driver.h %{_includedir}/lirc_private.h %{_libdir}/liblirc.so %{_libdir}/libirrecord.so %{_libdir}/liblirc_client.so %{_libdir}/liblirc_driver.so %{_libdir}/pkgconfig/lirc-driver.pc %{_libdir}/pkgconfig/lirc.pc %files drv-portaudio %defattr (-,root,root) %{_libdir}/lirc/plugins/audio.so %{_datadir}/lirc/configs/audio.conf %if 0%{?suse_version} > 1320 %files drv-ftdi %defattr (-,root,root) %{_libdir}/lirc/plugins/ftdi.so %{_datadir}/lirc/configs/ftdi.conf %endif %files config %defattr (-,root,root) %{_datadir}/lirc/configs %if 0%{?suse_version} > 1320 %exclude %{_datadir}/lirc/configs/ftdi.conf %endif %exclude %{_datadir}/lirc/configs/audio.conf %files -n liblirc0 %defattr (-,root,root) %{_libdir}/liblirc.so.* %files -n liblirc_client0 %defattr (-,root,root) %{_libdir}/liblirc_client.so.* %files -n liblirc_driver0 %defattr (-,root,root) %{_libdir}/liblirc_driver.so.* %files -n libirrecord0 %defattr (-,root,root) %{_libdir}/libirrecord.so.* %files disable-kernel-rc %defattr (-,root,root) %{_udevrulesdir}/99-remote-control-lirc.rules %files tools-gui %defattr (-,root,root) %{_bindir}/xmode2 %{_bindir}/irxevent %{_mandir}/man1/irxevent* %{_mandir}/man1/xmode2* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor