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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ce4d5fe5
Commit
ce4d5fe5
authored
Feb 17, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RPM: fix alternative provides/obsoletes - put the correct architecture and version
parent
8c718bf5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
cmake/cpack_rpm.cmake
cmake/cpack_rpm.cmake
+11
-6
No files found.
cmake/cpack_rpm.cmake
View file @
ce4d5fe5
...
...
@@ -30,7 +30,7 @@ SET(CPACK_COMPONENTS_ALL Server ManPagesServer IniFiles Server_Scripts
SET
(
CPACK_RPM_PACKAGE_NAME
"MariaDB"
)
SET
(
CPACK_PACKAGE_FILE_NAME
"
${
CPACK_RPM_PACKAGE_NAME
}
-
${
VERSION
}
-
${
RPM
}
-
${
CMAKE_SYSTEM_PROCESSOR
}
"
)
SET
(
CPACK_RPM_PACKAGE_RELEASE
1
)
# FIX: add distribution name here
SET
(
CPACK_RPM_PACKAGE_RELEASE
"1%{?dist}"
)
SET
(
CPACK_RPM_PACKAGE_LICENSE
"GPL"
)
SET
(
CPACK_RPM_PACKAGE_RELOCATABLE FALSE
)
SET
(
CPACK_RPM_PACKAGE_GROUP
"Applications/Databases"
)
...
...
@@ -125,10 +125,15 @@ SET(CPACK_RPM_test_PACKAGE_PROVIDES "MySQL-test mysql-test")
# Argh! Different distributions call packages differently, to be a drop-in replacement
# we have to fake distribution-speficic dependencies
MACRO
(
ALTERNATIVE_NAME real alt
)
SET
(
ver
"%{version}-%{release}"
)
IF
(
${
ARGV2
}
)
SET
(
ver
"
${
ARGV2
}
:
${
ver
}
"
)
ENDIF
()
SET
(
p
"CPACK_RPM_
${
real
}
_PACKAGE_PROVIDES"
)
SET
(
${
p
}
"
${${
p
}}
${
alt
}
${
alt
}
(x86-32)
${
alt
}
(x86-64) config(
${
alt
}
)
"
)
SET
(
${
p
}
"
${${
p
}}
${
alt
}
=
${
ver
}
${
alt
}
%{?_isa} =
${
ver
}
config(
${
alt
}
) =
${
ver
}
"
)
SET
(
o
"CPACK_RPM_
${
real
}
_PACKAGE_OBSOLETES"
)
SET
(
${
o
}
"
${${
o
}}
${
alt
}
"
)
SET
(
${
o
}
"
${${
o
}}
${
alt
}
${
alt
}
%{_isa}
"
)
ENDMACRO
(
ALTERNATIVE_NAME
)
IF
(
RPM MATCHES
"(rhel|centos)5"
)
...
...
@@ -136,9 +141,9 @@ IF(RPM MATCHES "(rhel|centos)5")
ELSEIF
(
RPM MATCHES
"(rhel|centos)6"
)
ALTERNATIVE_NAME
(
"client"
"mysql"
)
ALTERNATIVE_NAME
(
"shared"
"mysql-libs"
)
ELSEIF
(
RPM MATCHES
"fedora"
)
ALTERNATIVE_NAME
(
"client"
"mysql"
)
ALTERNATIVE_NAME
(
"shared"
"mysql-libs"
)
ELSEIF
(
RPM MATCHES
"fedora"
)
# epoch = 1 on fedora
ALTERNATIVE_NAME
(
"client"
"mysql"
1
)
ALTERNATIVE_NAME
(
"shared"
"mysql-libs"
1
)
ENDIF
()
# workaround for lots of perl dependencies added by rpmbuild
...
...
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