SHA256
1
0
forked from pool/lirc

Accepting request 39385 from Base:System

Copy from Base:System/lirc based on submit request 39385 from user lnussel

OBS-URL: https://build.opensuse.org/request/show/39385
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lirc?expand=0&rev=32
This commit is contained in:
OBS User autobuild 2010-05-05 20:12:10 +00:00 committed by Git OBS Bridge
parent 6a04cceb53
commit 9dcfbab0d1
3 changed files with 18 additions and 24 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 4 08:16:15 UTC 2010 - lnussel@suse.de
- don't package files in /var/run
- fix package descriptions
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 12 14:58:11 UTC 2010 - lnussel@suse.de Fri Mar 12 14:58:11 UTC 2010 - lnussel@suse.de

View File

@ -51,7 +51,7 @@ Obsoletes: lirc-64bit
Version: 0.8.6%{?snapshot:_%snapshot} Version: 0.8.6%{?snapshot:_%snapshot}
Release: 1 Release: 1
PreReq: %fillup_prereq %insserv_prereq PreReq: %fillup_prereq %insserv_prereq
Summary: LIRC remote definitions Summary: Tools for Infrared Receivers
Source0: http://downloads.sourceforge.net/project/lirc/LIRC/%version/lirc-%{?snapshot}%{!?snapshot:%version}.tar.bz2 Source0: http://downloads.sourceforge.net/project/lirc/LIRC/%version/lirc-%{?snapshot}%{!?snapshot:%version}.tar.bz2
Source1: baselibs.conf Source1: baselibs.conf
Source4: rc.lirc Source4: rc.lirc
@ -75,15 +75,13 @@ and sends IR signals, a mouse daemon that translates IR signals to
mouse movements, and a couple of user programs that allow you to mouse movements, and a couple of user programs that allow you to
control your computer with a remote control. control your computer with a remote control.
This package contains a collection of configuration files for various
remotes.
%package devel %package devel
License: GPLv2+ License: GPLv2+
Summary: LIRC development files Summary: LIRC development files
Group: Hardware/Other Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: %{name} = %{version}
# files were in lirc package previously # files were in lirc package previously
Conflicts: lirc <= 0.8.4 Conflicts: lirc <= 0.8.4
@ -99,18 +97,13 @@ control your computer with a remote control.
%package remotes %package remotes
License: GPLv2+ License: GPLv2+
Summary: Tools for Infrared Receivers Summary: LIRC remote definitions
Group: Hardware/Other Group: Hardware/Other
# files were in lirc package previously # files were in lirc package previously
Conflicts: lirc <= 0.8.4 Conflicts: lirc <= 0.8.4
%description remotes %description remotes
LIRC is a package that supports receiving and sending IR signals with Collection of LIRC configuration files for various remotes.
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 %package -n liblirc_client0
@ -122,15 +115,8 @@ Recommends: lirc = %{version}
Conflicts: lirc <= 0.8.4 Conflicts: lirc <= 0.8.4
%description -n liblirc_client0 %description -n liblirc_client0
LIRC is a package that supports receiving and sending IR signals with The LIRC client library. To actually use LIRC the lircd daemon from
the most common IR remote controls. It contains a daemon that decodes the 'lirc' package has to be configured and started.
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.
This package only contains the client library. To actually use LIRC the
lircd daemon from the 'lirc' package has to be configured and started.
%prep %prep
@ -177,6 +163,7 @@ mkdir -p %{buildroot}/usr/share/lirc
cp -a remotes %{buildroot}/usr/share/lirc cp -a remotes %{buildroot}/usr/share/lirc
install -d -m 755 %{buildroot}/dev install -d -m 755 %{buildroot}/dev
mkdir -p %{buildroot}/var/run/lirc mkdir -p %{buildroot}/var/run/lirc
touch %{buildroot}/var/run/lirc/lircd
chmod 600 %{buildroot}/var/run/lirc/* chmod 600 %{buildroot}/var/run/lirc/*
# lircd init scripts # lircd init scripts
install -d -m 755 %{buildroot}/etc/init.d \ install -d -m 755 %{buildroot}/etc/init.d \
@ -216,9 +203,9 @@ chmod 644 %{buildroot}%{_bindir}/pronto2lirc
%doc README.SUSE %doc README.SUSE
%doc doc/html doc/images doc/lirc.hwdb doc/lirc.css doc/irxevent.keys %doc doc/html doc/images doc/lirc.hwdb doc/lirc.css doc/irxevent.keys
%doc contrib %doc contrib
#%attr (600,root,root) %dev(c,61,0) /dev/lirc # => udev %dir %ghost /var/run/lirc
%dir /var/run/lirc %ghost /var/run/lirc/lircm
/var/run/lirc/lircm %ghost /var/run/lirc/lircd
%attr(0755,root,root)/usr/bin/* %attr(0755,root,root)/usr/bin/*
/usr/sbin/* /usr/sbin/*
/etc/init.d/lirc /etc/init.d/lirc

View File

@ -93,8 +93,9 @@ case "$1" in
fi fi
fi fi
[ -n "$LIRCD_DEVICE" ] && echo -n "($LIRCD_DEVICE)" [ -n "$LIRCD_DEVICE" ] && echo -n "($LIRCD_DEVICE)"
install -d -m 755 /var/run/lirc
install -m "$LIRCD_DEV_PERMISSIONS" /dev/null /var/run/lirc/lircd install -m "$LIRCD_DEV_PERMISSIONS" /dev/null /var/run/lirc/lircd
chown "$LIRCD_DEV_OWNER" /var/run/lirc/lircd chown "$LIRCD_DEV_OWNER" /var/run/lirc/lircd
if [ ! -L /dev/lircd ]; then if [ ! -L /dev/lircd ]; then
rm -f /dev/lircd rm -f /dev/lircd
ln -s /var/run/lirc/lircd /dev/lircd ln -s /var/run/lirc/lircd /dev/lircd