File package_name.patch of Package mariadb-connector-odbc
Author: Adam Majer <amajer@suse.de>
Date: Thu Mar 23 11:56:00 CET 2017
Summary: Set package name to SUSE package name
This is done so things are installed in right places with correct names.
Index: mariadb-connector-odbc-3.0.2-ga-src/CMakeLists.txt
===================================================================
--- mariadb-connector-odbc-3.0.2-ga-src.orig/CMakeLists.txt
+++ mariadb-connector-odbc-3.0.2-ga-src/CMakeLists.txt
@@ -16,7 +16,7 @@
# or write to the Free Software Foundation, Inc.,
# 51 Franklin St., Fifth Floor, Boston, MA 02110, USA
# *************************************************************************************/
-PROJECT(mariadb_connector_odbc C)
+PROJECT(mariadb-connector-odbc C)
cmake_minimum_required(VERSION 2.8)
@@ -261,7 +261,7 @@ IF(WIN32)
ENDIF()
-SET(CPACK_PACKAGE_NAME "mariadb_connector_odbc")
+SET(CPACK_PACKAGE_NAME "mariadb-connector-odbc")
IF(WIN32)
ADD_SUBDIRECTORY(wininstall)
ELSE()
@@ -279,7 +279,7 @@ ELSE()
${CMAKE_SOURCE_DIR}/COPYING
${CMAKE_SOURCE_DIR}/README
DESTINATION
- ./share/doc/${CPACK_PACKAGE_NAME}/)
+ ./share/doc/packages/${CPACK_PACKAGE_NAME}/)
ENDIF()
# Tests. Checking if we have them. May be not the case if we are building from source package