Compare commits

...
Sign in to create a new pull request.

27 commits

Author SHA1 Message Date
Bill Nottingham
6d6afe56c6 Retire vdr-text2skin - no maintainer 2013-03-12 00:27:10 -04:00
Ville Skyttä
eb91206e9a Rebuild. 2013-03-03 22:07:48 +02:00
Ville Skyttä
64d7a8f41e Rebuild. 2013-02-19 00:37:32 +02:00
Dennis Gilmore
fb9e7cd314 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 20:42:07 -06:00
Rex Dieter
ffe032bcde rebuild (GraphicsMagick) 2012-12-24 09:17:08 -06:00
Ville Skyttä
647841af72 Rebuild. 2012-10-02 21:56:36 +03:00
Ville Skyttä
7a88457be4 Adapt to VDR 1.7.30. 2012-09-13 21:24:04 +03:00
Ville Skyttä
9a0f9b92bf Rebuild. 2012-07-19 00:50:39 +03:00
Ville Skyttä
37986847c0 Rebuild. 2012-06-28 00:14:06 +03:00
Ville Skyttä
914ac9730f Patch to build with VDR 1.7.27. 2012-03-27 23:55:41 +03:00
Ville Skyttä
0255b0510a Rebuild. 2012-03-11 19:10:43 +02:00
Ville Skyttä
0e025f778e Rebuild. 2012-03-06 23:17:45 +02:00
Ville Skyttä
30134e3ca3 Rebuild. 2012-02-21 00:40:43 +02:00
Ville Skyttä
a832f28f6c Rebuild. 2012-01-15 21:36:14 +02:00
Dennis Gilmore
cba4e87828 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 01:48:32 -06:00
Ville Skyttä
341d1e3cc8 Rebuild. 2011-12-04 22:04:00 +02:00
Ville Skyttä
7f9dbd1ca3 Update to 1.3.2.
Clean up specfile constructs no longer needed with Fedora or EL6+.
2011-11-06 19:26:12 +02:00
Ville Skyttä
4e3e8842a0 Patch to fix cache initialization crash when built with GCC 4.6.
Use __provides_exclude_from to filter Provides.
Clean up some no longer needed specfile cruft.
2011-05-31 23:17:31 +03:00
Dennis Gilmore
420aed8313 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-07 19:11:25 -06:00
Fedora Release Engineering
ed6630066d dist-git conversion 2010-07-29 14:56:20 +00:00
Ville Skyttä
a3b4a6190f - Update to 1.3.1 (#606725). 2010-06-22 15:55:08 +00:00
Bill Nottingham
459eb64c43 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:43:20 +00:00
Ville Skyttä
87b12c6166 - Update to 1.3 (#527682).
- Filter out autoprovided libvdr-*.so.* (if %filter_setup is available).
2009-10-07 20:34:27 +00:00
Ville Skyttä
900aad748f - Update to git revision 97c95bc for several bugfixes and better fonts
handling.
- Build with GraphicsMagick instead of imlib2 by default.
- Make vdr(abi) dependency ISA qualified.
- Install translations.
- Use %global instead of %define.
2009-09-01 20:23:41 +00:00
Jesse Keating
56a7c16fa7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 06:47:45 +00:00
Ville Skyttä
7c8d71f1de - Update to 1.2.
- Specfile cleanups.
- Fix spelling errors in description.
2009-07-08 21:42:56 +00:00
Jesse Keating
7ea638688d - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-26 00:01:27 +00:00
11 changed files with 2 additions and 436 deletions

View file

@ -1 +0,0 @@
vdr-text2skin-1.1-cvs_ext-0.10.tgz

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/*.tgz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: vdr-text2skin
# $Id$
NAME := vdr-text2skin
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

1
dead.package Normal file
View file

@ -0,0 +1 @@
This package was retired on 2013-03-11 due to a lack of a willing Fedora maintainer.

View file

@ -1 +0,0 @@
92d5e0612f59f16190db93ae817f08ae vdr-text2skin-1.1-cvs_ext-0.10.tgz

View file

@ -1,30 +0,0 @@
Index: cache.h
===================================================================
RCS file: /var/cvsroot/text2skin/cache.h,v
retrieving revision 1.7
diff -u -r1.7 cache.h
--- cache.h 31 Jan 2005 14:40:29 -0000 1.7
+++ cache.h 3 Jan 2008 23:07:01 -0000
@@ -5,6 +5,7 @@
#ifndef VDR_TEXT2SKIN_CACHE_HPP
#define VDR_TEXT2SKIN_CACHE_HPP
+#include <cstdlib>
#include <map>
#include <vector>
#include <string>
Index: xml/type.h
===================================================================
RCS file: /var/cvsroot/text2skin/xml/type.h,v
retrieving revision 1.7
diff -u -r1.7 type.h
--- xml/type.h 31 Jan 2005 14:39:23 -0000 1.7
+++ xml/type.h 3 Jan 2008 23:07:02 -0000
@@ -5,6 +5,7 @@
#ifndef VDR_TEXT2SKIN_XML_TYPE_H
#define VDR_TEXT2SKIN_XML_TYPE_H
+#include <cstdlib>
#include <string>
#include <vdr/tools.h>
#include <stdio.h>

View file

@ -1,45 +0,0 @@
--- text2skin-1.1-cvs/README.de~ 2004-12-20 00:03:08.000000000 +0200
+++ text2skin-1.1-cvs/README.de 2006-11-19 18:42:54.000000000 +0200
@@ -77,6 +77,9 @@
Wo die Skins hingehören:
------------------------
+*** rpm package note: this text2skin package has been patched to load skins
+*** from /usr/share/vdr/text2skin instead of the path documented below.
+
Wie Sie vielleicht wissen, hat VDR einen Unterordner "plugins" innerhalb seines
Konfigurationsordners, in dem alle Dateien, die zu Plugins gehören, enthalten
sein sollten. Wenn Sie nicht wissen, wo das sein könnte, schauen Sie in dem
--- text2skin-1.1-cvs/README~ 2005-01-31 16:39:45.000000000 +0200
+++ text2skin-1.1-cvs/README 2006-11-19 18:42:36.000000000 +0200
@@ -82,6 +82,9 @@
Where to put the skins:
-----------------------
+*** rpm package note: this text2skin package has been patched to load skins
+*** from /usr/share/vdr/text2skin instead of the path documented below.
+
As you might know, VDR has a subfolder "plugins" inside it's configuration
folder, where all plugin-related files should reside. If you don't know, where
this could be, look into the folder you gave to VDR with the -v parameter
@@ -109,6 +112,9 @@
Where to put the fonts:
-----------------------
+*** rpm package note: this text2skin package has been patched to load fonts
+*** from /usr/share/vdr/text2skin instead of the path documented below.
+
Font files (.ttf) can be placed either in the directory of the skin itself or
in a subfolder fonts inside the text2skin directory.
--- text2skin-1.1-cvs/common.c~ 2005-01-07 23:46:51.000000000 +0200
+++ text2skin-1.1-cvs/common.c 2006-11-19 18:38:31.000000000 +0200
@@ -8,7 +8,7 @@
const std::string &SkinPath(void)
{
// should never change
- static std::string path = cPlugin::ConfigDirectory(PLUGIN_NAME_I18N);
+ static std::string path = "/usr/share/vdr/text2skin";
return path;
}

View file

@ -1,73 +0,0 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 94_text2skin-1.1-cvs_ext-0.10-vdr-1.5.4.dpatch by Stone <syphyr@gmail.com>
##
## Thomas Günther <tom@toms-cafe.de>
## - Added compatibility to VDR < 1.5.4
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Changes for VDR >= 1.5.4.
@DPATCH@
--- text2skin/graphtft/font.c
+++ text2skin/graphtft/font.c
@@ -41,6 +41,7 @@
if ( _cache.find(CacheName) != _cache.end() )
return true;
+#if VDRVERSNUM < 10503
int error = FT_New_Face(_library, Filename.c_str(), format, &_face);
// every thing ok?
@@ -187,6 +188,17 @@
delete(font_data);
// Something went wrong!
return false;
+#else
+#if VDRVERSNUM < 10504
+ cFont* newFont = new cFreetypeFont(*AddDirectory(FONTDIR, Filename.c_str()), Size);
+#else
+ cFont* newFont = cFont::CreateFont(Filename.c_str(), Size);
+#endif
+ if ( newFont == NULL )
+ return false;
+ _cache[CacheName] = newFont;
+ return true;
+#endif
}
const cFont* cGraphtftFont::GetFont(string CacheName){
@@ -210,10 +222,12 @@
delete((*it).second);
_cache.clear();
+#if VDRVERSNUM < 10503
del_map::iterator del_it = _del.begin();
for (; del_it != _del.end(); ++del_it)
delete((*del_it).second);
_del.clear();
+#endif
}
cGraphtftFont GraphtftFont;
--- text2skin/graphtft/font.h
+++ text2skin/graphtft/font.h
@@ -24,7 +24,9 @@
{
private:
typedef map<string,cFont*> cache_map;
+#if VDRVERSNUM < 10503
typedef map<string,cFont::tPixelData*> del_map;
+#endif
public:
cGraphtftFont();
@@ -40,7 +42,9 @@
FT_Face _face;
FT_GlyphSlot _slot;
cache_map _cache;
+#if VDRVERSNUM < 10503
del_map _del;
+#endif
};

View file

@ -1,101 +0,0 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 95_text2skin-1.1-cvs_ext-0.10-20070620.3-vdr-1.5.7-1.dpatch by Stone <syphyr@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Changes for VDR >= 1.5.7.
@DPATCH@
--- text2skin-1.1-cvs_ext-0.10-20070620.3/font.c.orig 2007-08-13 08:54:41.000000000 -0700
+++ text2skin-1.1-cvs_ext-0.10-20070620.3/font.c 2007-08-13 09:17:43.000000000 -0700
@@ -31,8 +31,13 @@
const cFont *res = NULL;
#ifdef HAVE_FREETYPE
char *cachename;
+#if VDRVERSNUM >= 10507
+ asprintf(&cachename, "%s_%d_%d_%d", Filename.c_str(), Size, Width, I18nCurrentLanguage());
+ if (mFontCache.Load(Path + "/" + Filename, cachename, Size, I18nCurrentLanguage(), Width))
+#else
asprintf(&cachename, "%s_%d_%d_%d", Filename.c_str(), Size, Width, Setup.OSDLanguage);
if (mFontCache.Load(Path + "/" + Filename, cachename, Size, Setup.OSDLanguage, Width))
+#endif
res = mFontCache.GetFont(cachename);
else
esyslog("ERROR: Text2Skin: Couldn't load font %s:%d", Filename.c_str(), Size);
--- text2skin-1.1-cvs_ext-0.10-20070620.3/i18n.c.orig 2007-08-13 07:34:10.000000000 -0700
+++ text2skin-1.1-cvs_ext-0.10-20070620.3/i18n.c 2007-08-13 08:53:31.000000000 -0700
@@ -491,7 +491,11 @@
cText2SkinI18n::~cText2SkinI18n() {
for (int i = 0; mPhrases[i][0]; ++i) {
+#if VDRVERSNUM >= 10507
+ for (int j = 0; j < I18nLanguages()->Size(); ++j)
+#else
for (int j = 0; j < I18nNumLanguages; ++j)
+#endif
free((void*)mPhrases[i][j]);
}
free(mPhrases);
@@ -507,7 +511,11 @@
memset(&p, 0, sizeof(tI18nPhrase));
Text += 17;
+#if VDRVERSNUM >= 10507
+ for (i = 0; i < I18nLanguages()->Size(); ++i) {
+#else
for (i = 0; i < I18nNumLanguages; ++i) {
+#endif
char *langs = strdup(I18nLanguageCode(i));
char *ptr = langs, *ep;
std::string text;
@@ -525,7 +533,11 @@
}
int idx = mNumPhrases++;
+#if VDRVERSNUM >= 10507
+ for (i = 0; i < I18nLanguages()->Size(); ++i)
+#else
for (i = 0; i < I18nNumLanguages; ++i)
+#endif
if (!p[i]) p[i] = "";
mPhrases = (tI18nPhrase*)realloc(mPhrases, (mNumPhrases + 1) * sizeof(tI18nPhrase));
memcpy(mPhrases[idx], p, sizeof(tI18nPhrase));
@@ -539,7 +551,9 @@
bool cText2SkinI18n::Load(const std::string &Filename) {
if (cText2SkinFile::Load(Filename)) {
+#if VDRVERSNUM <= 10506
I18nRegister(mPhrases, mIdentity.c_str());
+#endif
return true;
}
return false;
--- text2skin-1.1-cvs_ext-0.10-20070620.3/status.c.orig 2007-08-13 09:54:04.000000000 -0700
+++ text2skin-1.1-cvs_ext-0.10-20070620.3/status.c 2007-08-13 09:57:10.000000000 -0700
@@ -130,8 +130,13 @@
void cText2SkinStatus::OsdClear(void)
{
+#if VDRVERSNUM >= 10507
+ if (I18nCurrentLanguage() != mLastLanguage) {
+ mLastLanguage = I18nCurrentLanguage();
+#else
if (Setup.OSDLanguage != mLastLanguage) {
mLastLanguage = Setup.OSDLanguage;
+#endif
cxString::Reparse();
}
--- text2skin-1.1-cvs_ext-0.10-20070620.3/text2skin.c.orig 2007-08-13 09:46:25.000000000 -0700
+++ text2skin-1.1-cvs_ext-0.10-20070620.3/text2skin.c 2007-08-13 10:30:11.000000000 -0700
@@ -49,7 +49,11 @@
bool cText2SkinPlugin::Start(void) {
RegisterI18n(Phrases);
+#if VDRVERSNUM >= 10507
+ Text2SkinStatus.SetLanguage(I18nCurrentLanguage());
+#else
Text2SkinStatus.SetLanguage(Setup.OSDLanguage);
+#endif
cText2SkinLoader::Start();
return true;
}

View file

@ -1,5 +0,0 @@
# Configuration snippet for vdr-text2skin -*- sh -*-
#
# Add command line options to pass to the text2skin plugin to PLUGIN_OPTIONS.
PLUGIN_OPTIONS=""

View file

@ -1,159 +0,0 @@
%define pname text2skin
%define plugindir %(vdr-config --plugindir 2>/dev/null || echo ERROR)
%define configdir %(vdr-config --configdir 2>/dev/null || echo ERROR)
%define datadir %(vdr-config --datadir 2>/dev/null || echo ERROR)
%define apiver %(vdr-config --apiversion 2>/dev/null || echo ERROR)
%define ext 0.10
Name: vdr-%{pname}
Version: 1.1
Release: 23.cvsext%{ext}%{?dist}
Summary: OSD skin plugin for VDR
Group: Applications/Multimedia
License: GPL+
URL: http://linux.kompiliert.net/index.php?view=text2skin
#Source0: http://linux.kompiliert.net/files/%{name}-%{version}.tgz
#Source0: http://linux.kompiliert.net/contrib/%{name}-%{version}cvs-%{cvs}.tgz
Source0: http://brougs78.vdr-developer.org/tmp/vdr-text2skin-%{version}-cvs_ext-%{ext}.tgz
Source1: %{name}.conf
Patch0: %{name}-1.1cvs-vdr154.patch
Patch1: %{name}-1.1cvs-vdr157.patch
Patch2: %{name}-1.1cvs-skindir.patch
Patch3: %{name}-1.1cvs-includes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if 0%{?_with_imagemagick:1}
BuildRequires: ImageMagick-c++-devel
%else
BuildRequires: imlib2-devel
%endif
BuildRequires: freetype-devel
BuildRequires: vdr-devel >= 1.3.47
BuildRequires: sed >= 3.95
BuildRequires: which
BuildRequires: gawk
Requires: vdr(abi) = %{apiver}
%description
This plugin is designed to load and interpret a set of files
describing the layout of VDR's on screen display and to make this
"skin" available to VDR via Setup -> OSD in the main menu. Of course
it is possible to load more than one text-based skin this way and to
choose between them while running VDR. All skins may be themeable
(you can create your own color-theme) and translateable as the author
of the skin wishes.
%prep
%setup -q -c
cd text2skin
%patch0 -p1
%patch1 -p1
sed -e 's|/usr/share/vdr/|%{datadir}/|' %{PATCH2} | patch -p1
%patch3 -p0
find . -depth -type d -name CVS | xargs rm -r
for f in HISTORY README.de Docs/*.txt ; do
iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
done
chmod -x contrib/*.pl
sed -i -e /strip/d -e /O2/d Makefile
sed -i -e '/^DVBDIR/d' -e 's|-I$(DVBDIR)\(/linux\)\?/include||g' Makefile
cd ..
%build
opts=
%if 0%{!?_with_imagemagick:1}
opts="HAVE_IMLIB2=1 HAVE_IMAGEMAGICK="
%endif
make -C text2skin %{?_smp_mflags} $opts LIBDIR=. VDRDIR=%{_libdir}/vdr all
%install
rm -rf $RPM_BUILD_ROOT
cd text2skin
install -dm 755 $RPM_BUILD_ROOT%{plugindir}
install -pm 755 libvdr-%{pname}.so.%{apiver} $RPM_BUILD_ROOT%{plugindir}
cd ..
install -Dpm 644 %{SOURCE1} \
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
install -dm 755 $RPM_BUILD_ROOT%{datadir}/text2skin/fonts
%clean
rm -rf $RPM_BUILD_ROOT
%pre
if [ $1 -gt 1 -a -d %{configdir}/plugins/text2skin ] ; then
# Migrate skins (can't overwrite a dir with a symlink)
mkdir -p %{datadir}/text2skin && \
cp -a %{configdir}/plugins/text2skin/* %{datadir}/text2skin || :
rm -rf %{configdir}/plugins/text2skin
fi
%files
%defattr(-,root,root,-)
%doc text2skin/CONTRIBUTORS text2skin/COPYING text2skin/HISTORY
%doc text2skin/README text2skin/Docs/*.txt text2skin/contrib/skin_to_10.pl
%lang(de) %doc text2skin/README.de
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
%{plugindir}/libvdr-%{pname}.so.%{apiver}
%{datadir}/text2skin/
%changelog
* Mon Apr 7 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.1-23.cvsext0.10
- Update to 1.1-cvs_ext-0.10.
- Build for VDR 1.6.0.
* Sun Apr 6 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.1-22.20051217cvs
- Apply VDR 1.5+ patches from e-tobi.net Debian package.
* Fri Jan 4 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.1-21.20051217cvs
- Fix build with gcc 4.3's cleaned up C++ headers.
* Wed Aug 22 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.1-20.20051217cvs
- BuildRequires: gawk for extracting APIVERSION.
* Tue Aug 7 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.1-19.20051217cvs
- License: GPL+
* Sun Apr 8 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.1-18.20051217cvs
- Grab potential XML parse buffer overflow fix from upstream CVS.
* Sun Nov 19 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.1-16.20051217cvs
- Migrate real skins directory to /usr/share/vdr/text2skin.
- Patch for freetype 2.2 compatibility.
* Sat Nov 4 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.1-15.20051217
- Build with imlib2 instead of imagemagick by default due to #212478.
- Build for VDR 1.4.4.
* Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 1.1-14
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
* Sat Sep 23 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.1-13.20051217
- Rebuild for VDR 1.4.3.
* Sun Aug 6 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.1-12.20051217
- Rebuild for VDR 1.4.1-3.
* Sun Jun 11 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.1-11.20051217
- Rebuild for VDR 1.4.1.
* Sun Apr 30 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.1-10.20051217
- Rebuild for VDR 1.4.0.