Skip to content

Commit

Permalink
Use new RPM exclude field.
Browse files Browse the repository at this point in the history
  • Loading branch information
clangen committed Feb 16, 2022
1 parent 1b1be1c commit 16d9f8f
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .cmake/GeneratePackage.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
if (${GENERATE_DEB} MATCHES "true" AND CMAKE_SYSTEM_NAME MATCHES "Linux")
if (${BUILD_STANDALONE} MATCHES "true")
set(RPM_ARCH "32bit")
if (${DEB_ARCHITECTURE} MATCHES "amd64")
set(RPM_ARCH "64bit")
endif()
message(STATUS "[generate-package] RPM_ARCH=${RPM_ARCH}")
set(CPACK_PACKAGE_FILE_NAME "musikcube_standalone_${musikcube_VERSION}_${DEB_ARCHITECTURE}")
else()
set(DEB_BOOST_VERSION "1.55.0")
Expand Down Expand Up @@ -78,19 +73,7 @@ if (${GENERATE_DEB} MATCHES "true" AND CMAKE_SYSTEM_NAME MATCHES "Linux")
set(CPACK_RPM_PACKAGE_ARCHITECTURE, ${DEB_ARCHITECTURE})
set(CPACK_RPM_PACKAGE_URL "https://www.musikcube.com")
set(CPACK_RPM_PACKAGE_VERSION "${musikcube_VERSION_MAJOR}.${musikcube_VERSION_MINOR}.${musikcube_VERSION_PATCH}")
set(CPAKE_RPM_PACKAGE_PROVIDES
"libboost_atomic.so.1.76.0()(${RPM_ARCH})"
"libboost_chrono.so.1.76.0()(${RPM_ARCH})"
"libboost_date_time.so.1.76.0()(${RPM_ARCH})"
"libboost_filesystem.so.1.76.0()(${RPM_ARCH})"
"libboost_system.so.1.76.0()(${RPM_ARCH})"
"libboost_thread.so.1.76.0()(${RPM_ARCH})"
"libmusikcore.so()(${RPM_ARCH})"
"libncursesw.so.6(NCURSESW6_5.1.20000708)(${RPM_ARCH})"
"libncursesw.so.6(NCURSESW6_5.3.20021019)(${RPM_ARCH})"
"libncursesw.so.6(NCURSESW6_5.7.20081102)(${RPM_ARCH})"
"libpanelw.so.6(NCURSESW6_5.1.20000708)(${RPM_ARCH})"
"libtinfo.so.6(NCURSES6_TINFO_5.0.19991023)(${RPM_ARCH})")
set(CPACK_RPM_REQUIRES_EXCLUDE_FROM "libboost_.*" "libmusikcore.so" "libncursesw.*" "libpanelw.*" "libtinfo.*")

include(CPack)
endif()

0 comments on commit 16d9f8f

Please sign in to comment.