Browse Source

cmake: Updated RPM packaging config to match DEB.

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
Henry Bruce 9 years ago
parent
commit
b08da722f7
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      CMakeLists.txt

+ 3
- 4
CMakeLists.txt View File

@@ -182,10 +182,9 @@ if (RPM)
182 182
   message (INFO " - RPM packaging enabled for ${DETECTED_ARCH}")
183 183
   set(CPACK_PACKAGE_VERSION ${VERSION})
184 184
   set(CPACK_GENERATOR "RPM")
185
-  set(CPACK_PACKAGE_NAME "libupm${upm_VERSION_MAJOR}")
186
-  set(CPACK_PACKAGE_RELEASE 1)
185
+  set(CPACK_PACKAGE_NAME "upm")
187 186
   set(CPACK_PACKAGE_VERSION
188
-      "${upm_VERSION_MAJOR}.${upm_VERSION_MINOR}.${upm_VERSION_PATCH}-${upm_PACKAGE_ON_TAG}${VERSION_COMMIT}")
187
+      "${upm_VERSION_MAJOR}.${upm_VERSION_MINOR}.${upm_VERSION_PATCH}.${upm_PACKAGE_ON_TAG}${VERSION_COMMIT}")
189 188
   set(CPACK_PACKAGE_CONTACT "Intel IoT-Devkit")
190 189
   set(CPACK_PACKAGE_VENDOR "Intel IoT-Devkit")
191 190
   set(CPACK_RPM_PACKAGE_REQUIRES "mraa >= ${MRAA_VERSION}")
@@ -196,7 +195,7 @@ if (RPM)
196 195
     COMMAND tr \\n \\t
197 196
     COMMAND sed  -e s/\\t//
198 197
     OUTPUT_VARIABLE DIST_TAG)
199
-  set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${DIST_TAG}.${DETECTED_ARCH}")
198
+  set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}.${DIST_TAG}.${DETECTED_ARCH}")
200 199
   include(CPack)
201 200
 endif()
202 201