[smokekde] install kde-config.xml in correct directory

Than Ngo than at fedoraproject.org
Tue Aug 2 13:52:45 UTC 2011


commit c2f168277e2b2c168383415e82f0ef7e94436efb
Author: Than Ngo <than at redhat.com>
Date:   Tue Aug 2 15:54:23 2011 +0200

    install kde-config.xml in correct directory

 smokekde-4.7.0-install.patch |    9 +++++++++
 smokekde.spec                |    4 +++-
 2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/smokekde-4.7.0-install.patch b/smokekde-4.7.0-install.patch
new file mode 100644
index 0000000..c59e6ac
--- /dev/null
+++ b/smokekde-4.7.0-install.patch
@@ -0,0 +1,9 @@
+diff -up smokekde-4.7.0/kdecore/CMakeLists.txt.orig smokekde-4.7.0/kdecore/CMakeLists.txt
+--- smokekde-4.7.0/kdecore/CMakeLists.txt.orig	2011-08-02 15:02:17.000000000 +0200
++++ smokekde-4.7.0/kdecore/CMakeLists.txt	2011-08-02 15:08:39.000000000 +0200
+@@ -80,4 +80,4 @@ target_link_libraries(smokekdecore
+ set_target_properties(smokekdecore PROPERTIES VERSION 3.0.0 SOVERSION 3 )
+ install(TARGETS smokekdecore DESTINATION ${LIB_INSTALL_DIR} )
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../kdecore_smoke.h DESTINATION include/smoke)
+-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kde-config.xml DESTINATION share/${SMOKE_GEN_BIN})
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kde-config.xml DESTINATION share/smokegen)
diff --git a/smokekde.spec b/smokekde.spec
index 8fee181..388e5d9 100644
--- a/smokekde.spec
+++ b/smokekde.spec
@@ -7,6 +7,8 @@ Group: Development/Languages
 License: LGPLv2+
 URL: http://www.kde.org
 Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
+# install kde-config.xml in correct directory
+Patch0: smokekde-4.7.0-install.patch
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildRequires:	cmake
@@ -42,7 +44,7 @@ This package includes the header files.
 
 %prep
 %setup -q
-
+%patch0 -p1 -b .install
 
 %build
 mkdir -p %{_target_platform}


More information about the scm-commits mailing list