Author: pterjan
Date: Mon Feb 5 23:11:02 2007
New Revision: 116515
Added:
packages/cooker/inkscape/current/SOURCES/inkscape-0.45-python_gcc412.patch
packages/cooker/inkscape/current/SOURCES/inkscape-0.45.tar.bz2 (contents,
props changed)
Removed:
packages/cooker/inkscape/current/SOURCES/inkscape-0.44.1.tar.bz2
Modified:
packages/cooker/inkscape/current/SPECS/inkscape.spec
Log:
- 0.45
- fix build with new GCC
Added:
packages/cooker/inkscape/current/SOURCES/inkscape-0.45-python_gcc412.patch
==============================================================================
--- (empty file)
+++ packages/cooker/inkscape/current/SOURCES/inkscape-0.45-python_gcc412.patch
Mon Feb 5 23:11:02 2007
@@ -0,0 +1,25 @@
+--- ./src/extension/script/inkscape_py_wrap.cpp.ori 2007-02-05
22:50:41.000000000 +0100
++++ ./src/extension/script/inkscape_py_wrap.cpp 2007-02-05
22:51:01.000000000 +0100
+@@ -802,7 +802,7 @@
+ obj = pyobj;
+ if (PyCFunction_Check(obj)) {
+ /* here we get the method pointer for callbacks */
+- char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
++ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+ c = doc ? strstr(doc, "swig_ptr: ") : 0;
+ if (c) {
+ c += 10;
+@@ -977,11 +977,11 @@
+ swig_type_info **types_initial) {
+ int i;
+ for (i = 0; methods[i].ml_name; ++i) {
+- char *c = methods[i].ml_doc;
++ const char *c = methods[i].ml_doc;
+ if (c && (c = strstr(c, "swig_ptr: "))) {
+ int j;
+ swig_const_info *ci = 0;
+- char *name = c + 10;
++ const char *name = c + 10;
+ for (j = 0; const_table[j].type; j++) {
+ if (strncmp(const_table[j].name, name,
+ strlen(const_table[j].name)) == 0) {
Added: packages/cooker/inkscape/current/SOURCES/inkscape-0.45.tar.bz2
==============================================================================
Binary file. No diff available.
Modified: packages/cooker/inkscape/current/SPECS/inkscape.spec
==============================================================================
--- packages/cooker/inkscape/current/SPECS/inkscape.spec (original)
+++ packages/cooker/inkscape/current/SPECS/inkscape.spec Mon Feb 5
23:11:02 2007
@@ -1,5 +1,5 @@
%define name inkscape
-%define version 0.44.1
+%define version 0.45
%define rel 1
%define release %mkrel %{rel}
@@ -12,6 +12,7 @@
URL: http://inkscape.sourceforge.net/
Source:
http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: %{name}-icons.tar.bz2
+Patch0: inkscape-0.45-python_gcc412.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: png-devel
BuildRequires: libxml2-devel >= 2.6.0
@@ -44,6 +45,7 @@
%prep
%setup -q -a1
+%patch0 -p1
sed -i 's/gc_libs=""/gc_libs="-lpthread -ldl"/' configure
%build