Skip to content

Commit

Permalink
Fixed an error that occurred when trying to install the GrandOrgue RP…
Browse files Browse the repository at this point in the history
…M package #1859 (#1860)
  • Loading branch information
nanoufo committed Apr 11, 2024
1 parent 75c4abb commit bc713e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Fixed an error that occurred when trying to install the GrandOrgue RPM package https://github.com/GrandOrgue/grandorgue/issues/1859
# 3.14.0 (2024-03-29)
- Fixed crash on loading an organ without a pedal but wit a unison-off coupler https://github.com/GrandOrgue/grandorgue/issues/1846
- Changed displaying of the right part of paths https://github.com/GrandOrgue/grandorgue/issues/1663
Expand Down
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,17 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CPACK_RPM_DEMO_FILE_NAME RPM-DEFAULT)
string (REPLACE ";" " " CPACK_RPM_PACKAGE_OBSOLETES "${OTHER_PACKAGE_NAMES}")

# On Ubuntu rpmbuild generates a libcurl.so.4(CURL_OPENSSL_4)(64bit) requirement for libcurl.
# In Fedora libcurl is based on openssl, but libcurl package does not provide such symbol.
# As a workaround, we set the right symbol manually.
set(CPACK_RPM_SPEC_MORE_DEFINE "%global __requires_exclude libcurl.*")
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64" OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
# dnf tries to install the 32-bit package on x86_64 if '()(64bit)' is omitted
set(CPACK_RPM_PACKAGE_REQUIRES "libcurl.so.4()(64bit)")
else()
set(CPACK_RPM_PACKAGE_REQUIRES "libcurl.so.4")
endif()

# prevent rpmlint errors
set(
CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
Expand Down

0 comments on commit bc713e0

Please sign in to comment.