rpms/vdr-remote/F-10 vdr-remote-0.4.0-i18ndetect.patch, NONE, 1.1 vdr-remote-udev.rules, NONE, 1.1 vdr-remote.conf, NONE, 1.1 vdr-remote.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ville Skyttä scop at fedoraproject.org
Wed Oct 29 22:15:00 UTC 2008


Author: scop

Update of /cvs/pkgs/rpms/vdr-remote/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25200/F-10

Modified Files:
	.cvsignore sources 
Added Files:
	vdr-remote-0.4.0-i18ndetect.patch vdr-remote-udev.rules 
	vdr-remote.conf vdr-remote.spec 
Log Message:
Initial import (#466974).

vdr-remote-0.4.0-i18ndetect.patch:

--- NEW FILE vdr-remote-0.4.0-i18ndetect.patch ---
diff -up remote-0.4.0/Makefile~ remote-0.4.0/Makefile
--- remote-0.4.0/Makefile~	2007-10-06 15:58:06.000000000 +0300
+++ remote-0.4.0/Makefile	2008-10-11 22:55:46.000000000 +0300
@@ -81,7 +81,7 @@ $(DEPFILE): Makefile
 
 ### Internationalization (I18N):
 
-ifneq ($(shell grep 'LOCALEDIR' $(VDRDIR)/Makefile),)
+ifneq ($(shell pkg-config --atleast-version 1.6.0 vdr && echo true),)
 PODIR     = po
 LOCALEDIR = $(VDRDIR)/locale
 I18Npo    = $(wildcard $(PODIR)/*.po)


--- NEW FILE vdr-remote-udev.rules ---
# vdr-remote friendly udev rules

# Predictable event device name examples follow.  To find out the sysfs name
# for your remote control device, look at the strings in the
# /sys/class/input/input*/name files.  Or simply uncomment one of the examples
# below if one matching the input device name of your hardware is included.
# Add "-i /dev/input/event-remote" to PLUGIN_OPTIONS in
# /etc/sysconfig/vdr-plugins.d/remote.conf to make VDR use the correct device.

# On-card receivers on various Hauppauge/Technotrend DVB cards:
#SUBSYSTEM=="input", ATTRS{name}=="DVB on-card IR receiver", SYMLINK+="input/event-remote", GROUP="VDR_GROUP"

# On-card receivers on some Hauppauge Nova-T DVB cards:
#SUBSYSTEM=="input", ATTRS{name}=="cx88 IR (Hauppauge Nova-T DVB-T", SYMLINK+="input/event-remote", GROUP="VDR_GROUP"

# ATI remote wonder and friends:
#SUBSYSTEM=="input", ATTRS{name}=="X10 Wireless Technology Inc USB Receiver", KERNEL!="mouse*", SYMLINK+="input/event-remote", GROUP="VDR_GROUP"


# Example using /dev/input/event2, combine with "-i /dev/input/event2" in
# PLUGIN_OPTIONS in /etc/sysconfig/vdr-plugins.d/remote.conf.  Note that it
# is quite likely that eventN will unpredictably point to different devices
# between reboots; it is recommended to use predictable naming rules like the
# examples above instead.
#KERNEL=="event2", GROUP="VDR_GROUP"


--- NEW FILE vdr-remote.conf ---
# Configuration snippet for vdr-remote                               -*- sh -*-
#
# Add command line options to pass to the remote plugin to PLUGIN_OPTIONS.
# See /usr/share/doc/vdr-remote-*/README for info about available options,
# and /etc/udev/rules.d/*-vdr-remote.rules for udev rules that let VDR to
# use the devices.  If using one of the persistent naming rules in that file,
# add "-i /dev/input/event-remote" to PLUGIN_OPTIONS here.

PLUGIN_OPTIONS=""


--- NEW FILE vdr-remote.spec ---
%define pname     remote
%define plugindir %(vdr-config --plugindir  2>/dev/null || echo ERROR)
%define apiver    %(vdr-config --apiversion 2>/dev/null || echo ERROR)
%define vdr_group %(vdr-config --group      2>/dev/null || echo ERROR)

Name:           vdr-%{pname}
Version:        0.4.0
Release:        5%{?dist}
Summary:        Extended remote control plugin for VDR

Group:          Applications/Multimedia
License:        GPL+
URL:            http://www.escape-edv.de/endriss/vdr/
Source0:        http://www.escape-edv.de/endriss/vdr/%{name}-%{version}.tgz
Source1:        %{name}.conf
Source2:        %{name}-udev.rules
# Status query mail sent to upstream and Debian patchkit maintainer 2008-10-25
Patch0:         http://zap.tartarus.org/~ds/debian/dists/stable/main/source/vdr-plugin-remote_0.3.8-3.ds.diff.gz
# Non-upstreamable; upstream VDR 1.6.x lacks *.pc, no better alternative yet
Patch1:         %{name}-0.4.0-i18ndetect.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  vdr-devel >= 1.3.47
BuildRequires:  gettext
Requires:       vdr(abi) = %{apiver}
Requires:       udev

%description
This plugin extends VDR's remote control capabilities, adding support
for Linux input devices, keyboards (tty), TCP connections, and LIRC.


%prep
%setup -q -n %{pname}-%{version}
%patch0 -p1
%patch1 -p1

patch -p1 -i debian/patches/01_debian.dpatch
patch -p1 -i debian/patches/02_no_abort.dpatch
sed -i \
    -e 's/0\.3\.8/0.4.0/g' \
    -e 's/"Remote control"/trNOOP("Remote control")/' \
    debian/patches/04_constness.dpatch
patch -p1 -i debian/patches/04_constness.dpatch

sed -i -e 's|include Make.config|include $(VDRDIR)/Make.config|' Makefile

for f in CONTRIBUTORS HISTORY ; do
    iconv -f iso-8859-1 -t utf-8 $f > $f.utf-8 ; mv $f.utf-8 $f
done


%build
make %{?_smp_mflags} LIBDIR=. LOCALEDIR=./locale VDRDIR=%{_libdir}/vdr all


%install
rm -rf $RPM_BUILD_ROOT

make install LIBDIR=. VDRDIR=%{_libdir}/vdr # ugh

install -dm 755 $RPM_BUILD_ROOT%{plugindir}
install -pm 755 libvdr-%{pname}.so.%{apiver} $RPM_BUILD_ROOT%{plugindir}

install -Dpm 644 %{SOURCE1} \
  $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf

if pkg-config --atleast-version 1.5.0 vdr ; then
    install -dm 755 $RPM_BUILD_ROOT%{_datadir}/locale
    cp -pR locale/* $RPM_BUILD_ROOT%{_datadir}/locale
    %find_lang %{name}
else
    cat /dev/null > %{name}.lang
fi

install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
sed -e 's/VDR_GROUP/%{vdr_group}/' < %{SOURCE2} \
  > $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/52-%{name}.rules
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/*-%{name}.rules


%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc CONTRIBUTORS COPYING FAQ HISTORY README
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
%config(noreplace) %{_sysconfdir}/udev/rules.d/*-%{name}.rules
%{plugindir}/libvdr-%{pname}.so.%{apiver}


%changelog
* Thu Oct 30 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.4.0-5
- First Fedora build (#466974).
- Add specfile comments about patch statuses.
- Prune pre-0.4.0 %%changelog entries.

* Sat Oct 25 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.4.0-4
- Use ATTRS, not SYSFS in example udev rules.

* Tue Oct 14 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.4.0-3
- Fix install of localizations when built with 1.6.x.
- Add example udev rules file, improve sysconfig snippet docs.

* Mon Aug 04 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.4.0-2
- rebuild

* Tue Apr  8 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.4.0-1
- 0.4.0.
- Build for VDR 1.6.0.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/vdr-remote/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	29 Oct 2008 21:32:40 -0000	1.1
+++ .cvsignore	29 Oct 2008 22:14:30 -0000	1.2
@@ -0,0 +1,2 @@
+vdr-plugin-remote_0.3.8-3.ds.diff.gz
+vdr-remote-0.4.0.tgz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/vdr-remote/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	29 Oct 2008 21:32:40 -0000	1.1
+++ sources	29 Oct 2008 22:14:30 -0000	1.2
@@ -0,0 +1,2 @@
+3ea16c95d376985090fc88c7932b8007  vdr-plugin-remote_0.3.8-3.ds.diff.gz
+336fa829fc24100d47545094218141a6  vdr-remote-0.4.0.tgz




More information about the scm-commits mailing list