[svn] r5205 - in trunk/rpms: . wxsvg

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Sat Feb 24 15:46:22 CET 2007


Author: thias
Date: 2007-02-24 15:46:22 +0100 (Sat, 24 Feb 2007)
New Revision: 5205

Added:
   trunk/rpms/wxsvg/
   trunk/rpms/wxsvg/wxsvg-1.0b7-freetype.patch
   trunk/rpms/wxsvg/wxsvg.spec
Log:
Initial import of wxsvg.


Added: trunk/rpms/wxsvg/wxsvg-1.0b7-freetype.patch
===================================================================
--- trunk/rpms/wxsvg/wxsvg-1.0b7-freetype.patch	                        (rev 0)
+++ trunk/rpms/wxsvg/wxsvg-1.0b7-freetype.patch	2007-02-24 14:46:22 UTC (rev 5205)
@@ -0,0 +1,47 @@
+diff -Naupr wxsvg-1.0b7.orig/src/freetype/SVGCanvasTextFreetype.cpp wxsvg-1.0b7/src/freetype/SVGCanvasTextFreetype.cpp
+--- wxsvg-1.0b7.orig/src/freetype/SVGCanvasTextFreetype.cpp	2007-01-19 18:28:08.000000000 +0100
++++ wxsvg-1.0b7/src/freetype/SVGCanvasTextFreetype.cpp	2007-01-19 18:28:04.000000000 +0100
+@@ -163,7 +163,7 @@ void wxSVGCanvasTextFreetype::RenderLine
+   }
+ }
+ 
+-static gint moveto(FT_Vector* to, gpointer data)
++static int moveto(const FT_Vector* to, gpointer data)
+ {
+   wxSVGCanvasTextFreetype* canvasText = (wxSVGCanvasTextFreetype*) data;
+   
+@@ -179,7 +179,7 @@ static gint moveto(FT_Vector* to, gpoint
+   return 0;
+ }
+ 
+-static gint lineto (FT_Vector* to, gpointer data)
++static int lineto (const FT_Vector* to, gpointer data)
+ {
+   wxSVGCanvasTextFreetype* canvasText = (wxSVGCanvasTextFreetype*) data;
+   if (!canvasText->m_endpath)
+@@ -192,7 +192,7 @@ static gint lineto (FT_Vector* to, gpoin
+   return 0;
+ }
+ 
+-static gint conicto(FT_Vector* ftcontrol, FT_Vector* to, gpointer data)
++static int conicto(const FT_Vector* ftcontrol, const FT_Vector* to, gpointer data)
+ {
+   wxSVGCanvasTextFreetype* canvasText = (wxSVGCanvasTextFreetype*) data;
+   if (!canvasText->m_endpath)
+@@ -207,8 +207,8 @@ static gint conicto(FT_Vector* ftcontrol
+   return 0;
+ }
+ 
+-static gint cubicto(FT_Vector* ftcontrol1, FT_Vector* ftcontrol2,
+- FT_Vector* to, gpointer data)
++static int cubicto(const FT_Vector* ftcontrol1, const FT_Vector* ftcontrol2,
++ const FT_Vector* to, gpointer data)
+ {
+   wxSVGCanvasTextFreetype* canvasText = (wxSVGCanvasTextFreetype*) data;
+   if (!canvasText->m_endpath)
+@@ -266,3 +266,5 @@ int wxSVGCanvasTextFreetype::RenderGlyph
+   return x_position;
+ }
+ 
++
++ 	  	 

Added: trunk/rpms/wxsvg/wxsvg.spec
===================================================================
--- trunk/rpms/wxsvg/wxsvg.spec	                        (rev 0)
+++ trunk/rpms/wxsvg/wxsvg.spec	2007-02-24 14:46:22 UTC (rev 5205)
@@ -0,0 +1,76 @@
+# $Id$
+# Authority: matthias
+
+%define prever b7
+
+Summary: C++ library to create, manipulate and render SVG files
+Name: wxsvg
+Version: 1.0
+Release: 0.1.%{prever}
+License: wxWidgets Library Licence
+Group: System Environment/Libraries
+URL: http://wxsvg.sourceforge.net/
+Source: http://dl.sf.net/wxsvg/wxsvg-%{version}%{prever}_1.tar.gz
+Patch0: wxsvg-1.0b7-freetype.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: libart_lgpl-devel
+BuildRequires: pkgconfig
+BuildRequires: pango-devel
+BuildRequires: freetype-devel
+BuildRequires: wxGTK-devel
+
+%description
+wxSVG is C++ library to create, manipulate and render SVG files.
+
+
+%package devel
+Summary: Development files for the wxSVG library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+wxSVG is C++ library to create, manipulate and render SVG files.
+
+
+%prep
+%setup -n %{name}-%{version}%{prever}
+%patch0 -p1 -b .freetype
+
+
+%build
+%configure --disable-static
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install DESTDIR=%{buildroot}
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-, root, root, 0755)
+%doc AUTHORS ChangeLog COPYING TODO
+%{_bindir}/svgview
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-, root, root, 0755)
+%{_includedir}/wxSVG/
+%{_includedir}/wxXML/
+%exclude %{_libdir}/*.la
+%{_libdir}/*.so
+
+
+%changelog
+* Fri Jan 19 2007 Matthias Saou <http://freshrpms.net/> 1.0-0.1.b7
+- Initial RPM release.
+


Property changes on: trunk/rpms/wxsvg/wxsvg.spec
___________________________________________________________________
Name: svn:keywords
   + Id



More information about the svn-commits mailing list