2024-01-06 06:24:01 +01:00
|
|
|
%define user_lirc 67
|
|
|
|
%define group_lirc 67
|
2024-01-06 06:24:00 +01:00
|
|
|
Name: lirc
|
2024-01-06 06:24:01 +01:00
|
|
|
Version: 0.9.4b
|
2024-01-06 06:24:00 +01:00
|
|
|
Epoch: 1
|
2024-01-06 06:24:01 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 06:24:00 +01:00
|
|
|
Summary: A package that allows you to decode and send infra-red signals
|
|
|
|
Group: System/Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.lirc.org/
|
2024-01-06 06:24:00 +01:00
|
|
|
Source: http://downloads.sourceforge.net/project/lirc/LIRC/%{version}/lirc-%{version}.tar.bz2
|
2024-01-06 06:24:01 +01:00
|
|
|
Patch0: lirc-0.9.4-run_dir.patch
|
2024-01-06 06:24:01 +01:00
|
|
|
Patch1: lirc-0.9.4-fix-devinput-conf.patch
|
2024-01-06 06:24:00 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libICE-devel
|
|
|
|
BuildRequires: libSM-devel
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libXau-devel
|
|
|
|
BuildRequires: libXdmcp-devel
|
2024-01-06 06:24:01 +01:00
|
|
|
BuildRequires: libalsa-devel
|
|
|
|
BuildRequires: libbsd-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libdw-devel
|
|
|
|
BuildRequires: libftdi1-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libjack-devel
|
|
|
|
BuildRequires: libpcre-devel
|
|
|
|
BuildRequires: libportaudio-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libsepol-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: libusb-compat-devel
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: libxcb-devel
|
2024-01-06 06:24:00 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: help2man >= 1.36.3
|
2024-01-06 06:24:01 +01:00
|
|
|
Requires: PyYAML-py3
|
2024-01-06 06:24:01 +01:00
|
|
|
%systemd_requires
|
2024-01-06 06:24:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
LIRC is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Devel package for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
LIRC is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls.
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 06:24:01 +01:00
|
|
|
%patch0 -p1
|
2024-01-06 06:24:01 +01:00
|
|
|
#%patch1 -p1
|
2024-01-06 06:24:00 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 06:24:01 +01:00
|
|
|
./autogen.sh
|
|
|
|
%configure
|
2024-01-06 06:24:00 +01:00
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
%make systemddir=%{_unitdir}
|
2024-01-06 06:24:00 +01:00
|
|
|
#make -C drivers %{BUILD_OPTS} -j1
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
#sed -i "s|/bin/mknod|/bin/true|" drivers/Makefile drivers/*/Makefile
|
|
|
|
#sed -i "s|/sbin/depmod|/bin/true|" drivers/Makefile drivers/*/Makefile
|
2024-01-06 06:24:00 +01:00
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
#install -d %{buildroot}%{_sysconfdir}/lirc
|
|
|
|
#cp -a remotes/* %{buildroot}%{_sysconfdir}/lirc
|
2024-01-06 06:24:00 +01:00
|
|
|
%makeinstall systemddir=%{_unitdir}
|
2024-01-06 06:24:00 +01:00
|
|
|
|
2024-01-06 06:24:01 +01:00
|
|
|
install -D -m0644 doc/plugindocs.mk %{buildroot}%{_docdir}/lirc/plugindocs/plugindocs.mk
|
|
|
|
|
2024-01-06 06:24:01 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_tmpfilesdir}
|
|
|
|
cat > %{buildroot}%{_tmpfilesdir}/lircd.conf << _EOF
|
|
|
|
d /run/lirc 755 root root
|
|
|
|
_EOF
|
|
|
|
|
2024-01-06 06:24:01 +01:00
|
|
|
:<< _EOF
|
2024-01-06 06:24:00 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
%post
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
fi
|
2024-01-06 06:24:01 +01:00
|
|
|
groupadd lirc -g %{group_lirc} 2>/dev/null
|
|
|
|
useradd -u %{user_lirc} -g lirc \
|
|
|
|
-d /dev/null -s /sbin/nologin -c "Lirc user" lirc 2>/dev/null
|
|
|
|
%systemd_post lircd
|
|
|
|
%tmpfiles_create lircd.conf
|
2024-01-06 06:24:01 +01:00
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
2024-01-06 06:24:01 +01:00
|
|
|
%systemd_preun lircd
|
2024-01-06 06:24:01 +01:00
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
groupdel lirc 2>/dev/null
|
|
|
|
userdel lirc 2>/dev/null
|
|
|
|
fi
|
2024-01-06 06:24:01 +01:00
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
2024-01-06 06:24:01 +01:00
|
|
|
%systemd_postun_with_restart lircd
|
2024-01-06 06:24:00 +01:00
|
|
|
:
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_sysconfdir}/lirc
|
2024-01-06 06:24:01 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/lirc/lirc_options.conf
|
2024-01-06 06:24:01 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/lirc/lircd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/lirc/lircmd.conf
|
2024-01-06 06:24:01 +01:00
|
|
|
%config %{_sysconfdir}/lirc/irexec.lircrc
|
2024-01-06 06:24:01 +01:00
|
|
|
%dir %{_sysconfdir}/lirc/lircd.conf.d
|
2024-01-06 06:24:01 +01:00
|
|
|
%config %{_sysconfdir}/lirc/lircd.conf.d/devinput.lircd.conf
|
2024-01-06 06:24:01 +01:00
|
|
|
%{_sysconfdir}/lirc/lircd.conf.d/README.conf.d
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_bindir}/*
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_sbindir}/lircd
|
|
|
|
%{_sbindir}/lircmd
|
|
|
|
%{_sbindir}/lirc-lsplugins
|
2024-01-06 06:24:01 +01:00
|
|
|
%{_sbindir}/lircd-setup
|
|
|
|
%{_sbindir}/lircd-uinput
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_unitdir}/lircd.service
|
|
|
|
%{_unitdir}/lircd.socket
|
|
|
|
%{_unitdir}/lircmd.service
|
2024-01-06 06:24:01 +01:00
|
|
|
%{_unitdir}/irexec.service
|
|
|
|
%{_unitdir}/lircd-uinput.service
|
2024-01-06 06:24:01 +01:00
|
|
|
%{_tmpfilesdir}/lircd.conf
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_libdir}/liblirc_client.so.*
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_libdir}/liblirc.so.*
|
|
|
|
%{_libdir}/liblirc_driver.so.*
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_libdir}/libirrecord.so.*
|
2024-01-06 06:24:00 +01:00
|
|
|
%dir %{_libdir}/lirc
|
|
|
|
%dir %{_libdir}/lirc/plugins
|
|
|
|
%{_libdir}/lirc/plugins/*
|
|
|
|
%dir %{python3_sitelib}/lirc
|
2024-01-06 06:24:01 +01:00
|
|
|
%{python3_sitelib}/lirc/*
|
2024-01-06 06:24:00 +01:00
|
|
|
%dir %{_datadir}/lirc
|
|
|
|
%dir %{_datadir}/lirc/configs
|
2024-01-06 06:24:01 +01:00
|
|
|
%{_datadir}/lirc/lirc.hwdb
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_datadir}/lirc/configs/*
|
|
|
|
%dir %{_datadir}/lirc/contrib
|
2024-01-06 06:24:01 +01:00
|
|
|
%{_datadir}/lirc/contrib/.release-process.txt.swp
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_datadir}/lirc/contrib/*
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
%{_mandir}/man5/lircd.conf.5*
|
2024-01-06 06:24:01 +01:00
|
|
|
%{_mandir}/man5/lircrc.5*
|
|
|
|
%{_mandir}/man8/lircd-setup.8*
|
|
|
|
%{_mandir}/man8/lircd-uinput.8*
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_mandir}/man8/lircd.8*
|
|
|
|
%{_mandir}/man8/lircmd.8*
|
|
|
|
%{_mandir}/man8/lircrcd.8*
|
2024-01-06 06:24:01 +01:00
|
|
|
%dir %{_localstatedir}/lib/lirc
|
|
|
|
%dir %{_localstatedir}/lib/lirc/images
|
|
|
|
%{_localstatedir}/lib/lirc/images/*
|
|
|
|
%dir %{_localstatedir}/lib/lirc/plugins
|
|
|
|
%{_localstatedir}/lib/lirc/plugins/*
|
2024-01-06 06:24:01 +01:00
|
|
|
%dir %{_docdir}/lirc
|
|
|
|
%{_docdir}/lirc/*
|
2024-01-06 06:24:00 +01:00
|
|
|
%doc AUTHORS COPYING
|
2024-01-06 06:24:00 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_includedir}/lirc_*.h
|
2024-01-06 06:24:00 +01:00
|
|
|
%dir %{_includedir}/lirc
|
|
|
|
%{_includedir}/lirc/*.h
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_includedir}/lirc/input_map.inc
|
|
|
|
%dir %{_includedir}/lirc/include
|
|
|
|
%dir %{_includedir}/lirc/include/media
|
|
|
|
%{_includedir}/lirc/include/media/lirc.h
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_libdir}/libirrecord.la
|
|
|
|
%{_libdir}/libirrecord.so
|
2024-01-06 06:24:00 +01:00
|
|
|
%{_libdir}/liblirc_client.la
|
|
|
|
%{_libdir}/liblirc_client.so
|
|
|
|
%{_libdir}/liblirc.la
|
|
|
|
%{_libdir}/liblirc.so
|
|
|
|
%{_libdir}/liblirc_driver.la
|
|
|
|
%{_libdir}/liblirc_driver.so
|
|
|
|
%{_libdir}/pkgconfig/lirc-driver.pc
|
|
|
|
%{_libdir}/pkgconfig/lirc.pc
|
2024-01-06 06:24:01 +01:00
|
|
|
%doc ChangeLog NEWS README
|
2024-01-06 06:24:00 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 06:24:01 +01:00
|
|
|
* Thu Oct 13 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4b-1mamba
|
|
|
|
- update to 0.9.4b
|
|
|
|
|
2024-01-06 06:24:01 +01:00
|
|
|
* Wed Aug 24 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4-5mamba
|
|
|
|
- don't replace lirc_options.conf on update
|
|
|
|
|
|
|
|
* Wed Aug 24 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4-4mamba
|
|
|
|
- install plugindocs.mk
|
|
|
|
|
2024-01-06 06:24:01 +01:00
|
|
|
* Fri Aug 12 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4-3mamba
|
|
|
|
- patches for systemd service files and inpudev conf
|
|
|
|
|
|
|
|
* Thu Aug 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4-2mamba
|
|
|
|
- require PyYAML-py3 for lirc-setup and create lirc system user and group
|
|
|
|
- move docs required by lirc-setup from -devel to main package
|
|
|
|
|
2024-01-06 06:24:01 +01:00
|
|
|
* Thu Aug 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4-1mamba
|
|
|
|
- update to 0.9.4
|
|
|
|
|
|
|
|
* Thu Aug 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3a-3mamba
|
|
|
|
- rebuilt with libirman-devel
|
|
|
|
|
2024-01-06 06:24:01 +01:00
|
|
|
* Wed Jul 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3a-2mamba
|
|
|
|
- move rundir to /run and add tmpfiles.d file
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
* Fri May 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3a-1mamba
|
|
|
|
- update to 0.9.3a
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
* Wed Oct 07 2015 Automatic Build System <autodist@mambasoft.it> 0.9.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
* Mon Mar 09 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.2a-1mamba
|
|
|
|
- update to 0.9.2a
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
* Fri Jan 23 2015 Automatic Build System <autodist@mambasoft.it> 0.9.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
* Sun Aug 31 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1a-1mamba
|
|
|
|
- update to 0.9.1a
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
* Thu Jun 12 2014 Automatic Build System <autodist@mambasoft.it> 0.9.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 06:24:00 +01:00
|
|
|
* Fri Jan 04 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-9mamba
|
|
|
|
- kernel 3.4 rebuild
|
|
|
|
|
|
|
|
* Sat Oct 27 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-8mamba
|
|
|
|
- kernel 3.6 rebuild
|
|
|
|
|
|
|
|
* Sat Jun 30 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-7mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Feb 29 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-6mamba
|
|
|
|
- rebuilt without kernel modules package (mostly provided in recent kernels)
|
|
|
|
|
|
|
|
* Sun Feb 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-5mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jan 25 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-4mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Sep 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-3mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Aug 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-2mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Apr 20 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-1mamba
|
|
|
|
- update to 0.9.0
|
|
|
|
|
|
|
|
* Mon Feb 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.7-2mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Dec 16 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.7-1mamba
|
|
|
|
- update to 0.8.7
|
|
|
|
|
|
|
|
* Thu Dec 16 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.6-4mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Wed Jun 30 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.6-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Sat Dec 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.6-2mamba
|
|
|
|
- rebuild for kernel 2.6.31
|
|
|
|
|
|
|
|
* Sat Dec 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.6-1mamba
|
|
|
|
- update to 0.8.6
|
|
|
|
|
|
|
|
* Sun Aug 09 2009 Automatic Build System <autodist@mambasoft.it> 0.8.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 24 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jul 18 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.2-2mamba
|
|
|
|
- update to 0.8.2
|
|
|
|
|
|
|
|
* Sat Mar 24 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.2-1qilnx
|
|
|
|
- update to version 0.8.2pre1 by autospec
|
|
|
|
|
|
|
|
* Fri Sep 22 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.1pre1-2qilnx
|
|
|
|
- rebuilt for 2.6.18 kernel
|
|
|
|
|
|
|
|
* Mon May 15 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0.cvs20060516-1qilnx
|
|
|
|
- package created by autospec
|