[vdr-screenshot] Initial import 819237

Martin Gansser martinkg at fedoraproject.org
Tue May 22 20:29:24 UTC 2012


commit b01e6e0ebb68a77bae97df46cef10c961d517dde
Author: Martin Gansser <mgansser at alice.de>
Date:   Tue May 22 22:27:24 2012 +0200

    Initial import 819237

 .gitignore          |    1 +
 screenshot-po.patch |  116 +++++++++++++++++++++++++++++++++++++++++++++++++++
 screenshot.patch    |   22 ++++++++++
 sources             |    1 +
 vdr-screenshot.spec |   81 +++++++++++++++++++++++++++++++++++
 5 files changed, 221 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..66a843d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vdr-screenshot-0.0.14.tar.bz2
diff --git a/screenshot-po.patch b/screenshot-po.patch
new file mode 100644
index 0000000..00d7a42
--- /dev/null
+++ b/screenshot-po.patch
@@ -0,0 +1,116 @@
+diff -ru po.orig/ca_ES.po po/ca_ES.po
+--- po.orig/ca_ES.po	2012-05-13 17:54:33.000000000 +0300
++++ po/ca_ES.po	2012-05-15 00:08:21.139970346 +0300
+@@ -3,7 +3,7 @@
+ # This file is distributed under the same license as the VDR package.
+ # Marc Rovira Vall <tm05462 at salleURL.edu>, 2003
+ # Ramon Roca <ramon.roca at xcombo.com>, 2003
+-# Jordi Vil� <jvila at tinet.org>, 2003
++# Jordi Vilà <jvila at tinet.org>, 2003
+ #
+ msgid ""
+ msgstr ""
+@@ -11,11 +11,11 @@
+ "Report-Msgid-Bugs-To: <vdr at joachim-wilke.de>\n"
+ "POT-Creation-Date: 2012-03-11 13:37+0100\n"
+ "PO-Revision-Date: 2008-03-08 22:17+0100\n"
+-"Last-Translator: Jordi Vil� <jvila at tinet.org>\n"
+-"Language-Team: <vdr at linuxtv.org>\n"
+-"Language: \n"
++"Last-Translator: Jordi Vilà <jvila at tinet.org>\n"
++"Language-Team: Catalan <vdr at linuxtv.org>\n"
++"Language: ca\n"
+ "MIME-Version: 1.0\n"
+-"Content-Type: text/plain; charset=ISO-8859-1\n"
++"Content-Type: text/plain; charset=UTF-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+ 
+ msgid "Takes screenshots"
+diff -ru po.orig/de_DE.po po/de_DE.po
+--- po.orig/de_DE.po	2012-05-13 17:54:33.000000000 +0300
++++ po/de_DE.po	2012-05-15 00:03:58.103411659 +0300
+@@ -10,8 +10,8 @@
+ "POT-Creation-Date: 2012-03-11 13:37+0100\n"
+ "PO-Revision-Date: 2008-03-08 22:17+0100\n"
+ "Last-Translator: Klaus Schmidinger <kls at cadsoft.de>\n"
+-"Language-Team: <vdr at linuxtv.org>\n"
+-"Language: \n"
++"Language-Team: German <vdr at linuxtv.org>\n"
++"Language: de\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-15\n"
+ "Content-Transfer-Encoding: 8bit\n"
+diff -ru po.orig/es_ES.po po/es_ES.po
+--- po.orig/es_ES.po	2012-05-13 17:54:33.000000000 +0300
++++ po/es_ES.po	2012-05-15 00:08:14.144062531 +0300
+@@ -10,10 +10,10 @@
+ "POT-Creation-Date: 2012-03-11 13:37+0100\n"
+ "PO-Revision-Date: 2008-03-08 22:17+0100\n"
+ "Last-Translator: Ruben Nunez Francisco <ruben.nunez at tang-it.com>\n"
+-"Language-Team: <vdr at linuxtv.org>\n"
+-"Language: \n"
++"Language-Team: Spanish <vdr at linuxtv.org>\n"
++"Language: es\n"
+ "MIME-Version: 1.0\n"
+-"Content-Type: text/plain; charset=ISO-8859-15\n"
++"Content-Type: text/plain; charset=UTF-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+ 
+ msgid "Takes screenshots"
+diff -ru po.orig/fi_FI.po po/fi_FI.po
+--- po.orig/fi_FI.po	2012-05-13 17:54:33.000000000 +0300
++++ po/fi_FI.po	2012-05-15 00:08:07.557149269 +0300
+@@ -2,7 +2,7 @@
+ # Copyright (C) 2007 Klaus Schmidinger <kls at cadsoft.de>
+ # This file is distributed under the same license as the VDR package.
+ # Hannu Savolainen <hannu at opensound.com>, 2002
+-# Jaakko Hyv�tti <jaakko at hyvatti.iki.fi>, 2002
++# Jaakko Hyvätti <jaakko at hyvatti.iki.fi>, 2002
+ # Niko Tarnanen <niko.tarnanen at hut.fi>, 2003
+ # Rolf Ahrenberg <rahrenbe at cc.hut.fi>, 2003
+ #
+@@ -13,10 +13,10 @@
+ "POT-Creation-Date: 2012-03-11 13:37+0100\n"
+ "PO-Revision-Date: 2008-03-08 22:17+0100\n"
+ "Last-Translator: Rolf Ahrenberg <rahrenbe at cc.hut.fi>\n"
+-"Language-Team: <vdr at linuxtv.org>\n"
+-"Language: \n"
++"Language-Team: Finnish <vdr at linuxtv.org>\n"
++"Language: fi\n"
+ "MIME-Version: 1.0\n"
+-"Content-Type: text/plain; charset=ISO-8859-15\n"
++"Content-Type: text/plain; charset=UTF-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+ 
+ msgid "Takes screenshots"
+diff -ru po.orig/it_IT.po po/it_IT.po
+--- po.orig/it_IT.po	2012-05-13 17:54:33.000000000 +0300
++++ po/it_IT.po	2012-05-15 00:06:02.642789342 +0300
+@@ -12,8 +12,8 @@
+ "POT-Creation-Date: 2012-03-11 13:37+0100\n"
+ "PO-Revision-Date: 2009-03-17 23:43+0100\n"
+ "Last-Translator: Diego Pierotto <vdr-italian at tiscali.it>\n"
+-"Language-Team:  <vdr at linuxtv.org>\n"
+-"Language: \n"
++"Language-Team: Italian <vdr at linuxtv.org>\n"
++"Language: it\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=utf-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+diff -ru po.orig/tr_TR.po po/tr_TR.po
+--- po.orig/tr_TR.po	2012-05-13 17:54:33.000000000 +0300
++++ po/tr_TR.po	2012-05-15 00:07:53.717331415 +0300
+@@ -10,10 +10,10 @@
+ "POT-Creation-Date: 2012-03-11 13:37+0100\n"
+ "PO-Revision-Date: 2008-03-08 22:17+0100\n"
+ "Last-Translator: Oktay Yolgecen <oktay_73 at yahoo.de>\n"
+-"Language-Team: <vdr at linuxtv.org>\n"
+-"Language: \n"
++"Language-Team: Turkish <vdr at linuxtv.org>\n"
++"Language: tr\n"
+ "MIME-Version: 1.0\n"
+-"Content-Type: text/plain; charset=ISO-8859-9\n"
++"Content-Type: text/plain; charset=UTF-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+ 
+ msgid "Takes screenshots"
diff --git a/screenshot.patch b/screenshot.patch
new file mode 100644
index 0000000..4177bb6
--- /dev/null
+++ b/screenshot.patch
@@ -0,0 +1,22 @@
+--- screenshot-0.0.13/screenshot.c.orig	2012-05-12 23:19:58.619646403 +0200
++++ screenshot-0.0.13/screenshot.c	2012-05-12 23:20:26.562645049 +0200
+@@ -115,7 +115,7 @@
+ -------------------------------------------------------------------------------------------------*/
+ 
+ cScreenshotConfig::cScreenshotConfig(void) {
+-  strcpy(sPath, "/tmp");
++  strcpy(sPath, "/var/cache/vdr/screenshot");
+   iFileformat    = 1;
+   iQuality       = 95;
+   iResX          = 768;
+--- screenshot-0.0.14/README.orig       2012-05-15 17:37:37.122081566 +0200
++++ screenshot-0.0.14/README    2012-05-15 17:39:27.708076365 +0200
+@@ -12,7 +12,7 @@
+ ------------
+ With this plugin you can take still images of your screen. After installing
+ the plugin, a new mainmenu entry "Screenshot" will show up. Each time you
+-select this item, a file /tmp/title-yyyymmdd-hhmmss.jpg will be created,
++select this item, a file /var/cache/vdr/screenshot/title-yyyymmdd-hhmmss.jpg will be created,
+ where title is the current transmission or the recording currently replayed.
+
+ To get a screenshot with a single keypress, add a line like this to your
diff --git a/sources b/sources
index e69de29..2ed0cff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bd9e63d58bbc94196fc84448583ea036  vdr-screenshot-0.0.14.tar.bz2
diff --git a/vdr-screenshot.spec b/vdr-screenshot.spec
new file mode 100644
index 0000000..9f8aa38
--- /dev/null
+++ b/vdr-screenshot.spec
@@ -0,0 +1,81 @@
+%global pname     screenshot
+
+Name:             vdr-%{pname}
+Version:          0.0.14
+Release:          4%{?dist}
+Summary:          VDR plugin: Takes screenshots
+
+License:          GPL+
+URL:              http://www.joachim-wilke.de/vdr-screenshot.htm
+Source:           http://www.joachim-wilke.de/downloads/vdr-screenshot/%{name}-%{version}.tar.bz2
+Patch0:           %{pname}.patch
+# upstream reported that the *.po patch will be included in the next release. 
+Patch1:           %{pname}-po.patch
+BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:    vdr-devel >= 1.6.0-41
+Requires:         vdr(abi)%{?_isa} = %{vdr_apiversion}
+
+
+%description
+With this plugin you can take still images of your screen. After installing
+the plugin, a new mainmenu entry "Screenshot" will show up. Each time you
+select this item, a file /var/cache/vdr/screenshot/title-yyyymmdd-hhmmss.jpg
+will be created, where title is the current transmission or the recording
+currently replayed.
+
+%prep
+%setup -q -n %{pname}-%{version}
+chmod -c -x screenshot.c
+%patch0 -p1
+%patch1 -p0
+
+iconv -f iso-8859-1 -t utf-8 HISTORY > HISTORY.utf8 ; mv HISTORY.utf8 HISTORY
+
+%build
+make %{?_smp_mflags} AUTOCONFIG= LIBDIR=. LOCALEDIR=./locale \
+    VDRDIR=%{_libdir}/vdr all
+
+%install
+install -dm 755 $RPM_BUILD_ROOT%{vdr_plugindir}
+install -dm 755 $RPM_BUILD_ROOT%{vdr_cachedir}/screenshot
+install -pm 755 libvdr-*.so.%{vdr_apiversion} $RPM_BUILD_ROOT%{vdr_plugindir}
+
+# Locale
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/locale
+cp -pR locale/* $RPM_BUILD_ROOT%{_datadir}/locale
+%find_lang %{name}
+
+%files -f %{name}.lang
+%doc HISTORY COPYING README
+%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
+%attr(-,%{vdr_user},root) %dir %{vdr_cachedir}/screenshot/
+
+%changelog
+* Mon May 21 2012 Martin Gansser <linux4martin at gmx.de> 0.0.14-4.fc17
+- fixed spurious-executable-perm of screenshot.c 
+
+* Tue May 15 2012 Martin Gansser <linux4martin at gmx.de> 0.0.14-3.fc17
+- picture-path and readme patch are merged
+- more permission cleanups
+
+* Tue May 15 2012 Martin Gansser <linux4martin at gmx.de> 0.0.14-2.fc17
+- added Translation Content-Type charset fixes
+- added readme patch
+- fixed correct permissons for vdr_cachedir
+
+* Sun May 13 2012 Martin Gansser <linux4martin at gmx.de> 0.0.14-1.fc17
+- new release
+
+* Sat May 12 2012 Martin Gansser <linux4martin at gmx.de> 0.0.13-3.fc17
+- fixed dependencies
+- removed strip command and comments out debug_package in rpmmacros
+- added patch to store images in /var/cache/vdr/screenshot
+
+* Tue May 08 2012 Martin Gansser <linux4martin at gmx.de> 0.0.13-2.fc17
+- solved unstripped-binary-or-object warning and mixed-use-of-spaces-and-tabs
+- removed unneeded global definitions
+
+* Mon Apr 30 2012 Martin Gansser <linux4martin at gmx.de> 0.0.13-1.fc17
+- initial release for fc17
+


More information about the scm-commits mailing list