rpms/vdr-text2skin/devel vdr-text2skin-1.1cvs-cvsfixes.patch, NONE, 1.1 vdr-text2skin-1.1cvs-freetype22.patch, NONE, 1.1 vdr-text2skin-1.1cvs-skindir.patch, NONE, 1.1 vdr-text2skin.conf, NONE, 1.1 vdr-text2skin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ville Skytta (scop) fedora-extras-commits at redhat.com
Mon Apr 23 17:40:17 UTC 2007


Author: scop

Update of /cvs/extras/rpms/vdr-text2skin/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1744/devel

Modified Files:
	.cvsignore sources 
Added Files:
	vdr-text2skin-1.1cvs-cvsfixes.patch 
	vdr-text2skin-1.1cvs-freetype22.patch 
	vdr-text2skin-1.1cvs-skindir.patch vdr-text2skin.conf 
	vdr-text2skin.spec 
Log Message:
Initial import (#216353)

vdr-text2skin-1.1cvs-cvsfixes.patch:

--- NEW FILE vdr-text2skin-1.1cvs-cvsfixes.patch ---
--- status.c	3 Jun 2005 08:53:13 -0000	1.10
+++ status.c	17 Mar 2006 18:25:57 -0000	1.11
@@ -29,14 +29,16 @@
 	mNextRecording    = 0;
 }
 
-void cText2SkinStatus::Replaying(const cControl* /*Control*/, const char *Name) {
+void cText2SkinStatus::Replaying(const cControl* /*Control*/, const char *Name,
+								 const char *FileName, bool On) 
+{
 	Dprintf("cText2SkinStatus::Replaying(%s)\n", Name);
 	eReplayMode oldMode = mReplayMode;
 
 	if (mRender != NULL)
 		mRender->UpdateLock();
 
-	if (Name != NULL) {
+	if (On) {
 		mReplayMode = replayMPlayer;
 		if (strlen(Name) > 6 && Name[0]=='[' && Name[3]==']' && Name[5]=='(') {
 			int i;
@@ -83,7 +85,8 @@
 	}
 }
 
-void cText2SkinStatus::Recording(const cDevice *Device, const char *Name) 
+void cText2SkinStatus::Recording(const cDevice *Device, const char *Name,
+								 const char *FileName, bool On) 
 {
 	if (mRender != NULL)
 		mRender->UpdateLock();
--- status.h	3 Jun 2005 08:53:13 -0000	1.7
+++ status.h	17 Mar 2006 18:25:57 -0000	1.8
@@ -39,8 +39,10 @@
 	int               mLastLanguage;
 
 protected:
-	virtual void Replaying(const cControl *Control, const char *Name);
-	virtual void Recording(const cDevice *Device, const char *Name);
+	virtual void Replaying(const cControl *Control, const char *Name, 
+						   const char *FileName, bool On);
+	virtual void Recording(const cDevice *Device, const char *Name, 
+						   const char *FileName, bool On);
 	virtual void OsdClear(void);
 
 public:
--- xml/xml.c	19 Dec 2004 22:03:49 -0000	1.1.1.1
+++ xml/xml.c	4 Sep 2006 20:51:06 -0000	1.3
@@ -38,7 +38,7 @@
 	buffer = new char [size];
 	f.read(buffer, size);
 	f.close();
-	data = buffer;
+	data.assign(buffer, size);
 	delete[] buffer;
 	nodestartcb  = NULL;
 	nodeendcb    = NULL;

vdr-text2skin-1.1cvs-freetype22.patch:

--- NEW FILE vdr-text2skin-1.1cvs-freetype22.patch ---
Index: graphtft/font.c
===================================================================
RCS file: /var/cvsroot/text2skin/graphtft/font.c,v
retrieving revision 1.4
diff -u -r1.4 font.c
--- graphtft/font.c	30 Jan 2005 18:09:42 -0000	1.4
+++ graphtft/font.c	19 Nov 2006 15:04:06 -0000
@@ -139,20 +139,21 @@
 		 error = FT_Load_Glyph( _face, glyph_index, FT_LOAD_DEFAULT ); 
 		 if ( error ) continue; /* ignore errors */  
 		 
-		 // convert to a mono bitmap
-		 error = FT_Render_Glyph( _face->glyph, ft_render_mode_mono ); 
-		 if ( error ) continue;
-		
 		// now, convert to vdr font data
 		int width = (_slot->metrics.horiAdvance / 64) + 1;
 		int bearingX = (_slot->metrics.horiBearingX / 64) +1;
 		width = (width > (int)sizeof(cFont::tPixelData) * 8) ? (((int)sizeof(cFont::tPixelData) * 8)-2) :width ;
-		int  top = _slot->bitmap_top;
-		int  y_off = Size - top;
 
 		font_data[(num_char_array*num_rows)+0]=width;
 		font_data[(num_char_array*num_rows)+1]=num_rows_global;
 
+		// convert to a mono bitmap
+		error = FT_Render_Glyph( _face->glyph, ft_render_mode_mono );
+		if ( error ) continue;
+
+		int  top = _slot->bitmap_top;
+		int  y_off = Size - top;
+
 		unsigned char *bmp = _slot->bitmap.buffer;
 		
       		for (int y = 0; y < _slot->bitmap.rows; ++y , y_off++) {

vdr-text2skin-1.1cvs-skindir.patch:

--- NEW FILE vdr-text2skin-1.1cvs-skindir.patch ---
--- 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;
 }
 


--- NEW FILE vdr-text2skin.conf ---
# Configuration snippet for vdr-text2skin                            -*- sh -*-
#
# Add command line options to pass to the text2skin plugin to PLUGIN_OPTIONS.

PLUGIN_OPTIONS=""


--- NEW FILE vdr-text2skin.spec ---
%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 cvs 20051217

Name:           vdr-%{pname}
Version:        1.1
Release:        18.%{cvs}cvs%{?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
Source1:        %{name}.conf
Patch0:         %{name}-1.1cvs-cvsfixes.patch
Patch1:         %{name}-1.1cvs-freetype22.patch
Patch2:         %{name}-1.1cvs-skindir.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
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 -p0
%patch1 -p0
sed -e 's|/usr/share/vdr/|%{datadir}/|' %{PATCH2} | patch -p1
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
sed -i -e s/VDRVERSION/APIVERSION/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}
install -Dpm 644 %{SOURCE1} \
    $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
cd ..
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
* 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.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/vdr-text2skin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	23 Apr 2007 17:04:59 -0000	1.1
+++ .cvsignore	23 Apr 2007 17:39:43 -0000	1.2
@@ -0,0 +1 @@
+vdr-text2skin-1.1cvs-20051217.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/vdr-text2skin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Apr 2007 17:04:59 -0000	1.1
+++ sources	23 Apr 2007 17:39:43 -0000	1.2
@@ -0,0 +1 @@
+f59bba08b3ded6c6a044e715e1669e0d  vdr-text2skin-1.1cvs-20051217.tgz




More information about the scm-commits mailing list