summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Reidel <mark.reidel@heg.com>2018-01-02 23:41:43 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2018-01-03 19:22:49 +0100
commit49b7c327fcd5e615faddb18056535828e45bd155 (patch)
treecec8b67381897275b06ee87756849a25482ab8cb
parent072f3148474b703957702a9ba085861b1e1cae09 (diff)
Add support for creating an RPM package
-rw-r--r--CMakeLists.txt20
1 files changed, 19 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bdf5774..26f119c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,6 @@
1cmake_minimum_required(VERSION 3.0.2) 1cmake_minimum_required(VERSION 3.0.2)
2project(eovim LANGUAGES C VERSION 0.1.2.99) 2project(eovim LANGUAGES C VERSION 0.1.2.99)
3 3
4include(CPack)
5include(CheckTypeSize) 4include(CheckTypeSize)
6 5
7# Try to determine the architecture (32/64 bits) we are compiling for. This 6# Try to determine the architecture (32/64 bits) we are compiling for. This
@@ -48,6 +47,25 @@ configure_file(
48 "${BUILD_INCLUDE_DIR}/eovim/version.h" 47 "${BUILD_INCLUDE_DIR}/eovim/version.h"
49 @ONLY) 48 @ONLY)
50 49
50execute_process(COMMAND git tag -l WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE VERSION_STRING OUTPUT_STRIP_TRAILING_WHITESPACE)
51string(REGEX MATCHALL "[0-9.]+" VERSION_LIST "${VERSION_STRING}")
52list(GET VERSION_LIST -1 VERSION)
53set(CPACK_RPM_PACKAGE_RELOCATABLE TRUE)
54set(CPACK_PACKAGE_VERSION "${VERSION}")
55set(CPACK_GENERATOR "RPM")
56set(CPACK_PACKAGE_NAME "eovim")
57set(CPACK_PACKAGE_RELEASE 1)
58set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Eovim is the Enlightened Neovim")
59set(CPACK_PACKAGE_VENDOR "Jean Guyomarc'h")
60set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
61set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
62set(CPACK_RPM_PACKAGE_LICENSE "MIT")
63set(CPACK_RPM_PACKAGE_GROUP "Applications/Editors")
64set(CPACK_RPM_PACKAGE_DESCRIPTION "Eovim is the Enlightened Neovim. That's just an EFL GUI client for Neovim.")
65set(CPACK_RPM_PACKAGE_REQUIRES "neovim >= 0.2.0, efl >= 1.20")
66
67include(CPack)
68
51find_package(Eina REQUIRED) 69find_package(Eina REQUIRED)
52find_package(Eet REQUIRED) 70find_package(Eet REQUIRED)
53find_package(Evas REQUIRED) 71find_package(Evas REQUIRED)