File mono-kde4-fixes.patch of Package mono-kde4
Index: mono-kde4.spec
===================================================================
--- mono-kde4.spec (revision 3b4128a158bd9df40749a41627ed24b9)
+++ mono-kde4.spec (working copy)
@@ -31,10 +31,12 @@
Group: Development/Libraries/KDE
Summary: Mono bindings for KDE 4.x libraries
Version: 4.2.1
-Release: 1
+Release: 2
Source0: kdebindings-%version.tar.bz2
Patch0: 4_2_BRANCH.diff
Patch1: plasma_no_examples.diff
+Patch2: fix_qttest_sharp.patch
+Patch3: add_pc_files.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define is_mono 1
%define is_python 0
@@ -125,6 +127,8 @@
%setup -q -n kdebindings-%version
%patch0
%patch1
+%patch2
+%patch3
%build
rm -rf xparts php
@@ -330,6 +334,11 @@
/usr/bin/uics
/usr/include/qyoto
%_libdir/libqyotoshared.so
+%_libdir/pkgconfig/qyoto.pc
+%_libdir/pkgconfig/qtwebkit-sharp.pc
+%_libdir/pkgconfig/qttest-sharp.pc
+%_libdir/pkgconfig/qtuitools-sharp.pc
+%_libdir/pkgconfig/qtscript-sharp.pc
%files
%defattr(-,root,root)
Index: fix_qttest_sharp.patch
===================================================================
--- /dev/null
+++ fix_qttest_sharp.patch (working copy)
@@ -1,0 +1,16 @@
+--- csharp/qttest/src/QtTest.cs 2009/01/06 17:13:38 906699
++++ csharp/qttest/src/QtTest.cs 2009/03/03 19:14:27 934774
+@@ -7,10 +7,10 @@
+
+ public class InitQtTest {
+ [DllImport("libqttest-sharp", CharSet=CharSet.Ansi)]
+- static extern void Init_QtTest();
++ static extern void Init_qttest();
+
+ public static void InitSmoke() {
+- Init_QtTest();
++ Init_qttest();
+ }
+ }
+ }
+
Index: add_pc_files.patch
===================================================================
--- /dev/null
+++ add_pc_files.patch (working copy)
@@ -1,0 +1,75 @@
+--- /dev/null 2009-02-27 10:53:36.000000000 -0800.dll
++++ csharp/qyoto/qyoto.pc 2009-02-22 17:54:58.000000000 -0800
+@@ -0,0 +1,4 @@
++Name: Qyoto
++Description: Qt .NET/Mono bindings
++Version: 4.4.0
++Libs: -r:/usr/lib/mono/2.0/qt-dotnet.dll
+--- csharp/qyoto/CMakeLists.txt 2009/02/20 18:27:20 929132
++++ csharp/qyoto/CMakeLists.txt 2009/02/20 18:31:49 929133
+@@ -59,6 +59,8 @@
+ src/qyoto.h src/qyotosmokebinding.h src/signalreturnvalue.h src/slotreturnvalue.h
+ src/smokeqyoto.h src/virtualmethodcall.h src/virtualmethodreturnvalue.h DESTINATION include/qyoto)
+ INSTALL_GAC(qt-dotnet)
++INSTALL(FILES ${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
++
+
+ ADD_SUBDIRECTORY(tools)
+ ADD_SUBDIRECTORY(examples EXCLUDE_FROM_ALL)
+--- /dev/null 2009-02-27 10:53:36.000000000 -0800
++++ csharp/qtwebkit/qtwebkit-sharp.pc 2009-02-22 17:54:55.000000000 -0800
+@@ -0,0 +1,4 @@
++Name: Qyoto - QtWebKit
++Description: Qt .NET/Mono bindings (QtWebKit)
++Version: 2.2.0
++Libs: -r:/usr/lib/mono/2.0/qtwebkit.dll
+--- csharp/qtwebkit/CMakeLists.txt 2009/02/20 18:27:20 929132
++++ csharp/qtwebkit/CMakeLists.txt 2009/02/20 18:31:49 929133
+@@ -22,3 +22,4 @@
+
+ INSTALL(TARGETS qtwebkit-sharp LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+ INSTALL_GAC(qtwebkit)
++INSTALL(FILES ${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
+--- /dev/null 2009-02-27 10:53:36.000000000 -0800
++++ csharp/qtuitools/qtuitools-sharp.pc 2009-02-22 17:54:55.000000000 -0800
+@@ -0,0 +1,4 @@
++Name: Qyoto - QtUiTools
++Description: Qt .NET/Mono bindings (QtUiTools)
++Version: 2.2.0
++Libs: -r:/usr/lib/mono/2.0/qtuitools.dll
+--- csharp/qtuitools/CMakeLists.txt 2009/02/20 18:27:20 929132
++++ csharp/qtuitools/CMakeLists.txt 2009/02/20 18:31:49 929133
+@@ -22,3 +22,4 @@
+
+ INSTALL(TARGETS qtuitools-sharp LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+ INSTALL_GAC(qtuitools)
++INSTALL(FILES ${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
+--- /dev/null 2009-02-27 10:53:36.000000000 -0800
++++ csharp/qttest/qttest-sharp.pc 2009-02-22 17:54:55.000000000 -0800
+@@ -0,0 +1,4 @@
++Name: Qyoto - QtTest
++Description: Qt .NET/Mono bindings (QtTest)
++Version: 2.2.0
++Libs: -r:/usr/lib/mono/2.0/qttest.dll
+--- csharp/qttest/CMakeLists.txt 2009/02/20 18:27:20 929132
++++ csharp/qttest/CMakeLists.txt 2009/02/20 18:31:49 929133
+@@ -22,3 +22,4 @@
+
+ INSTALL(TARGETS qttest-sharp LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+ INSTALL_GAC(qttest)
++INSTALL(FILES ${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
+--- /dev/null 2009-02-27 10:53:36.000000000 -0800
++++ csharp/qtscript/qtscript-sharp.pc 2009-02-22 17:54:55.000000000 -0800
+@@ -0,0 +1,4 @@
++Name: Qyoto - QtScript
++Description: Qt .NET/Mono bindings (QtScript)
++Version: 2.2.0
++Libs: -r:/usr/lib/mono/2.0/qtscript.dll
+--- csharp/qtscript/CMakeLists.txt 2009/02/20 18:27:20 929132
++++ csharp/qtscript/CMakeLists.txt 2009/02/20 18:31:49 929133
+@@ -23,3 +23,4 @@
+
+ INSTALL(TARGETS qtscript-sharp LIBRARY DESTINATION ${LIB_INSTALL_DIR})
+ INSTALL_GAC(qtscript)
++INSTALL(FILES ${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
+