mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
RPM packaging fixes for FC31
Obsoletes: cannot contain (x86-64) anymore Python shebang must be specific
This commit is contained in:
parent
ba95c303e3
commit
dc7d0b5030
1 changed files with 5 additions and 3 deletions
|
@ -195,7 +195,7 @@ MACRO(ALTERNATIVE_NAME real alt)
|
|||
SET(p "CPACK_RPM_${real}_PACKAGE_PROVIDES")
|
||||
SET(${p} "${${p}} ${alt} = ${ver} ${alt}%{?_isa} = ${ver} config(${alt}) = ${ver}")
|
||||
SET(o "CPACK_RPM_${real}_PACKAGE_OBSOLETES")
|
||||
SET(${o} "${${o}} ${alt} ${alt}%{?_isa}")
|
||||
SET(${o} "${${o}} ${alt}")
|
||||
ENDMACRO(ALTERNATIVE_NAME)
|
||||
|
||||
ALTERNATIVE_NAME("devel" "mysql-devel")
|
||||
|
@ -215,8 +215,9 @@ ELSEIF(RPM MATCHES "fedora" OR RPM MATCHES "(rhel|centos)7")
|
|||
ALTERNATIVE_NAME("server" "mariadb-server")
|
||||
ALTERNATIVE_NAME("server" "mysql-compat-server")
|
||||
ALTERNATIVE_NAME("test" "mariadb-test")
|
||||
ELSEIF(RPM MATCHES "(rhel|centos)8")
|
||||
SET(PYTHON_SHEBANG "/usr/bin/python3")
|
||||
ENDIF()
|
||||
IF(RPM MATCHES "fedora31" OR RPM MATCHES "(rhel|centos)8")
|
||||
SET(PYTHON_SHEBANG "/usr/bin/python3" CACHE STRING "python shebang")
|
||||
ENDIF()
|
||||
|
||||
# If we want to build build MariaDB-shared-compat,
|
||||
|
@ -249,6 +250,7 @@ IF(compat53 AND compat101)
|
|||
|
||||
STRING(REPLACE "\n" " " compat_provides "${compat_provides}")
|
||||
STRING(REPLACE "\n" " " compat_obsoletes "${compat_obsoletes}")
|
||||
STRING(REGEX REPLACE "[^ ]+\\([^ ]+ *" "" compat_obsoletes "${compat_obsoletes}")
|
||||
SETA(CPACK_RPM_compat_PACKAGE_PROVIDES "${compat_provides}")
|
||||
SETA(CPACK_RPM_compat_PACKAGE_OBSOLETES "${compat_obsoletes}")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue