Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
deafe7a7
Commit
deafe7a7
authored
Sep 23, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RPM fixes for CentOS7 and Fedora
parent
0f8a1a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
17 deletions
+10
-17
cmake/cpack_rpm.cmake
cmake/cpack_rpm.cmake
+10
-17
No files found.
cmake/cpack_rpm.cmake
View file @
deafe7a7
...
...
@@ -100,8 +100,8 @@ SET(ignored
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/aclocal"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/doc"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/man"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/man/man1"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/man/man8"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/man/man1
*
"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/man/man8
*
"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/pkgconfig"
)
...
...
@@ -145,18 +145,6 @@ SETA(CPACK_RPM_server_PACKAGE_PROVIDES
"msqlormysql"
"mysql-server"
)
SETA
(
CPACK_RPM_compat_PACKAGE_OBSOLETES
"mysql-shared"
"MySQL-shared-standard"
"MySQL-shared-pro"
"MySQL-shared-pro-cert"
"MySQL-shared-pro-gpl"
"MySQL-shared-pro-gpl-cert"
"MySQL-shared"
)
SETA
(
CPACK_RPM_compat_PACKAGE_PROVIDES
"MySQL-shared"
"mysql-shared"
)
SETA
(
CPACK_RPM_test_PACKAGE_OBSOLETES
"MySQL-test"
)
SETA
(
CPACK_RPM_test_PACKAGE_PROVIDES
...
...
@@ -215,7 +203,6 @@ ELSEIF(RPM MATCHES "fedora" OR RPM MATCHES "(rhel|centos)7")
ALTERNATIVE_NAME
(
"shared"
"mariadb-libs"
)
ALTERNATIVE_NAME
(
"shared"
"mysql-libs"
)
ALTERNATIVE_NAME
(
"test"
"mariadb-test"
)
SET
(
CPACK_RPM_common_PACKAGE_CONFLICTS
"mariadb-libs < 1:%{version}-%{release}"
)
ENDIF
()
# workaround for lots of perl dependencies added by rpmbuild
...
...
@@ -266,12 +253,17 @@ IF(compat53 AND compat101)
EXECUTE_PROCESS
(
COMMAND rpm -q --provides -p
"
${
CMAKE_SOURCE_DIR
}
/
${
compat101
}
"
COMMAND grep
"=.*10
\\
.1"
ERROR_QUIET
OUTPUT_VARIABLE compat_provides
)
EXECUTE_PROCESS
(
COMMAND rpm -q --obsoletes -p
"
${
CMAKE_SOURCE_DIR
}
/
${
compat101
}
"
ERROR_QUIET
OUTPUT_VARIABLE compat_obsoletes
)
STRING
(
REPLACE
"
\n
"
" "
compat_provides
"
${
compat_provides
}
"
)
STRING
(
REPLACE
"
\n
"
" "
compat_obsoletes
"
${
compat_obsoletes
}
"
)
SETA
(
CPACK_RPM_compat_PACKAGE_PROVIDES
"
${
compat_provides
}
"
)
SETA
(
CPACK_RPM_compat_PACKAGE_OBSOLETES
"
${
compat_obsoletes
}
"
)
SET
(
CPACK_COMPONENTS_ALL
${
CPACK_COMPONENTS_ALL
}
Compat
)
...
...
@@ -280,8 +272,9 @@ IF(compat53 AND compat101)
# And the latter conflicts with our rpms.
# Make sure that for these distribuions all our rpms require
# MariaDB-compat, that will replace mysql-libs-5.1
IF
(
RPM MATCHES
"(rhel|centos)
6
"
)
IF
(
RPM MATCHES
"(rhel|centos)
[67]
"
)
SET
(
CPACK_RPM_common_PACKAGE_REQUIRES
"MariaDB-compat"
)
SET
(
CPACK_RPM_compat_PACKAGE_CONFLICTS
"mariadb-libs < 1:10.1.0"
)
ENDIF
()
ENDIF
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment