Merge lp:~ignacio-nin/percona-server/5.6-bug1165098 into lp:percona-server/5.6
- 5.6-bug1165098
- Merge into 5.6
Proposed by
Ignacio Nin
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Laurynas Biveinis | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 337 | ||||
Proposed branch: | lp:~ignacio-nin/percona-server/5.6-bug1165098 | ||||
Merge into: | lp:percona-server/5.6 | ||||
Diff against target: |
4508 lines (+0/-2332) 5 files modified
build/build-shared-compat-rpm.sh (+0/-152) build/debian/control (+0/-135) build/debian/rules (+0/-77) build/percona-server.spec (+0/-1877) build/percona-shared-compat.spec (+0/-91) |
||||
To merge this branch: | bzr merge lp:~ignacio-nin/percona-server/5.6-bug1165098 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+158136@code.launchpad.net |
Commit message
Description of the change
file-ids fix.
Most of the files under build/ (including build/ itself) were created with a different file-id than its 5.5/5.1 counterparts, leading to problems when merging changes from these branches.
This branches fixes this by re-adding the files with the proper file-ids. This is mostly a cosmetic change, except for a few exceptions no other change to the code.
To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'build' | |||
2 | === removed directory 'build' | |||
3 | === renamed file 'build/build-binary.sh' => 'build/build-binary.sh' | |||
4 | === renamed file 'build/build-dpkg.sh' => 'build/build-dpkg.sh' | |||
5 | === renamed file 'build/build-rpm.sh' => 'build/build-rpm.sh' | |||
6 | === removed file 'build/build-shared-compat-rpm.sh' | |||
7 | --- build/build-shared-compat-rpm.sh 2013-03-06 11:00:39 +0000 | |||
8 | +++ build/build-shared-compat-rpm.sh 1970-01-01 00:00:00 +0000 | |||
9 | @@ -1,152 +0,0 @@ | |||
10 | 1 | #!/bin/sh | ||
11 | 2 | # | ||
12 | 3 | # Execute this tool to setup and build the shared-compat RPM starting | ||
13 | 4 | # from a fresh tree | ||
14 | 5 | # | ||
15 | 6 | # Usage: build-shared-compat-rpm.sh [target dir] | ||
16 | 7 | # The default target directory is the current directory. If it is not | ||
17 | 8 | # supplied and the current directory is not empty, it will issue an error in | ||
18 | 9 | # order to avoid polluting the current directory after a test run. | ||
19 | 10 | # | ||
20 | 11 | # The program will setup the rpm building environment, download the sources | ||
21 | 12 | # and ultimately call rpmbuild with the appropiate parameters. | ||
22 | 13 | # | ||
23 | 14 | |||
24 | 15 | # Bail out on errors, be strict | ||
25 | 16 | set -ue | ||
26 | 17 | |||
27 | 18 | # Examine parameters | ||
28 | 19 | TARGET='' | ||
29 | 20 | TARGET_ARG='' | ||
30 | 21 | TARGET_CFLAGS='' | ||
31 | 22 | SIGN='--sign' | ||
32 | 23 | |||
33 | 24 | # Check if we have a functional getopt(1) | ||
34 | 25 | if ! getopt --test | ||
35 | 26 | then | ||
36 | 27 | go_out="$(getopt --options="iK" --longoptions=i686,nosign \ | ||
37 | 28 | --name="$(basename "$0")" -- "$@")" | ||
38 | 29 | test $? -eq 0 || exit 1 | ||
39 | 30 | eval set -- $go_out | ||
40 | 31 | fi | ||
41 | 32 | |||
42 | 33 | for arg | ||
43 | 34 | do | ||
44 | 35 | case "$arg" in | ||
45 | 36 | -- ) shift; break;; | ||
46 | 37 | -i | --i686 ) | ||
47 | 38 | shift | ||
48 | 39 | TARGET='i686' | ||
49 | 40 | TARGET_ARG="--target i686" | ||
50 | 41 | TARGET_CFLAGS="-m32 -march=i686" | ||
51 | 42 | ;; | ||
52 | 43 | -K | --nosign ) | ||
53 | 44 | shift | ||
54 | 45 | SIGN='' | ||
55 | 46 | ;; | ||
56 | 47 | esac | ||
57 | 48 | done | ||
58 | 49 | |||
59 | 50 | # Working directory | ||
60 | 51 | if test "$#" -eq 0 | ||
61 | 52 | then | ||
62 | 53 | WORKDIR="$(pwd)" | ||
63 | 54 | |||
64 | 55 | # Check that the current directory is not empty | ||
65 | 56 | if test "x$(echo *)" != "x*" | ||
66 | 57 | then | ||
67 | 58 | echo >&2 \ | ||
68 | 59 | "Current directory is not empty. Use $0 . to force build in ." | ||
69 | 60 | exit 1 | ||
70 | 61 | fi | ||
71 | 62 | |||
72 | 63 | elif test "$#" -eq 1 | ||
73 | 64 | then | ||
74 | 65 | WORKDIR="$1" | ||
75 | 66 | |||
76 | 67 | # Check that the provided directory exists and is a directory | ||
77 | 68 | if ! test -d "$WORKDIR" | ||
78 | 69 | then | ||
79 | 70 | echo >&2 "$WORKDIR is not a directory" | ||
80 | 71 | exit 1 | ||
81 | 72 | fi | ||
82 | 73 | |||
83 | 74 | else | ||
84 | 75 | echo >&2 "Usage: $0 [target dir]" | ||
85 | 76 | exit 1 | ||
86 | 77 | |||
87 | 78 | fi | ||
88 | 79 | |||
89 | 80 | WORKDIR_ABS="$(cd "$WORKDIR"; pwd)" | ||
90 | 81 | |||
91 | 82 | # If we're in 32 bits, ensure that we're compiling for i686. | ||
92 | 83 | if test "x$TARGET" == "x" | ||
93 | 84 | then | ||
94 | 85 | if test "x$(uname -m)" != "xx86_64" | ||
95 | 86 | then | ||
96 | 87 | TARGET='i686' | ||
97 | 88 | TARGET_ARG="--target i686" | ||
98 | 89 | TARGET_CFLAGS='-m32 -march=i686' | ||
99 | 90 | fi | ||
100 | 91 | |||
101 | 92 | fi | ||
102 | 93 | |||
103 | 94 | SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)" | ||
104 | 95 | test -e "$SOURCEDIR/Makefile" || exit 2 | ||
105 | 96 | |||
106 | 97 | # Extract version from the Makefile | ||
107 | 98 | MYSQL_VERSION="$(grep ^MYSQL_VERSION= "$SOURCEDIR/Makefile" \ | ||
108 | 99 | | cut -d = -f 2)" | ||
109 | 100 | PERCONA_SERVER_VERSION="$(grep ^PERCONA_SERVER_VERSION= \ | ||
110 | 101 | "$SOURCEDIR/Makefile" | cut -d = -f 2)" | ||
111 | 102 | PRODUCT="Percona-Server-$MYSQL_VERSION-$PERCONA_SERVER_VERSION" | ||
112 | 103 | |||
113 | 104 | # Build information | ||
114 | 105 | REDHAT_RELEASE="$(grep -o 'release [0-9][0-9]*' /etc/redhat-release | \ | ||
115 | 106 | cut -d ' ' -f 2)" | ||
116 | 107 | REVISION="$(cd "$SOURCEDIR"; bzr log -r-1 | grep ^revno: | cut -d ' ' -f 2)" | ||
117 | 108 | |||
118 | 109 | # Compilation flags | ||
119 | 110 | export CC=gcc | ||
120 | 111 | export CXX=gcc | ||
121 | 112 | export CFLAGS="-fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer $TARGET_CFLAGS" | ||
122 | 113 | export CXXFLAGS="-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fno-exceptions $TARGET_CFLAGS" | ||
123 | 114 | export MAKE_JFLAG=-j4 | ||
124 | 115 | |||
125 | 116 | # Create directories for rpmbuild if these don't exist | ||
126 | 117 | (cd "$WORKDIR" && mkdir -p BUILD RPMS SOURCES SPECS SRPMS) | ||
127 | 118 | |||
128 | 119 | # Prepare sources | ||
129 | 120 | ( | ||
130 | 121 | cd "$WORKDIR/SOURCES/" | ||
131 | 122 | |||
132 | 123 | # Download the sources from the community site | ||
133 | 124 | if test "x$TARGET" = "xi686" | ||
134 | 125 | then | ||
135 | 126 | RPMVER=i386 | ||
136 | 127 | elif test "x$(uname -m)" = "xx86_64" | ||
137 | 128 | then | ||
138 | 129 | RPMVER=x86_64 | ||
139 | 130 | else | ||
140 | 131 | RPMVER=i386 | ||
141 | 132 | fi | ||
142 | 133 | |||
143 | 134 | wget "http://www.percona.com/downloads/community/shared-compat/MySQL-shared-compat-$MYSQL_VERSION-1.linux2.6.$RPMVER.rpm" | ||
144 | 135 | |||
145 | 136 | ) | ||
146 | 137 | |||
147 | 138 | # Issue rpmbuild command | ||
148 | 139 | ( | ||
149 | 140 | cd "$WORKDIR" | ||
150 | 141 | |||
151 | 142 | # Issue RPM command | ||
152 | 143 | rpmbuild -ba --clean --with yassl $SIGN \ | ||
153 | 144 | "$SOURCEDIR/build/percona-shared-compat.spec" \ | ||
154 | 145 | --define "_topdir $WORKDIR_ABS" \ | ||
155 | 146 | --define "redhat_version $REDHAT_RELEASE" \ | ||
156 | 147 | --define "gotrevision $REVISION" \ | ||
157 | 148 | --define "release $PERCONA_SERVER_VERSION" \ | ||
158 | 149 | $TARGET_ARG | ||
159 | 150 | |||
160 | 151 | ) | ||
161 | 152 | |||
162 | 153 | 0 | ||
163 | === added directory 'build/debian' | |||
164 | === removed directory 'build/debian' | |||
165 | === renamed file 'build/debian/README.source' => 'build/debian/README.source' | |||
166 | === renamed directory 'build/debian/additions' => 'build/debian/additions' | |||
167 | === renamed file 'build/debian/changelog' => 'build/debian/changelog' | |||
168 | === renamed file 'build/debian/compat' => 'build/debian/compat' | |||
169 | === added file 'build/debian/control' | |||
170 | --- build/debian/control 1970-01-01 00:00:00 +0000 | |||
171 | +++ build/debian/control 2013-04-10 15:00:36 +0000 | |||
172 | @@ -0,0 +1,135 @@ | |||
173 | 1 | Source: percona-server-5.6 | ||
174 | 2 | Section: database | ||
175 | 3 | Priority: extra | ||
176 | 4 | Maintainer: Percona Server Development Team <mysql-dev@percona.com> | ||
177 | 5 | Uploaders: Ignacio Nin <ignacio.nin@percona.com> | ||
178 | 6 | Build-Depends: debhelper (>= 7.0), dpatch, cmake, libtool, automake, autoconf, libncurses5-dev, perl, bison, fakeroot, devscripts, libaio-dev | ||
179 | 7 | Standards-Version: 3.9.1 | ||
180 | 8 | Homepage: http://www.percona.com/software/percona-server/ | ||
181 | 9 | Vcs-Bzr: bzr+ssh://bazaar.launchpad.net/~percona-core/percona-server/5.6 | ||
182 | 10 | Vcs-Browser: http://bazaar.launchpad.net/~percona-core/percona-server/5.6 | ||
183 | 11 | |||
184 | 12 | Package: libmysqlclient18 | ||
185 | 13 | Section: libs | ||
186 | 14 | Architecture: any | ||
187 | 15 | Replaces: libpercona-server-client18 | ||
188 | 16 | Depends: ${misc:Depends} | ||
189 | 17 | Description: Percona Server database client library | ||
190 | 18 | Percona Server is a fast, stable and true multi-user, | ||
191 | 19 | multi-threaded SQL database server. SQL (Structured Query Language) | ||
192 | 20 | is the most popular database query language in the world. The main | ||
193 | 21 | goals of Percona Server are speed, robustness and ease of use. | ||
194 | 22 | . | ||
195 | 23 | This package includes the client library. | ||
196 | 24 | |||
197 | 25 | Package: libmysqlclient18-dev | ||
198 | 26 | Architecture: any | ||
199 | 27 | Section: libdevel | ||
200 | 28 | Depends: libmysqlclient-dev (= ${binary:Version}), ${misc:Depends} | ||
201 | 29 | Description: Percona Server database development files - empty transitional | ||
202 | 30 | package. This is an empty package that depends on libmysqlclient-dev to ease | ||
203 | 31 | the transition for packages with versioned build-deps on libmysqlclient18-dev. | ||
204 | 32 | |||
205 | 33 | Package: libmysqlclient-dev | ||
206 | 34 | Architecture: any | ||
207 | 35 | Section: libdevel | ||
208 | 36 | Depends: libmysqlclient18 (= ${binary:Version}), zlib1g-dev, ${misc:Depends} | ||
209 | 37 | Conflicts: libmysqlclient14-dev, libmysqlclient12-dev, libmysqlclient10-dev, libmysqlclient15-dev, libmysqlclient16-dev | ||
210 | 38 | Replaces: libmysqlclient14-dev, libmysqlclient12-dev, libmysqlclient10-dev, libmysqlclient15-dev, libmysqlclient16-dev, libpercona-xtradb-client-dev | ||
211 | 39 | Description: Percona Server database development files | ||
212 | 40 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
213 | 41 | database server. SQL (Structured Query Language) is the most popular | ||
214 | 42 | database query language in the world. The main goals of Percona Server are | ||
215 | 43 | speed, robustness and ease of use. | ||
216 | 44 | . | ||
217 | 45 | This package includes development libraries and header files. | ||
218 | 46 | |||
219 | 47 | Package: percona-server-common-5.6 | ||
220 | 48 | Section: database | ||
221 | 49 | Architecture: any | ||
222 | 50 | Depends: ${misc:Depends} | ||
223 | 51 | Conflicts: mysql-common-4.1, mysql-common-5.0, mysql-common-5.1, mysql-common, percona-server-common-5.1, percona-server-common-5.5 | ||
224 | 52 | Provides: mysql-common | ||
225 | 53 | Replaces: mysql-common-4.1, mysql-common-5.0, mysql-common-5.1, mysql-common, percona-server-common-5.1, percona-server-common-5.5 | ||
226 | 54 | Description: Percona Server database common files (e.g. /etc/mysql/my.cnf) | ||
227 | 55 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
228 | 56 | database server. SQL (Structured Query Language) is the most popular database | ||
229 | 57 | query language in the world. The main goals of Percona Server are speed, | ||
230 | 58 | robustness and ease of use. | ||
231 | 59 | . | ||
232 | 60 | This package includes files needed by all versions of the client library | ||
233 | 61 | (e.g. /etc/mysql/my.cnf). | ||
234 | 62 | |||
235 | 63 | Package: percona-server-test-5.6 | ||
236 | 64 | Architecture: any | ||
237 | 65 | Depends: percona-server-client-5.6 (>= ${source:Version}), percona-server-server-5.6 (>= ${source:Version}) | ||
238 | 66 | Provides: mysql-client | ||
239 | 67 | Description: Percona Server database test suite | ||
240 | 68 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
241 | 69 | database server. SQL (Structured Query Language) is the most popular database | ||
242 | 70 | query language in the world. The main goals of Percona Server are speed, | ||
243 | 71 | robustness and ease of use. | ||
244 | 72 | . | ||
245 | 73 | This package includes the Percona Server test framework that provides | ||
246 | 74 | a means for verifying that Percona Server and its client programs | ||
247 | 75 | operate according to expectations | ||
248 | 76 | |||
249 | 77 | Package: percona-server-client-5.6 | ||
250 | 78 | Architecture: any | ||
251 | 79 | Depends: debianutils (>=1.6), libdbi-perl, percona-server-common-5.6 (>= ${source:Version}), libmysqlclient18, ${shlib:Depends}, ${misc:Depends} | ||
252 | 80 | Provides: mysql-client, virtual-mysql-client | ||
253 | 81 | Conflicts: mysql-client (<< ${source:Version}), mysql-client-5.0, mysql-client-5.1, mysql-client-core-5.1, percona-xtradb-client-5.0, percona-server-client-5.1, percona-server-client-5.5 | ||
254 | 82 | Replaces: mysql-client (<< ${source:Version}), mysql-client-5.0, mysql-client-5.1, mysql-client-core-5.1, percona-xtradb-client-5.0, percona-server-client-5.1, percona-server-client-5.5 | ||
255 | 83 | Description: Percona Server database client binaries | ||
256 | 84 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
257 | 85 | database server. SQL (Structured Query Language) is the most popular database | ||
258 | 86 | query language in the world. The main goals of Percona Server are speed, | ||
259 | 87 | robustness and ease of use. | ||
260 | 88 | . | ||
261 | 89 | This package includes the client binaries and the additional tools | ||
262 | 90 | innotop and mysqlreport. | ||
263 | 91 | |||
264 | 92 | Package: percona-server-server-5.6 | ||
265 | 93 | Architecture: any | ||
266 | 94 | Suggests: tinyca | ||
267 | 95 | Depends: percona-server-client-5.6 (>= ${source:Version}), libdbi-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10), percona-server-common-5.6 (>= ${source:Version}), adduser (>= 3.40), debconf | ||
268 | 96 | Conflicts: mysql-server (<< ${source:Version}), mysql-server-4.1, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5 | ||
269 | 97 | Provides: mysql-server | ||
270 | 98 | Replaces: mysql-server (<< ${source:Version}), mysql-server-5.0, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5 | ||
271 | 99 | Description: Percona Server database server binaries | ||
272 | 100 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
273 | 101 | database server. SQL (Structured Query Language) is the most popular database | ||
274 | 102 | query language in the world. The main goals of Percona Server are speed, | ||
275 | 103 | robustness and ease of use. | ||
276 | 104 | . | ||
277 | 105 | This package includes the server binaries. | ||
278 | 106 | |||
279 | 107 | Package: percona-server-server | ||
280 | 108 | Section: database | ||
281 | 109 | Architecture: any | ||
282 | 110 | Depends: percona-server-server-5.6, ${misc:Depends} | ||
283 | 111 | Description: Percona Server database server | ||
284 | 112 | (metapackage depending on the latest version) | ||
285 | 113 | This is an empty package that depends on the current "best" version of | ||
286 | 114 | percona-server-server (currently percona-server-server-5.6), as determined | ||
287 | 115 | by the Percona Server maintainers. Install this package if in doubt | ||
288 | 116 | about which Percona Server version you need. That will install the version | ||
289 | 117 | recommended by the package maintainers. | ||
290 | 118 | . | ||
291 | 119 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
292 | 120 | database server. SQL (Structured Query Language) is the most popular database | ||
293 | 121 | query language in the world. The main goals of Percona Server are speed, | ||
294 | 122 | robustness and ease of use. | ||
295 | 123 | |||
296 | 124 | Package: percona-server-client | ||
297 | 125 | Section: database | ||
298 | 126 | Architecture: any | ||
299 | 127 | Depends: percona-server-client-5.6, ${misc:Depends} | ||
300 | 128 | Description: Percona Server database client | ||
301 | 129 | (metapackage depending on the latest version) | ||
302 | 130 | This is an empty package that depends on the current "best" version of | ||
303 | 131 | percona-server-client (currently percona-server-client-5.6), as determined | ||
304 | 132 | by the Percona Server maintainers. Install this package if in doubt | ||
305 | 133 | about which Percona Server version you want, as this is the one we consider | ||
306 | 134 | to be in the best shape. | ||
307 | 135 | |||
308 | 0 | 136 | ||
309 | === removed file 'build/debian/control' | |||
310 | --- build/debian/control 2013-04-10 04:47:26 +0000 | |||
311 | +++ build/debian/control 1970-01-01 00:00:00 +0000 | |||
312 | @@ -1,135 +0,0 @@ | |||
313 | 1 | Source: percona-server-5.6 | ||
314 | 2 | Section: database | ||
315 | 3 | Priority: extra | ||
316 | 4 | Maintainer: Percona Server Development Team <mysql-dev@percona.com> | ||
317 | 5 | Uploaders: Ignacio Nin <ignacio.nin@percona.com> | ||
318 | 6 | Build-Depends: debhelper (>= 7.0), dpatch, cmake, libtool, automake, autoconf, libncurses5-dev, perl, bison, fakeroot, devscripts, libaio-dev | ||
319 | 7 | Standards-Version: 3.9.1 | ||
320 | 8 | Homepage: http://www.percona.com/software/percona-server/ | ||
321 | 9 | Vcs-Bzr: bzr+ssh://bazaar.launchpad.net/~percona-core/percona-server/5.6 | ||
322 | 10 | Vcs-Browser: http://bazaar.launchpad.net/~percona-core/percona-server/5.6 | ||
323 | 11 | |||
324 | 12 | Package: libmysqlclient18 | ||
325 | 13 | Section: libs | ||
326 | 14 | Architecture: any | ||
327 | 15 | Replaces: libpercona-server-client18 | ||
328 | 16 | Depends: ${misc:Depends} | ||
329 | 17 | Description: Percona Server database client library | ||
330 | 18 | Percona Server is a fast, stable and true multi-user, | ||
331 | 19 | multi-threaded SQL database server. SQL (Structured Query Language) | ||
332 | 20 | is the most popular database query language in the world. The main | ||
333 | 21 | goals of Percona Server are speed, robustness and ease of use. | ||
334 | 22 | . | ||
335 | 23 | This package includes the client library. | ||
336 | 24 | |||
337 | 25 | Package: libmysqlclient18-dev | ||
338 | 26 | Architecture: any | ||
339 | 27 | Section: libdevel | ||
340 | 28 | Depends: libmysqlclient-dev (= ${binary:Version}), ${misc:Depends} | ||
341 | 29 | Description: Percona Server database development files - empty transitional | ||
342 | 30 | package. This is an empty package that depends on libmysqlclient-dev to ease | ||
343 | 31 | the transition for packages with versioned build-deps on libmysqlclient18-dev. | ||
344 | 32 | |||
345 | 33 | Package: libmysqlclient-dev | ||
346 | 34 | Architecture: any | ||
347 | 35 | Section: libdevel | ||
348 | 36 | Depends: libmysqlclient18 (= ${binary:Version}), zlib1g-dev, ${misc:Depends} | ||
349 | 37 | Conflicts: libmysqlclient14-dev, libmysqlclient12-dev, libmysqlclient10-dev, libmysqlclient15-dev, libmysqlclient16-dev | ||
350 | 38 | Replaces: libmysqlclient14-dev, libmysqlclient12-dev, libmysqlclient10-dev, libmysqlclient15-dev, libmysqlclient16-dev, libpercona-xtradb-client-dev | ||
351 | 39 | Description: Percona Server database development files | ||
352 | 40 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
353 | 41 | database server. SQL (Structured Query Language) is the most popular | ||
354 | 42 | database query language in the world. The main goals of Percona Server are | ||
355 | 43 | speed, robustness and ease of use. | ||
356 | 44 | . | ||
357 | 45 | This package includes development libraries and header files. | ||
358 | 46 | |||
359 | 47 | Package: percona-server-common-5.6 | ||
360 | 48 | Section: database | ||
361 | 49 | Architecture: any | ||
362 | 50 | Depends: ${misc:Depends} | ||
363 | 51 | Conflicts: mysql-common-4.1, mysql-common-5.0, mysql-common-5.1, mysql-common, percona-server-common-5.1, percona-server-common-5.5 | ||
364 | 52 | Provides: mysql-common | ||
365 | 53 | Replaces: mysql-common-4.1, mysql-common-5.0, mysql-common-5.1, mysql-common, percona-server-common-5.1, percona-server-common-5.5 | ||
366 | 54 | Description: Percona Server database common files (e.g. /etc/mysql/my.cnf) | ||
367 | 55 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
368 | 56 | database server. SQL (Structured Query Language) is the most popular database | ||
369 | 57 | query language in the world. The main goals of Percona Server are speed, | ||
370 | 58 | robustness and ease of use. | ||
371 | 59 | . | ||
372 | 60 | This package includes files needed by all versions of the client library | ||
373 | 61 | (e.g. /etc/mysql/my.cnf). | ||
374 | 62 | |||
375 | 63 | Package: percona-server-test-5.6 | ||
376 | 64 | Architecture: any | ||
377 | 65 | Depends: percona-server-client-5.6 (>= ${source:Version}), percona-server-server-5.6 (>= ${source:Version}) | ||
378 | 66 | Provides: mysql-client | ||
379 | 67 | Description: Percona Server database test suite | ||
380 | 68 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
381 | 69 | database server. SQL (Structured Query Language) is the most popular database | ||
382 | 70 | query language in the world. The main goals of Percona Server are speed, | ||
383 | 71 | robustness and ease of use. | ||
384 | 72 | . | ||
385 | 73 | This package includes the Percona Server test framework that provides | ||
386 | 74 | a means for verifying that Percona Server and its client programs | ||
387 | 75 | operate according to expectations | ||
388 | 76 | |||
389 | 77 | Package: percona-server-client-5.6 | ||
390 | 78 | Architecture: any | ||
391 | 79 | Depends: debianutils (>=1.6), libdbi-perl, percona-server-common-5.6 (>= ${source:Version}), libmysqlclient18, ${shlib:Depends}, ${misc:Depends} | ||
392 | 80 | Provides: mysql-client, virtual-mysql-client | ||
393 | 81 | Conflicts: mysql-client (<< ${source:Version}), mysql-client-5.0, mysql-client-5.1, mysql-client-core-5.1, percona-xtradb-client-5.0, percona-server-client-5.1, percona-server-client-5.5 | ||
394 | 82 | Replaces: mysql-client (<< ${source:Version}), mysql-client-5.0, mysql-client-5.1, mysql-client-core-5.1, percona-xtradb-client-5.0, percona-server-client-5.1, percona-server-client-5.5 | ||
395 | 83 | Description: Percona Server database client binaries | ||
396 | 84 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
397 | 85 | database server. SQL (Structured Query Language) is the most popular database | ||
398 | 86 | query language in the world. The main goals of Percona Server are speed, | ||
399 | 87 | robustness and ease of use. | ||
400 | 88 | . | ||
401 | 89 | This package includes the client binaries and the additional tools | ||
402 | 90 | innotop and mysqlreport. | ||
403 | 91 | |||
404 | 92 | Package: percona-server-server-5.6 | ||
405 | 93 | Architecture: any | ||
406 | 94 | Suggests: tinyca | ||
407 | 95 | Depends: percona-server-client-5.6 (>= ${source:Version}), libdbi-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10), percona-server-common-5.6 (>= ${source:Version}), adduser (>= 3.40), debconf | ||
408 | 96 | Conflicts: mysql-server (<< ${source:Version}), mysql-server-4.1, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5 | ||
409 | 97 | Provides: mysql-server | ||
410 | 98 | Replaces: mysql-server (<< ${source:Version}), mysql-server-5.0, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5 | ||
411 | 99 | Description: Percona Server database server binaries | ||
412 | 100 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
413 | 101 | database server. SQL (Structured Query Language) is the most popular database | ||
414 | 102 | query language in the world. The main goals of Percona Server are speed, | ||
415 | 103 | robustness and ease of use. | ||
416 | 104 | . | ||
417 | 105 | This package includes the server binaries. | ||
418 | 106 | |||
419 | 107 | Package: percona-server-server | ||
420 | 108 | Section: database | ||
421 | 109 | Architecture: any | ||
422 | 110 | Depends: percona-server-server-5.6, ${misc:Depends} | ||
423 | 111 | Description: Percona Server database server | ||
424 | 112 | (metapackage depending on the latest version) | ||
425 | 113 | This is an empty package that depends on the current "best" version of | ||
426 | 114 | percona-server-server (currently percona-server-server-5.6), as determined | ||
427 | 115 | by the Percona Server maintainers. Install this package if in doubt | ||
428 | 116 | about which Percona Server version you need. That will install the version | ||
429 | 117 | recommended by the package maintainers. | ||
430 | 118 | . | ||
431 | 119 | Percona Server is a fast, stable and true multi-user, multi-threaded SQL | ||
432 | 120 | database server. SQL (Structured Query Language) is the most popular database | ||
433 | 121 | query language in the world. The main goals of Percona Server are speed, | ||
434 | 122 | robustness and ease of use. | ||
435 | 123 | |||
436 | 124 | Package: percona-server-client | ||
437 | 125 | Section: database | ||
438 | 126 | Architecture: any | ||
439 | 127 | Depends: percona-server-client-5.6, ${misc:Depends} | ||
440 | 128 | Description: Percona Server database client | ||
441 | 129 | (metapackage depending on the latest version) | ||
442 | 130 | This is an empty package that depends on the current "best" version of | ||
443 | 131 | percona-server-client (currently percona-server-client-5.6), as determined | ||
444 | 132 | by the Percona Server maintainers. Install this package if in doubt | ||
445 | 133 | about which Percona Server version you want, as this is the one we consider | ||
446 | 134 | to be in the best shape. | ||
447 | 135 | |||
448 | 136 | 0 | ||
449 | === renamed file 'build/debian/copyright' => 'build/debian/copyright' | |||
450 | === renamed file 'build/debian/libmysqlclient-dev.README.Maintainer' => 'build/debian/libmysqlclient-dev.README.Maintainer' | |||
451 | === renamed file 'build/debian/libmysqlclient-dev.install' => 'build/debian/libmysqlclient-dev.install' | |||
452 | === renamed file 'build/debian/libmysqlclient-dev.links' => 'build/debian/libmysqlclient-dev.links' | |||
453 | === renamed file 'build/debian/libmysqlclient18.docs' => 'build/debian/libmysqlclient18.docs' | |||
454 | === renamed file 'build/debian/libmysqlclient18.info' => 'build/debian/libmysqlclient18.info' | |||
455 | === renamed file 'build/debian/libmysqlclient18.install' => 'build/debian/libmysqlclient18.install' | |||
456 | === renamed file 'build/debian/libmysqlclient18.postinst' => 'build/debian/libmysqlclient18.postinst' | |||
457 | === renamed directory 'build/debian/patches' => 'build/debian/patches' | |||
458 | === renamed file 'build/debian/percona-server-client-5.6.README.Debian' => 'build/debian/percona-server-client-5.6.README.Debian' | |||
459 | === renamed file 'build/debian/percona-server-client-5.6.dirs' => 'build/debian/percona-server-client-5.6.dirs' | |||
460 | === renamed file 'build/debian/percona-server-client-5.6.docs' => 'build/debian/percona-server-client-5.6.docs' | |||
461 | === renamed file 'build/debian/percona-server-client-5.6.install' => 'build/debian/percona-server-client-5.6.install' | |||
462 | === renamed file 'build/debian/percona-server-client-5.6.links' => 'build/debian/percona-server-client-5.6.links' | |||
463 | === renamed file 'build/debian/percona-server-client-5.6.lintian-overrides' => 'build/debian/percona-server-client-5.6.lintian-overrides' | |||
464 | === renamed file 'build/debian/percona-server-client-5.6.menu' => 'build/debian/percona-server-client-5.6.menu' | |||
465 | === renamed file 'build/debian/percona-server-common-5.5.dirs' => 'build/debian/percona-server-common-5.5.dirs' | |||
466 | === renamed file 'build/debian/percona-server-server-5.6.README.Debian' => 'build/debian/percona-server-server-5.6.README.Debian' | |||
467 | === renamed file 'build/debian/percona-server-server-5.6.config' => 'build/debian/percona-server-server-5.6.config' | |||
468 | === renamed file 'build/debian/percona-server-server-5.6.dirs' => 'build/debian/percona-server-server-5.6.dirs' | |||
469 | === renamed file 'build/debian/percona-server-server-5.6.docs' => 'build/debian/percona-server-server-5.6.docs' | |||
470 | === renamed file 'build/debian/percona-server-server-5.6.install' => 'build/debian/percona-server-server-5.6.install' | |||
471 | === renamed file 'build/debian/percona-server-server-5.6.lintian-overrides' => 'build/debian/percona-server-server-5.6.lintian-overrides' | |||
472 | === renamed file 'build/debian/percona-server-server-5.6.logcheck.ignore.paranoid' => 'build/debian/percona-server-server-5.6.logcheck.ignore.paranoid' | |||
473 | === renamed file 'build/debian/percona-server-server-5.6.logcheck.ignore.server' => 'build/debian/percona-server-server-5.6.logcheck.ignore.server' | |||
474 | === renamed file 'build/debian/percona-server-server-5.6.logcheck.ignore.workstation' => 'build/debian/percona-server-server-5.6.logcheck.ignore.workstation' | |||
475 | === renamed file 'build/debian/percona-server-server-5.6.logrotate' => 'build/debian/percona-server-server-5.6.logrotate' | |||
476 | === renamed file 'build/debian/percona-server-server-5.6.mysql.init' => 'build/debian/percona-server-server-5.6.mysql.init' | |||
477 | === renamed file 'build/debian/percona-server-server-5.6.postinst' => 'build/debian/percona-server-server-5.6.postinst' | |||
478 | === renamed file 'build/debian/percona-server-server-5.6.postrm' => 'build/debian/percona-server-server-5.6.postrm' | |||
479 | === renamed file 'build/debian/percona-server-server-5.6.preinst' => 'build/debian/percona-server-server-5.6.preinst' | |||
480 | === renamed file 'build/debian/percona-server-server-5.6.prerm' => 'build/debian/percona-server-server-5.6.prerm' | |||
481 | === renamed file 'build/debian/percona-server-server-5.6.templates' => 'build/debian/percona-server-server-5.6.templates' | |||
482 | === renamed file 'build/debian/percona-server-test-5.6.install' => 'build/debian/percona-server-test-5.6.install' | |||
483 | === renamed file 'build/debian/percona-server-test-5.6.links' => 'build/debian/percona-server-test-5.6.links' | |||
484 | === renamed directory 'build/debian/po' => 'build/debian/po' | |||
485 | === added file 'build/debian/rules' | |||
486 | --- build/debian/rules 1970-01-01 00:00:00 +0000 | |||
487 | +++ build/debian/rules 2013-04-10 15:00:36 +0000 | |||
488 | @@ -0,0 +1,77 @@ | |||
489 | 1 | #!/usr/bin/make -f | ||
490 | 2 | |||
491 | 3 | #export DH_VERBOSE=1 | ||
492 | 4 | |||
493 | 5 | include /usr/share/dpatch/dpatch.make | ||
494 | 6 | |||
495 | 7 | CMAKE=cmake | ||
496 | 8 | TMP=$(CURDIR)/debian/tmp/ | ||
497 | 9 | |||
498 | 10 | feature_set="community" | ||
499 | 11 | compilation_comment_release="Percona Server (GPL), Release 60.2" | ||
500 | 12 | server_suffix="-56" | ||
501 | 13 | prefix="/usr" | ||
502 | 14 | |||
503 | 15 | clean: clean-patched unpatch | ||
504 | 16 | |||
505 | 17 | clean-patched: | ||
506 | 18 | dh clean | ||
507 | 19 | rm -rf CMakeFiles | ||
508 | 20 | |||
509 | 21 | build: patch | ||
510 | 22 | dh_testdir | ||
511 | 23 | $(CMAKE) . -DBUILD_CONFIG=mysql_release \ | ||
512 | 24 | -DINSTALL_LAYOUT=DEB \ | ||
513 | 25 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
514 | 26 | -DWITH_EMBEDDED_SERVER=OFF \ | ||
515 | 27 | -DMYSQL_UNIX_ADDR="/var/run/mysqld/mysqld.sock" \ | ||
516 | 28 | -DFEATURE_SET=$(feature_set) \ | ||
517 | 29 | -DCOMPILATION_COMMENT=$(compilation_comment_release) \ | ||
518 | 30 | -DMYSQL_SERVER_SUFFIX=$(server_suffix) | ||
519 | 31 | make $(MAKE_JFLAG) | ||
520 | 32 | |||
521 | 33 | # Build UDF | ||
522 | 34 | cd UDF && \ | ||
523 | 35 | CXX=g++ CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/include" \ | ||
524 | 36 | ./configure --includedir=$(CURDIR)/include \ | ||
525 | 37 | --libdir=$(prefix)/lib/mysql/plugin && \ | ||
526 | 38 | make $(MAKE_JFLAG) | ||
527 | 39 | |||
528 | 40 | dh_auto_test | ||
529 | 41 | |||
530 | 42 | binary: | ||
531 | 43 | echo "Making binary" | ||
532 | 44 | dh --before dh_auto_install binary | ||
533 | 45 | dh_auto_install | ||
534 | 46 | cd UDF && make DESTDIR=$(TMP) install | ||
535 | 47 | dh --after dh_auto_install --before dh_installinit binary | ||
536 | 48 | dh_installinit --name=mysql | ||
537 | 49 | dh --after dh_installinit binary | ||
538 | 50 | |||
539 | 51 | |||
540 | 52 | binary-arch: | ||
541 | 53 | echo "Making binary" | ||
542 | 54 | dh --before dh_auto_install binary-arch | ||
543 | 55 | dh_auto_install | ||
544 | 56 | cd UDF && make DESTDIR=$(TMP) install | ||
545 | 57 | dh --after dh_auto_install --before dh_installinit binary-arch | ||
546 | 58 | dh_installinit --name=mysql | ||
547 | 59 | dh --after dh_installinit binary-arch | ||
548 | 60 | |||
549 | 61 | binary-indep: | ||
550 | 62 | echo "Making binary" | ||
551 | 63 | dh --before dh_auto_install binary-indep | ||
552 | 64 | dh_auto_install | ||
553 | 65 | cd UDF && make DESTDIR=$(TMP) install | ||
554 | 66 | dh --after dh_auto_install --before dh_installinit binary-indep | ||
555 | 67 | dh_installinit --name=mysql | ||
556 | 68 | dh --after dh_installinit binary-indep | ||
557 | 69 | |||
558 | 70 | install: | ||
559 | 71 | echo "Making binary" | ||
560 | 72 | dh --before dh_auto_install install | ||
561 | 73 | dh_auto_install | ||
562 | 74 | cd UDF && make DESTDIR=$(TMP) install | ||
563 | 75 | dh --after dh_auto_install --before dh_installinit install | ||
564 | 76 | dh_installinit --name=mysql | ||
565 | 77 | dh --after dh_installinit install | ||
566 | 0 | 78 | ||
567 | === removed file 'build/debian/rules' | |||
568 | --- build/debian/rules 2013-04-10 04:47:26 +0000 | |||
569 | +++ build/debian/rules 1970-01-01 00:00:00 +0000 | |||
570 | @@ -1,77 +0,0 @@ | |||
571 | 1 | #!/usr/bin/make -f | ||
572 | 2 | |||
573 | 3 | #export DH_VERBOSE=1 | ||
574 | 4 | |||
575 | 5 | include /usr/share/dpatch/dpatch.make | ||
576 | 6 | |||
577 | 7 | CMAKE=cmake | ||
578 | 8 | TMP=$(CURDIR)/debian/tmp/ | ||
579 | 9 | |||
580 | 10 | feature_set="community" | ||
581 | 11 | compilation_comment_release="Percona Server (GPL), Release 60.2" | ||
582 | 12 | server_suffix="-56" | ||
583 | 13 | prefix="/usr" | ||
584 | 14 | |||
585 | 15 | clean: clean-patched unpatch | ||
586 | 16 | |||
587 | 17 | clean-patched: | ||
588 | 18 | dh clean | ||
589 | 19 | rm -rf CMakeFiles | ||
590 | 20 | |||
591 | 21 | build: patch | ||
592 | 22 | dh_testdir | ||
593 | 23 | $(CMAKE) . -DBUILD_CONFIG=mysql_release \ | ||
594 | 24 | -DINSTALL_LAYOUT=DEB \ | ||
595 | 25 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
596 | 26 | -DWITH_EMBEDDED_SERVER=OFF \ | ||
597 | 27 | -DMYSQL_UNIX_ADDR="/var/run/mysqld/mysqld.sock" \ | ||
598 | 28 | -DFEATURE_SET=$(feature_set) \ | ||
599 | 29 | -DCOMPILATION_COMMENT=$(compilation_comment_release) \ | ||
600 | 30 | -DMYSQL_SERVER_SUFFIX=$(server_suffix) | ||
601 | 31 | make $(MAKE_JFLAG) | ||
602 | 32 | |||
603 | 33 | # Build UDF | ||
604 | 34 | cd UDF && \ | ||
605 | 35 | CXX=g++ CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/include" \ | ||
606 | 36 | ./configure --includedir=$(CURDIR)/include \ | ||
607 | 37 | --libdir=$(prefix)/lib/mysql/plugin && \ | ||
608 | 38 | make $(MAKE_JFLAG) | ||
609 | 39 | |||
610 | 40 | dh_auto_test | ||
611 | 41 | |||
612 | 42 | binary: | ||
613 | 43 | echo "Making binary" | ||
614 | 44 | dh --before dh_auto_install binary | ||
615 | 45 | dh_auto_install | ||
616 | 46 | cd UDF && make DESTDIR=$(TMP) install | ||
617 | 47 | dh --after dh_auto_install --before dh_installinit binary | ||
618 | 48 | dh_installinit --name=mysql | ||
619 | 49 | dh --after dh_installinit binary | ||
620 | 50 | |||
621 | 51 | |||
622 | 52 | binary-arch: | ||
623 | 53 | echo "Making binary" | ||
624 | 54 | dh --before dh_auto_install binary-arch | ||
625 | 55 | dh_auto_install | ||
626 | 56 | cd UDF && make DESTDIR=$(TMP) install | ||
627 | 57 | dh --after dh_auto_install --before dh_installinit binary-arch | ||
628 | 58 | dh_installinit --name=mysql | ||
629 | 59 | dh --after dh_installinit binary-arch | ||
630 | 60 | |||
631 | 61 | binary-indep: | ||
632 | 62 | echo "Making binary" | ||
633 | 63 | dh --before dh_auto_install binary-indep | ||
634 | 64 | dh_auto_install | ||
635 | 65 | cd UDF && make DESTDIR=$(TMP) install | ||
636 | 66 | dh --after dh_auto_install --before dh_installinit binary-indep | ||
637 | 67 | dh_installinit --name=mysql | ||
638 | 68 | dh --after dh_installinit binary-indep | ||
639 | 69 | |||
640 | 70 | install: | ||
641 | 71 | echo "Making binary" | ||
642 | 72 | dh --before dh_auto_install install | ||
643 | 73 | dh_auto_install | ||
644 | 74 | cd UDF && make DESTDIR=$(TMP) install | ||
645 | 75 | dh --after dh_auto_install --before dh_installinit install | ||
646 | 76 | dh_installinit --name=mysql | ||
647 | 77 | dh --after dh_installinit install | ||
648 | 78 | 0 | ||
649 | === renamed directory 'build/debian/source' => 'build/debian/source' | |||
650 | === added file 'build/percona-server.spec' | |||
651 | --- build/percona-server.spec 1970-01-01 00:00:00 +0000 | |||
652 | +++ build/percona-server.spec 2013-04-10 15:00:36 +0000 | |||
653 | @@ -0,0 +1,1877 @@ | |||
654 | 1 | # Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. | ||
655 | 2 | # | ||
656 | 3 | # This program is free software; you can redistribute it and/or modify | ||
657 | 4 | # it under the terms of the GNU General Public License as published by | ||
658 | 5 | # the Free Software Foundation; version 2 of the License. | ||
659 | 6 | # | ||
660 | 7 | # This program is distributed in the hope that it will be useful, | ||
661 | 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
662 | 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
663 | 10 | # GNU General Public License for more details. | ||
664 | 11 | # | ||
665 | 12 | # You should have received a copy of the GNU General Public License | ||
666 | 13 | # along with this program; see the file COPYING. If not, write to the | ||
667 | 14 | # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston | ||
668 | 15 | # MA 02110-1301 USA. | ||
669 | 16 | |||
670 | 17 | ############################################################################## | ||
671 | 18 | # Some common macro definitions | ||
672 | 19 | ############################################################################## | ||
673 | 20 | |||
674 | 21 | # NOTE: "vendor" is used in upgrade/downgrade check, so you can't | ||
675 | 22 | # change these, has to be exactly as is. | ||
676 | 23 | %define mysql_old_vendor MySQL AB | ||
677 | 24 | %define mysql_vendor_2 Sun Microsystems, Inc. | ||
678 | 25 | %define mysql_vendor Oracle and/or its affiliates | ||
679 | 26 | %define percona_server_vendor Percona, Inc | ||
680 | 27 | |||
681 | 28 | %define mysql_version 5.6.10 | ||
682 | 29 | %define redhatversion %(lsb_release -rs | awk -F. '{ print $1}') | ||
683 | 30 | %define majorversion 60 | ||
684 | 31 | %define minorversion 2 | ||
685 | 32 | %define distribution rhel%{redhatversion} | ||
686 | 33 | %define percona_server_version alpha%{majorversion}.%{minorversion} | ||
687 | 34 | |||
688 | 35 | %define mysqld_user mysql | ||
689 | 36 | %define mysqld_group mysql | ||
690 | 37 | %define mysqldatadir /var/lib/mysql | ||
691 | 38 | |||
692 | 39 | %define release alpha%{majorversion}.%{minorversion}.%{gotrevision}.%{distribution} | ||
693 | 40 | |||
694 | 41 | # | ||
695 | 42 | # Macros we use which are not available in all supported versions of RPM | ||
696 | 43 | # | ||
697 | 44 | # - defined/undefined are missing on RHEL4 | ||
698 | 45 | # | ||
699 | 46 | %if %{expand:%{?defined:0}%{!?defined:1}} | ||
700 | 47 | %define defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}} | ||
701 | 48 | %endif | ||
702 | 49 | %if %{expand:%{?undefined:0}%{!?undefined:1}} | ||
703 | 50 | %define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}} | ||
704 | 51 | %endif | ||
705 | 52 | |||
706 | 53 | # ---------------------------------------------------------------------------- | ||
707 | 54 | # RPM build tools now automatically detect Perl module dependencies. This | ||
708 | 55 | # detection causes problems as it is broken in some versions, and it also | ||
709 | 56 | # provides unwanted dependencies from mandatory scripts in our package. | ||
710 | 57 | # It might not be possible to disable this in all versions of RPM, but here we | ||
711 | 58 | # try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as | ||
712 | 59 | # disabling here might fail, and that package has the most problems. | ||
713 | 60 | # See: | ||
714 | 61 | # http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides | ||
715 | 62 | # http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html | ||
716 | 63 | # ---------------------------------------------------------------------------- | ||
717 | 64 | %undefine __perl_provides | ||
718 | 65 | %undefine __perl_requires | ||
719 | 66 | |||
720 | 67 | ############################################################################## | ||
721 | 68 | # Command line handling | ||
722 | 69 | ############################################################################## | ||
723 | 70 | # | ||
724 | 71 | # To set options: | ||
725 | 72 | # | ||
726 | 73 | # $ rpmbuild --define="option <x>" ... | ||
727 | 74 | # | ||
728 | 75 | |||
729 | 76 | # ---------------------------------------------------------------------------- | ||
730 | 77 | # Commercial builds | ||
731 | 78 | # ---------------------------------------------------------------------------- | ||
732 | 79 | %if %{undefined commercial} | ||
733 | 80 | %define commercial 0 | ||
734 | 81 | %endif | ||
735 | 82 | |||
736 | 83 | # ---------------------------------------------------------------------------- | ||
737 | 84 | # Source name | ||
738 | 85 | # ---------------------------------------------------------------------------- | ||
739 | 86 | %if %{undefined src_base} | ||
740 | 87 | %define src_base Percona-Server | ||
741 | 88 | %endif | ||
742 | 89 | %define src_dir %{src_base}-%{mysql_version}-%{percona_server_version} | ||
743 | 90 | |||
744 | 91 | # ---------------------------------------------------------------------------- | ||
745 | 92 | # Feature set (storage engines, options). Default to community (everything) | ||
746 | 93 | # ---------------------------------------------------------------------------- | ||
747 | 94 | %if %{undefined feature_set} | ||
748 | 95 | %define feature_set community | ||
749 | 96 | %endif | ||
750 | 97 | |||
751 | 98 | # ---------------------------------------------------------------------------- | ||
752 | 99 | # Server comment strings | ||
753 | 100 | # ---------------------------------------------------------------------------- | ||
754 | 101 | %if %{undefined compilation_comment_debug} | ||
755 | 102 | %define compilation_comment_debug Percona Server - Debug (GPL), Release %{percona_server_version}, Revision %{gotrevision} | ||
756 | 103 | %endif | ||
757 | 104 | %if %{undefined compilation_comment_release} | ||
758 | 105 | %define compilation_comment_release Percona Server (GPL), Release %{percona_server_version}, Revision %{gotrevision} | ||
759 | 106 | %endif | ||
760 | 107 | |||
761 | 108 | |||
762 | 109 | # ---------------------------------------------------------------------------- | ||
763 | 110 | # Product and server suffixes | ||
764 | 111 | # ---------------------------------------------------------------------------- | ||
765 | 112 | %define product_suffix -56 | ||
766 | 113 | %if %{undefined product_suffix} | ||
767 | 114 | %if %{defined short_product_tag} | ||
768 | 115 | %define product_suffix -%{short_product_tag} | ||
769 | 116 | %else | ||
770 | 117 | %define product_suffix %{nil} | ||
771 | 118 | %endif | ||
772 | 119 | %endif | ||
773 | 120 | |||
774 | 121 | %define server_suffix %{product_suffix} | ||
775 | 122 | %if %{undefined server_suffix} | ||
776 | 123 | %define server_suffix %{nil} | ||
777 | 124 | %endif | ||
778 | 125 | |||
779 | 126 | # ---------------------------------------------------------------------------- | ||
780 | 127 | # Distribution support | ||
781 | 128 | # ---------------------------------------------------------------------------- | ||
782 | 129 | %if %{undefined distro_specific} | ||
783 | 130 | %define distro_specific 0 | ||
784 | 131 | %endif | ||
785 | 132 | %if %{distro_specific} | ||
786 | 133 | %if %(test -f /etc/enterprise-release && echo 1 || echo 0) | ||
787 | 134 | %define oelver %(rpm -qf --qf '%%{version}\\n' /etc/enterprise-release | sed -e 's/^\\([0-9]*\\).*/\\1/g') | ||
788 | 135 | %if "%oelver" == "4" | ||
789 | 136 | %define distro_description Oracle Enterprise Linux 4 | ||
790 | 137 | %define distro_releasetag oel4 | ||
791 | 138 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
792 | 139 | %define distro_requires chkconfig coreutils grep procps shadow-utils | ||
793 | 140 | %else | ||
794 | 141 | %if "%oelver" == "5" | ||
795 | 142 | %define distro_description Oracle Enterprise Linux 5 | ||
796 | 143 | %define distro_releasetag oel5 | ||
797 | 144 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
798 | 145 | %define distro_requires chkconfig coreutils grep procps shadow-utils | ||
799 | 146 | %else | ||
800 | 147 | %{error:Oracle Enterprise Linux %{oelver} is unsupported} | ||
801 | 148 | %endif | ||
802 | 149 | %endif | ||
803 | 150 | %else | ||
804 | 151 | %if %(test -f /etc/redhat-release && echo 1 || echo 0) | ||
805 | 152 | %define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g') | ||
806 | 153 | %if "%rhelver" == "4" | ||
807 | 154 | %define distro_description Red Hat Enterprise Linux 4 | ||
808 | 155 | %define distro_releasetag rhel4 | ||
809 | 156 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
810 | 157 | %define distro_requires chkconfig coreutils grep procps shadow-utils | ||
811 | 158 | %else | ||
812 | 159 | %if "%rhelver" == "5" | ||
813 | 160 | %define distro_description Red Hat Enterprise Linux 5 | ||
814 | 161 | %define distro_releasetag rhel5 | ||
815 | 162 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
816 | 163 | %define distro_requires chkconfig coreutils grep procps shadow-utils | ||
817 | 164 | %else | ||
818 | 165 | %{error:Red Hat Enterprise Linux %{rhelver} is unsupported} | ||
819 | 166 | %endif | ||
820 | 167 | %endif | ||
821 | 168 | %else | ||
822 | 169 | %if %(test -f /etc/SuSE-release && echo 1 || echo 0) | ||
823 | 170 | %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release) | ||
824 | 171 | %if "%susever" == "10" | ||
825 | 172 | %define distro_description SUSE Linux Enterprise Server 10 | ||
826 | 173 | %define distro_releasetag sles10 | ||
827 | 174 | %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel libaio-devel bison cmake | ||
828 | 175 | %define distro_requires aaa_base coreutils grep procps pwdutils | ||
829 | 176 | %else | ||
830 | 177 | %if "%susever" == "11" | ||
831 | 178 | %define distro_description SUSE Linux Enterprise Server 11 | ||
832 | 179 | %define distro_releasetag sles11 | ||
833 | 180 | %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel libaio-devel bison cmake | ||
834 | 181 | %define distro_requires aaa_base coreutils grep procps pwdutils | ||
835 | 182 | %else | ||
836 | 183 | %{error:SuSE %{susever} is unsupported} | ||
837 | 184 | %endif | ||
838 | 185 | %endif | ||
839 | 186 | %else | ||
840 | 187 | %{error:Unsupported distribution} | ||
841 | 188 | %endif | ||
842 | 189 | %endif | ||
843 | 190 | %endif | ||
844 | 191 | %else | ||
845 | 192 | %define generic_kernel %(uname -r | cut -d. -f1-2) | ||
846 | 193 | %define distro_description Generic Linux (kernel %{generic_kernel}) | ||
847 | 194 | %define distro_releasetag linux%{generic_kernel} | ||
848 | 195 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
849 | 196 | %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd | ||
850 | 197 | %endif | ||
851 | 198 | |||
852 | 199 | # ---------------------------------------------------------------------------- | ||
853 | 200 | # Support optional "tcmalloc" library (experimental) | ||
854 | 201 | # ---------------------------------------------------------------------------- | ||
855 | 202 | %if %{defined malloc_lib_target} | ||
856 | 203 | %define WITH_TCMALLOC 1 | ||
857 | 204 | %else | ||
858 | 205 | %define WITH_TCMALLOC 0 | ||
859 | 206 | %endif | ||
860 | 207 | |||
861 | 208 | ############################################################################## | ||
862 | 209 | # Configuration based upon above user input, not to be set directly | ||
863 | 210 | ############################################################################## | ||
864 | 211 | |||
865 | 212 | %if %{commercial} | ||
866 | 213 | %define license_files_server %{src_dir}/LICENSE.mysql | ||
867 | 214 | %define license_type Commercial | ||
868 | 215 | %else | ||
869 | 216 | %define license_files_server %{src_dir}/COPYING %{src_dir}/README | ||
870 | 217 | %define license_type GPL | ||
871 | 218 | %endif | ||
872 | 219 | |||
873 | 220 | ############################################################################## | ||
874 | 221 | # Main spec file section | ||
875 | 222 | ############################################################################## | ||
876 | 223 | |||
877 | 224 | Name: Percona-Server%{product_suffix} | ||
878 | 225 | Summary: Percona-Server: a very fast and reliable SQL database server | ||
879 | 226 | Group: Applications/Databases | ||
880 | 227 | Version: %{mysql_version} | ||
881 | 228 | Release: %{release} | ||
882 | 229 | Distribution: %{distro_description} | ||
883 | 230 | License: Copyright (c) 2000, 2010, %{mysql_vendor}. All rights reserved. Use is subject to license terms. Under %{license_type} license as shown in the Description field. | ||
884 | 231 | Source: http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-%{mysql_version}-%{majorversion}.%{minorversion}/source/%{src_dir}.tar.gz | ||
885 | 232 | URL: http://www.percona.com/ | ||
886 | 233 | Packager: Percona MySQL Development Team <mysqldev@percona.com> | ||
887 | 234 | Vendor: %{percona_server_vendor} | ||
888 | 235 | Provides: mysql-server | ||
889 | 236 | BuildRequires: %{distro_buildreq} | ||
890 | 237 | |||
891 | 238 | # Think about what you use here since the first step is to | ||
892 | 239 | # run a rm -rf | ||
893 | 240 | BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
894 | 241 | |||
895 | 242 | # From the manual | ||
896 | 243 | %description | ||
897 | 244 | The Percona Server software delivers a very fast, multi-threaded, multi-user, | ||
898 | 245 | and robust SQL (Structured Query Language) database server. Percona Server | ||
899 | 246 | is intended for mission-critical, heavy-load production systems. | ||
900 | 247 | |||
901 | 248 | Percona recommends that all production deployments be protected with a support | ||
902 | 249 | contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime, | ||
903 | 250 | be eligible for hot fixes, and boost your team's productivity. | ||
904 | 251 | |||
905 | 252 | ############################################################################## | ||
906 | 253 | # Sub package definition | ||
907 | 254 | ############################################################################## | ||
908 | 255 | |||
909 | 256 | %package -n Percona-Server-server%{product_suffix} | ||
910 | 257 | Summary: Percona Server: a very fast and reliable SQL database server | ||
911 | 258 | Group: Applications/Databases | ||
912 | 259 | Requires: %{distro_requires} Percona-Server-shared%{product_suffix} | ||
913 | 260 | Provides: mysql-server MySQL-server | ||
914 | 261 | |||
915 | 262 | %description -n Percona-Server-server%{product_suffix} | ||
916 | 263 | The Percona Server software delivers a very fast, multi-threaded, multi-user, | ||
917 | 264 | and robust SQL (Structured Query Language) database server. Percona Server | ||
918 | 265 | is intended for mission-critical, heavy-load production systems. | ||
919 | 266 | |||
920 | 267 | Percona recommends that all production deployments be protected with a support | ||
921 | 268 | contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime, | ||
922 | 269 | be eligible for hot fixes, and boost your team's productivity. | ||
923 | 270 | |||
924 | 271 | This package includes the Percona Server with XtraDB binary | ||
925 | 272 | as well as related utilities to run and administer Percona Server. | ||
926 | 273 | |||
927 | 274 | If you want to access and work with the database, you have to install | ||
928 | 275 | package "Percona-Server-client%{product_suffix}" as well! | ||
929 | 276 | |||
930 | 277 | # ---------------------------------------------------------------------------- | ||
931 | 278 | %package -n Percona-Server-client%{product_suffix} | ||
932 | 279 | Summary: Percona Server - Client | ||
933 | 280 | Group: Applications/Databases | ||
934 | 281 | Requires: Percona-Server-shared%{product_suffix} | ||
935 | 282 | Provides: mysql-client MySQL-client mysql MySQL | ||
936 | 283 | |||
937 | 284 | %description -n Percona-Server-client%{product_suffix} | ||
938 | 285 | This package contains the standard Percona Server client and administration tools. | ||
939 | 286 | |||
940 | 287 | For a description of Percona Server see http://www.percona.com/software/percona-server/ | ||
941 | 288 | |||
942 | 289 | # ---------------------------------------------------------------------------- | ||
943 | 290 | %package -n Percona-Server-test%{product_suffix} | ||
944 | 291 | Requires: Percona-Server-client%{product_suffix} perl | ||
945 | 292 | Summary: Percona Server - Test suite | ||
946 | 293 | Group: Applications/Databases | ||
947 | 294 | Provides: mysql-test | ||
948 | 295 | AutoReqProv: no | ||
949 | 296 | |||
950 | 297 | %description -n Percona-Server-test%{product_suffix} | ||
951 | 298 | This package contains the Percona Server regression test suite. | ||
952 | 299 | |||
953 | 300 | For a description of Percona Server see http://www.percona.com/software/percona-server/ | ||
954 | 301 | |||
955 | 302 | # ---------------------------------------------------------------------------- | ||
956 | 303 | %package -n Percona-Server-devel%{product_suffix} | ||
957 | 304 | Summary: Percona Server - Development header files and libraries | ||
958 | 305 | Group: Applications/Databases | ||
959 | 306 | Provides: mysql-devel | ||
960 | 307 | |||
961 | 308 | %description -n Percona-Server-devel%{product_suffix} | ||
962 | 309 | This package contains the development header files and libraries necessary | ||
963 | 310 | to develop Percona Server client applications. | ||
964 | 311 | |||
965 | 312 | For a description of Percona Server see http://www.percona.com/software/percona-server/ | ||
966 | 313 | |||
967 | 314 | # ---------------------------------------------------------------------------- | ||
968 | 315 | %package -n Percona-Server-shared%{product_suffix} | ||
969 | 316 | Summary: Percona Server - Shared libraries | ||
970 | 317 | Group: Applications/Databases | ||
971 | 318 | Provides: mysql-shared | ||
972 | 319 | |||
973 | 320 | %description -n Percona-Server-shared%{product_suffix} | ||
974 | 321 | This package contains the shared libraries (*.so*) which certain languages | ||
975 | 322 | and applications need to dynamically load and use Percona Server. | ||
976 | 323 | |||
977 | 324 | ############################################################################## | ||
978 | 325 | %prep | ||
979 | 326 | %setup -T -a 0 -c -n %{src_dir} | ||
980 | 327 | |||
981 | 328 | ############################################################################## | ||
982 | 329 | %build | ||
983 | 330 | |||
984 | 331 | # Be strict about variables, bail at earliest opportunity, etc. | ||
985 | 332 | set -uex | ||
986 | 333 | |||
987 | 334 | BuildUDF() { | ||
988 | 335 | cd UDF | ||
989 | 336 | CXX="${UDF_CXX:-g++}"\ | ||
990 | 337 | CXXFLAGS="$CXXFLAGS -I$RPM_BUILD_DIR/%{src_dir}/release/include" \ | ||
991 | 338 | ./configure --includedir=$RPM_BUILD_DIR/%{src_dir}/%{src_dir}/include \ | ||
992 | 339 | --libdir=%{_libdir}/mysql/plugin | ||
993 | 340 | make all | ||
994 | 341 | cd - | ||
995 | 342 | } | ||
996 | 343 | |||
997 | 344 | # Optional package files | ||
998 | 345 | touch optional-files-devel | ||
999 | 346 | |||
1000 | 347 | # | ||
1001 | 348 | # Set environment in order of preference, MYSQL_BUILD_* first, then variable | ||
1002 | 349 | # name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the | ||
1003 | 350 | # default RPM build environment. | ||
1004 | 351 | # | ||
1005 | 352 | # We set CXX=gcc by default to support so-called 'generic' binaries, where we | ||
1006 | 353 | # do not have a dependancy on libgcc/libstdc++. This only works while we do | ||
1007 | 354 | # not require C++ features such as exceptions, and may need to be removed at | ||
1008 | 355 | # a later date. | ||
1009 | 356 | # | ||
1010 | 357 | |||
1011 | 358 | # This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break | ||
1012 | 359 | # the compile in cmd-line-utils/readline - needs investigation, but for now | ||
1013 | 360 | # we simply unset it and use those specified directly in cmake. | ||
1014 | 361 | %if "%{_arch}" == "ia64" | ||
1015 | 362 | RPM_OPT_FLAGS= | ||
1016 | 363 | %endif | ||
1017 | 364 | |||
1018 | 365 | export PATH=${MYSQL_BUILD_PATH:-$PATH} | ||
1019 | 366 | export CC=${MYSQL_BUILD_CC:-${CC:-gcc}} | ||
1020 | 367 | export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}} | ||
1021 | 368 | export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}} | ||
1022 | 369 | export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}} | ||
1023 | 370 | export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}} | ||
1024 | 371 | export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}} | ||
1025 | 372 | export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-${MAKE_JFLAG:-}} | ||
1026 | 373 | |||
1027 | 374 | # Build debug mysqld and libmysqld.a | ||
1028 | 375 | mkdir debug | ||
1029 | 376 | ( | ||
1030 | 377 | cd debug | ||
1031 | 378 | # Attempt to remove any optimisation flags from the debug build | ||
1032 | 379 | CFLAGS=`echo " ${CFLAGS} " | \ | ||
1033 | 380 | sed -e 's/ -O[0-9]* / /' \ | ||
1034 | 381 | -e 's/ -unroll2 / /' \ | ||
1035 | 382 | -e 's/ -ip / /' \ | ||
1036 | 383 | -e 's/^ //' \ | ||
1037 | 384 | -e 's/ $//'` | ||
1038 | 385 | CXXFLAGS=`echo " ${CXXFLAGS} " | \ | ||
1039 | 386 | sed -e 's/ -O[0-9]* / /' \ | ||
1040 | 387 | -e 's/ -unroll2 / /' \ | ||
1041 | 388 | -e 's/ -ip / /' \ | ||
1042 | 389 | -e 's/^ //' \ | ||
1043 | 390 | -e 's/ $//'` | ||
1044 | 391 | # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before | ||
1045 | 392 | # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM | ||
1046 | 393 | ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \ | ||
1047 | 394 | -DCMAKE_BUILD_TYPE=Debug \ | ||
1048 | 395 | -DENABLE_DTRACE=OFF \ | ||
1049 | 396 | -DWITH_EMBEDDED_SERVER=OFF \ | ||
1050 | 397 | -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \ | ||
1051 | 398 | -DFEATURE_SET="%{feature_set}" \ | ||
1052 | 399 | -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \ | ||
1053 | 400 | -DMYSQL_SERVER_SUFFIX="%{server_suffix}" | ||
1054 | 401 | echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG | ||
1055 | 402 | make ${MAKE_JFLAG} | ||
1056 | 403 | ) | ||
1057 | 404 | # Build full release | ||
1058 | 405 | mkdir release | ||
1059 | 406 | ( | ||
1060 | 407 | cd release | ||
1061 | 408 | # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before | ||
1062 | 409 | # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM | ||
1063 | 410 | ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \ | ||
1064 | 411 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
1065 | 412 | -DENABLE_DTRACE=OFF \ | ||
1066 | 413 | -DWITH_EMBEDDED_SERVER=OFF \ | ||
1067 | 414 | -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \ | ||
1068 | 415 | -DFEATURE_SET="%{feature_set}" \ | ||
1069 | 416 | -DCOMPILATION_COMMENT="%{compilation_comment_release}" \ | ||
1070 | 417 | -DMYSQL_SERVER_SUFFIX="%{server_suffix}" | ||
1071 | 418 | echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG | ||
1072 | 419 | make ${MAKE_JFLAG} | ||
1073 | 420 | cd ../%{src_dir} | ||
1074 | 421 | d="`pwd`" | ||
1075 | 422 | BuildUDF | ||
1076 | 423 | cd "$d" | ||
1077 | 424 | ) | ||
1078 | 425 | |||
1079 | 426 | # For the debuginfo extraction stage, some source files are not located in the release | ||
1080 | 427 | # and debug dirs, but in the source dir. Make a link there to avoid errors in the | ||
1081 | 428 | # strip phase. | ||
1082 | 429 | for d in debug release | ||
1083 | 430 | do | ||
1084 | 431 | for f in pars/lexyy.cc pars/pars0grm.cc pars/pars0grm.y pars/pars0lex.l \ | ||
1085 | 432 | fts/fts0pars.cc fts/fts0pars.y fts/fts0blex.l fts/fts0blex.cc \ | ||
1086 | 433 | include/fts0pars.h fts/fts0tlex.cc fts/fts0tlex.l | ||
1087 | 434 | do | ||
1088 | 435 | ln -s "../../../%{src_dir}/storage/innobase/$f" "$d/storage/innobase/" | ||
1089 | 436 | done | ||
1090 | 437 | mkdir -p "$d/storage/include/" | ||
1091 | 438 | ln -s "../../../%{src_dir}/storage/innobase/include/fts0tlex.h" \ | ||
1092 | 439 | "$d/storage/include/" | ||
1093 | 440 | ln -s "../../../%{src_dir}/storage/innobase/include/fts0blex.h" \ | ||
1094 | 441 | "$d/storage/include/" | ||
1095 | 442 | done | ||
1096 | 443 | |||
1097 | 444 | # Use the build root for temporary storage of the shared libraries. | ||
1098 | 445 | RBR=$RPM_BUILD_ROOT | ||
1099 | 446 | |||
1100 | 447 | # Clean up the BuildRoot first | ||
1101 | 448 | [ "$RBR" != "/" ] && [ -d "$RBR" ] && rm -rf "$RBR"; | ||
1102 | 449 | |||
1103 | 450 | # For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). This | ||
1104 | 451 | # needs to be during build phase as $CC is not set during install. | ||
1105 | 452 | if "$CC" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1 | ||
1106 | 453 | then | ||
1107 | 454 | libgcc=`$CC $CFLAGS --print-libgcc-file` | ||
1108 | 455 | if [ -f $libgcc ] | ||
1109 | 456 | then | ||
1110 | 457 | mkdir -p $RBR%{_libdir}/mysql | ||
1111 | 458 | install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a | ||
1112 | 459 | echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel | ||
1113 | 460 | fi | ||
1114 | 461 | fi | ||
1115 | 462 | |||
1116 | 463 | # Move temporarily the saved files to the BUILD directory since the BUILDROOT | ||
1117 | 464 | # dir will be cleaned at the start of the install phase | ||
1118 | 465 | mkdir -p "$(dirname $RPM_BUILD_DIR/%{_libdir})" | ||
1119 | 466 | mv $RBR%{_libdir} $RPM_BUILD_DIR/%{_libdir} | ||
1120 | 467 | |||
1121 | 468 | ############################################################################## | ||
1122 | 469 | %install | ||
1123 | 470 | |||
1124 | 471 | RBR=$RPM_BUILD_ROOT | ||
1125 | 472 | MBD=$RPM_BUILD_DIR/%{src_dir} | ||
1126 | 473 | |||
1127 | 474 | # Move back the libdir from BUILD dir to BUILDROOT | ||
1128 | 475 | mkdir -p "$(dirname $RBR%{_libdir})" | ||
1129 | 476 | mv $RPM_BUILD_DIR/%{_libdir} $RBR%{_libdir} | ||
1130 | 477 | |||
1131 | 478 | # Ensure that needed directories exists | ||
1132 | 479 | install -d $RBR%{_sysconfdir}/{logrotate.d,init.d} | ||
1133 | 480 | install -d $RBR%{mysqldatadir}/mysql | ||
1134 | 481 | install -d $RBR%{_datadir}/mysql-test | ||
1135 | 482 | install -d $RBR%{_datadir}/mysql/SELinux/RHEL4 | ||
1136 | 483 | install -d $RBR%{_includedir} | ||
1137 | 484 | install -d $RBR%{_libdir} | ||
1138 | 485 | install -d $RBR%{_mandir} | ||
1139 | 486 | install -d $RBR%{_sbindir} | ||
1140 | 487 | install -d $RBR%{_libdir}/mysql/plugin | ||
1141 | 488 | |||
1142 | 489 | ( | ||
1143 | 490 | cd $MBD/release | ||
1144 | 491 | make DESTDIR=$RBR benchdir_root=%{_datadir} install | ||
1145 | 492 | d="`pwd`" | ||
1146 | 493 | cd $MBD/%{src_dir}/UDF | ||
1147 | 494 | make DESTDIR=$RBR benchdir_root=%{_datadir} install | ||
1148 | 495 | cd "$d" | ||
1149 | 496 | ) | ||
1150 | 497 | |||
1151 | 498 | # Install all binaries | ||
1152 | 499 | ( | ||
1153 | 500 | cd $MBD/release | ||
1154 | 501 | make DESTDIR=$RBR install | ||
1155 | 502 | ) | ||
1156 | 503 | |||
1157 | 504 | # FIXME: at some point we should stop doing this and just install everything | ||
1158 | 505 | # FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming | ||
1159 | 506 | # FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax | ||
1160 | 507 | mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/ | ||
1161 | 508 | |||
1162 | 509 | # Install logrotate and autostart | ||
1163 | 510 | install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql | ||
1164 | 511 | install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql | ||
1165 | 512 | |||
1166 | 513 | # Create a symlink "rcmysql", pointing to the init.script. SuSE users | ||
1167 | 514 | # will appreciate that, as all services usually offer this. | ||
1168 | 515 | ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql | ||
1169 | 516 | |||
1170 | 517 | # Touch the place where the my.cnf config file might be located | ||
1171 | 518 | # Just to make sure it's in the file list and marked as a config file | ||
1172 | 519 | touch $RBR%{_sysconfdir}/my.cnf | ||
1173 | 520 | |||
1174 | 521 | # Install SELinux files in datadir | ||
1175 | 522 | install -m 600 $MBD/%{src_dir}/support-files/RHEL4-SElinux/mysql.{fc,te} \ | ||
1176 | 523 | $RBR%{_datadir}/mysql/SELinux/RHEL4 | ||
1177 | 524 | |||
1178 | 525 | %if %{WITH_TCMALLOC} | ||
1179 | 526 | # Even though this is a shared library, put it under /usr/lib*/mysql, so it | ||
1180 | 527 | # doesn't conflict with possible shared lib by the same name in /usr/lib*. See | ||
1181 | 528 | # `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used. | ||
1182 | 529 | install -m 644 "%{malloc_lib_source}" \ | ||
1183 | 530 | "$RBR%{_libdir}/mysql/%{malloc_lib_target}" | ||
1184 | 531 | %endif | ||
1185 | 532 | |||
1186 | 533 | # Remove man pages we explicitly do not want to package, avoids 'unpackaged | ||
1187 | 534 | # files' warning. | ||
1188 | 535 | rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1* | ||
1189 | 536 | |||
1190 | 537 | ############################################################################## | ||
1191 | 538 | # Post processing actions, i.e. when installed | ||
1192 | 539 | ############################################################################## | ||
1193 | 540 | |||
1194 | 541 | %pre -n Percona-Server-server%{product_suffix} | ||
1195 | 542 | |||
1196 | 543 | # ATTENTION: Parts of this are duplicated in the "triggerpostun" ! | ||
1197 | 544 | |||
1198 | 545 | mysql_datadir=%{mysqldatadir} | ||
1199 | 546 | # Check if we can safely upgrade. An upgrade is only safe if it's from one | ||
1200 | 547 | # of our RPMs in the same version family. | ||
1201 | 548 | |||
1202 | 549 | installed=`rpm -q --whatprovides mysql-server 2> /dev/null` | ||
1203 | 550 | if [ $? -eq 0 -a -n "$installed" ]; then | ||
1204 | 551 | vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1` | ||
1205 | 552 | version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1` | ||
1206 | 553 | myoldvendor='%{mysql_old_vendor}' | ||
1207 | 554 | myvendor_2='%{mysql_vendor_2}' | ||
1208 | 555 | myvendor='%{mysql_vendor}' | ||
1209 | 556 | perconaservervendor='%{percona_server_vendor}' | ||
1210 | 557 | myversion='%{mysql_version}' | ||
1211 | 558 | |||
1212 | 559 | old_family=`echo $version \ | ||
1213 | 560 | | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'` | ||
1214 | 561 | new_family=`echo $myversion \ | ||
1215 | 562 | | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'` | ||
1216 | 563 | |||
1217 | 564 | [ -z "$vendor" ] && vendor='<unknown>' | ||
1218 | 565 | [ -z "$old_family" ] && old_family="<unrecognized version $version>" | ||
1219 | 566 | [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>" | ||
1220 | 567 | |||
1221 | 568 | error_text= | ||
1222 | 569 | if [ "$vendor" != "$myoldvendor" \ | ||
1223 | 570 | -a "$vendor" != "$myvendor_2" \ | ||
1224 | 571 | -a "$vendor" != "$myvendor" \ | ||
1225 | 572 | -a "$vendor" != "$perconaservervendor" ]; then | ||
1226 | 573 | error_text="$error_text | ||
1227 | 574 | The current MySQL server package is provided by a different | ||
1228 | 575 | vendor ($vendor) than $myoldvendor, $myvendor_2, | ||
1229 | 576 | $myvendor, or $perconaservervendor. | ||
1230 | 577 | Some files may be installed to different locations, including log | ||
1231 | 578 | files and the service startup script in %{_sysconfdir}/init.d/. | ||
1232 | 579 | " | ||
1233 | 580 | fi | ||
1234 | 581 | |||
1235 | 582 | if [ "$old_family" != "$new_family" ]; then | ||
1236 | 583 | error_text="$error_text | ||
1237 | 584 | Upgrading directly from MySQL $old_family to MySQL $new_family may not | ||
1238 | 585 | be safe in all cases. A manual dump and restore using mysqldump is | ||
1239 | 586 | recommended. It is important to review the MySQL manual's Upgrading | ||
1240 | 587 | section for version-specific incompatibilities. | ||
1241 | 588 | " | ||
1242 | 589 | fi | ||
1243 | 590 | |||
1244 | 591 | if [ -n "$error_text" ]; then | ||
1245 | 592 | cat <<HERE >&2 | ||
1246 | 593 | |||
1247 | 594 | ****************************************************************** | ||
1248 | 595 | A MySQL server package ($installed) is installed. | ||
1249 | 596 | $error_text | ||
1250 | 597 | A manual upgrade is required. | ||
1251 | 598 | |||
1252 | 599 | - Ensure that you have a complete, working backup of your data and my.cnf | ||
1253 | 600 | files | ||
1254 | 601 | - Shut down the MySQL server cleanly | ||
1255 | 602 | - Remove the existing MySQL packages. Usually this command will | ||
1256 | 603 | list the packages you should remove: | ||
1257 | 604 | rpm -qa | grep -i '^mysql-' | ||
1258 | 605 | |||
1259 | 606 | You may choose to use 'rpm --nodeps -ev <package-name>' to remove | ||
1260 | 607 | the package which contains the mysqlclient shared library. The | ||
1261 | 608 | library will be reinstalled by the MySQL-shared-compat package. | ||
1262 | 609 | - Install the new MySQL packages supplied by $myvendor | ||
1263 | 610 | - Ensure that the MySQL server is started | ||
1264 | 611 | - Run the 'mysql_upgrade' program | ||
1265 | 612 | |||
1266 | 613 | This is a brief description of the upgrade process. Important details | ||
1267 | 614 | can be found in the MySQL manual, in the Upgrading section. | ||
1268 | 615 | ****************************************************************** | ||
1269 | 616 | HERE | ||
1270 | 617 | exit 1 | ||
1271 | 618 | fi | ||
1272 | 619 | fi | ||
1273 | 620 | |||
1274 | 621 | # We assume that if there is exactly one ".pid" file, | ||
1275 | 622 | # it contains the valid PID of a running MySQL server. | ||
1276 | 623 | NR_PID_FILES=`ls $mysql_datadir/*.pid 2>/dev/null | wc -l` | ||
1277 | 624 | case $NR_PID_FILES in | ||
1278 | 625 | 0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server | ||
1279 | 626 | 1 ) SERVER_TO_START='true' ;; | ||
1280 | 627 | * ) SERVER_TO_START='' # Situation not clear | ||
1281 | 628 | SEVERAL_PID_FILES=true ;; | ||
1282 | 629 | esac | ||
1283 | 630 | # That logic may be debated: We might check whether it is non-empty, | ||
1284 | 631 | # contains exactly one number (possibly a PID), and whether "ps" finds it. | ||
1285 | 632 | # OTOH, if there is no such process, it means a crash without a cleanup - | ||
1286 | 633 | # is that a reason not to start a new server after upgrade? | ||
1287 | 634 | |||
1288 | 635 | STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER | ||
1289 | 636 | |||
1290 | 637 | if [ -f $STATUS_FILE ]; then | ||
1291 | 638 | echo "Some previous upgrade was not finished:" | ||
1292 | 639 | ls -ld $STATUS_FILE | ||
1293 | 640 | echo "Please check its status, then do" | ||
1294 | 641 | echo " rm $STATUS_FILE" | ||
1295 | 642 | echo "before repeating the MySQL upgrade." | ||
1296 | 643 | exit 1 | ||
1297 | 644 | elif [ -n "$SEVERAL_PID_FILES" ] ; then | ||
1298 | 645 | echo "Your MySQL directory '$mysql_datadir' has more than one PID file:" | ||
1299 | 646 | ls -ld $mysql_datadir/*.pid | ||
1300 | 647 | echo "Please check which one (if any) corresponds to a running server" | ||
1301 | 648 | echo "and delete all others before repeating the MySQL upgrade." | ||
1302 | 649 | exit 1 | ||
1303 | 650 | fi | ||
1304 | 651 | |||
1305 | 652 | NEW_VERSION=%{mysql_version}-%{release} | ||
1306 | 653 | |||
1307 | 654 | # The "pre" section code is also run on a first installation, | ||
1308 | 655 | # when there is no data directory yet. Protect against error messages. | ||
1309 | 656 | if [ -d $mysql_datadir ] ; then | ||
1310 | 657 | echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE | ||
1311 | 658 | echo "'pre' step running at `date`" >> $STATUS_FILE | ||
1312 | 659 | echo >> $STATUS_FILE | ||
1313 | 660 | echo "ERR file(s):" >> $STATUS_FILE | ||
1314 | 661 | ls -ltr $mysql_datadir/*.err >> $STATUS_FILE | ||
1315 | 662 | echo >> $STATUS_FILE | ||
1316 | 663 | echo "Latest 'Version' line in latest file:" >> $STATUS_FILE | ||
1317 | 664 | grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \ | ||
1318 | 665 | tail -1 >> $STATUS_FILE | ||
1319 | 666 | echo >> $STATUS_FILE | ||
1320 | 667 | |||
1321 | 668 | if [ -n "$SERVER_TO_START" ] ; then | ||
1322 | 669 | # There is only one PID file, race possibility ignored | ||
1323 | 670 | echo "PID file:" >> $STATUS_FILE | ||
1324 | 671 | ls -l $mysql_datadir/*.pid >> $STATUS_FILE | ||
1325 | 672 | cat $mysql_datadir/*.pid >> $STATUS_FILE | ||
1326 | 673 | echo >> $STATUS_FILE | ||
1327 | 674 | echo "Server process:" >> $STATUS_FILE | ||
1328 | 675 | ps -fp `cat $mysql_datadir/*.pid` >> $STATUS_FILE | ||
1329 | 676 | echo >> $STATUS_FILE | ||
1330 | 677 | echo "SERVER_TO_START=$SERVER_TO_START" >> $STATUS_FILE | ||
1331 | 678 | else | ||
1332 | 679 | # Take a note we checked it ... | ||
1333 | 680 | echo "PID file:" >> $STATUS_FILE | ||
1334 | 681 | ls -l $mysql_datadir/*.pid >> $STATUS_FILE 2>&1 | ||
1335 | 682 | fi | ||
1336 | 683 | fi | ||
1337 | 684 | |||
1338 | 685 | # Shut down a previously installed server first | ||
1339 | 686 | # Note we *could* make that depend on $SERVER_TO_START, but we rather don't, | ||
1340 | 687 | # so a "stop" is attempted even if there is no PID file. | ||
1341 | 688 | # (Maybe the "stop" doesn't work then, but we might fix that in itself.) | ||
1342 | 689 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
1343 | 690 | %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1 | ||
1344 | 691 | echo "Giving mysqld 5 seconds to exit nicely" | ||
1345 | 692 | sleep 5 | ||
1346 | 693 | fi | ||
1347 | 694 | |||
1348 | 695 | %post -n Percona-Server-server%{product_suffix} | ||
1349 | 696 | |||
1350 | 697 | # ATTENTION: Parts of this are duplicated in the "triggerpostun" ! | ||
1351 | 698 | |||
1352 | 699 | mysql_datadir=%{mysqldatadir} | ||
1353 | 700 | NEW_VERSION=%{mysql_version}-%{release} | ||
1354 | 701 | STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER | ||
1355 | 702 | |||
1356 | 703 | # ---------------------------------------------------------------------- | ||
1357 | 704 | # Create data directory if needed, check whether upgrade or install | ||
1358 | 705 | # ---------------------------------------------------------------------- | ||
1359 | 706 | if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi | ||
1360 | 707 | if [ -f $STATUS_FILE ] ; then | ||
1361 | 708 | SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-` | ||
1362 | 709 | else | ||
1363 | 710 | SERVER_TO_START='' | ||
1364 | 711 | fi | ||
1365 | 712 | # echo "Analyzed: SERVER_TO_START=$SERVER_TO_START" | ||
1366 | 713 | if [ ! -d $mysql_datadir/mysql ] ; then | ||
1367 | 714 | mkdir $mysql_datadir/mysql; | ||
1368 | 715 | echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE | ||
1369 | 716 | else | ||
1370 | 717 | # If the directory exists, we may assume it is an upgrade. | ||
1371 | 718 | echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE | ||
1372 | 719 | fi | ||
1373 | 720 | if [ ! -d $mysql_datadir/test ] ; then mkdir $mysql_datadir/test; fi | ||
1374 | 721 | |||
1375 | 722 | # ---------------------------------------------------------------------- | ||
1376 | 723 | # Make MySQL start/shutdown automatically when the machine does it. | ||
1377 | 724 | # ---------------------------------------------------------------------- | ||
1378 | 725 | # NOTE: This still needs to be debated. Should we check whether these links | ||
1379 | 726 | # for the other run levels exist(ed) before the upgrade? | ||
1380 | 727 | # use chkconfig on Enterprise Linux and newer SuSE releases | ||
1381 | 728 | if [ -x /sbin/chkconfig ] ; then | ||
1382 | 729 | /sbin/chkconfig --add mysql | ||
1383 | 730 | # use insserv for older SuSE Linux versions | ||
1384 | 731 | elif [ -x /sbin/insserv ] ; then | ||
1385 | 732 | /sbin/insserv %{_sysconfdir}/init.d/mysql | ||
1386 | 733 | fi | ||
1387 | 734 | |||
1388 | 735 | # ---------------------------------------------------------------------- | ||
1389 | 736 | # Create a MySQL user and group. Do not report any problems if it already | ||
1390 | 737 | # exists. | ||
1391 | 738 | # ---------------------------------------------------------------------- | ||
1392 | 739 | groupadd -r %{mysqld_group} 2> /dev/null || true | ||
1393 | 740 | useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \ | ||
1394 | 741 | -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true | ||
1395 | 742 | # The user may already exist, make sure it has the proper group nevertheless | ||
1396 | 743 | # (BUG#12823) | ||
1397 | 744 | usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true | ||
1398 | 745 | |||
1399 | 746 | # ---------------------------------------------------------------------- | ||
1400 | 747 | # Change permissions so that the user that will run the MySQL daemon | ||
1401 | 748 | # owns all database files. | ||
1402 | 749 | # ---------------------------------------------------------------------- | ||
1403 | 750 | chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir | ||
1404 | 751 | |||
1405 | 752 | # ---------------------------------------------------------------------- | ||
1406 | 753 | # Initiate databases if needed | ||
1407 | 754 | # ---------------------------------------------------------------------- | ||
1408 | 755 | %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} | ||
1409 | 756 | |||
1410 | 757 | # ---------------------------------------------------------------------- | ||
1411 | 758 | # Upgrade databases if needed would go here - but it cannot be automated yet | ||
1412 | 759 | # ---------------------------------------------------------------------- | ||
1413 | 760 | |||
1414 | 761 | # ---------------------------------------------------------------------- | ||
1415 | 762 | # Change permissions again to fix any new files. | ||
1416 | 763 | # ---------------------------------------------------------------------- | ||
1417 | 764 | chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir | ||
1418 | 765 | |||
1419 | 766 | # ---------------------------------------------------------------------- | ||
1420 | 767 | # Fix permissions for the permission database so that only the user | ||
1421 | 768 | # can read them. | ||
1422 | 769 | # ---------------------------------------------------------------------- | ||
1423 | 770 | chmod -R og-rw $mysql_datadir/mysql | ||
1424 | 771 | |||
1425 | 772 | # ---------------------------------------------------------------------- | ||
1426 | 773 | # install SELinux files - but don't override existing ones | ||
1427 | 774 | # ---------------------------------------------------------------------- | ||
1428 | 775 | SETARGETDIR=/etc/selinux/targeted/src/policy | ||
1429 | 776 | SEDOMPROG=$SETARGETDIR/domains/program | ||
1430 | 777 | SECONPROG=$SETARGETDIR/file_contexts/program | ||
1431 | 778 | if [ -f /etc/redhat-release ] \ | ||
1432 | 779 | && (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \ | ||
1433 | 780 | || grep -q "CentOS release 4" /etc/redhat-release) ; then | ||
1434 | 781 | echo | ||
1435 | 782 | echo | ||
1436 | 783 | echo 'Notes regarding SELinux on this platform:' | ||
1437 | 784 | echo '=========================================' | ||
1438 | 785 | echo | ||
1439 | 786 | echo 'The default policy might cause server startup to fail because it is' | ||
1440 | 787 | echo 'not allowed to access critical files. In this case, please update' | ||
1441 | 788 | echo 'your installation.' | ||
1442 | 789 | echo | ||
1443 | 790 | echo 'The default policy might also cause inavailability of SSL related' | ||
1444 | 791 | echo 'features because the server is not allowed to access /dev/random' | ||
1445 | 792 | echo 'and /dev/urandom. If this is a problem, please do the following:' | ||
1446 | 793 | echo | ||
1447 | 794 | echo ' 1) install selinux-policy-targeted-sources from your OS vendor' | ||
1448 | 795 | echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':' | ||
1449 | 796 | echo ' allow mysqld_t random_device_t:chr_file read;' | ||
1450 | 797 | echo ' allow mysqld_t urandom_device_t:chr_file read;' | ||
1451 | 798 | echo ' 3) cd to '$SETARGETDIR' and issue the following command:' | ||
1452 | 799 | echo ' make load' | ||
1453 | 800 | echo | ||
1454 | 801 | echo | ||
1455 | 802 | fi | ||
1456 | 803 | |||
1457 | 804 | if [ -x sbin/restorecon ] ; then | ||
1458 | 805 | sbin/restorecon -R var/lib/mysql | ||
1459 | 806 | fi | ||
1460 | 807 | |||
1461 | 808 | # Was the server running before the upgrade? If so, restart the new one. | ||
1462 | 809 | if [ "$SERVER_TO_START" = "true" ] ; then | ||
1463 | 810 | # Restart in the same way that mysqld will be started normally. | ||
1464 | 811 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
1465 | 812 | %{_sysconfdir}/init.d/mysql start | ||
1466 | 813 | echo "Giving mysqld 5 seconds to start" | ||
1467 | 814 | sleep 5 | ||
1468 | 815 | fi | ||
1469 | 816 | fi | ||
1470 | 817 | |||
1471 | 818 | echo "Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit." | ||
1472 | 819 | echo "Run the following commands to create these functions:" | ||
1473 | 820 | echo "mysql -e \"CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'\"" | ||
1474 | 821 | echo "mysql -e \"CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'\"" | ||
1475 | 822 | echo "mysql -e \"CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'\"" | ||
1476 | 823 | echo "See http://code.google.com/p/maatkit/source/browse/trunk/udf for more details" | ||
1477 | 824 | |||
1478 | 825 | # Collect an upgrade history ... | ||
1479 | 826 | echo "Upgrade/install finished at `date`" >> $STATUS_FILE | ||
1480 | 827 | echo >> $STATUS_FILE | ||
1481 | 828 | echo "=====" >> $STATUS_FILE | ||
1482 | 829 | STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY | ||
1483 | 830 | cat $STATUS_FILE >> $STATUS_HISTORY | ||
1484 | 831 | mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun" | ||
1485 | 832 | |||
1486 | 833 | |||
1487 | 834 | #echo "Thank you for installing the MySQL Community Server! For Production | ||
1488 | 835 | #systems, we recommend MySQL Enterprise, which contains enterprise-ready | ||
1489 | 836 | #software, intelligent advisory services, and full production support with | ||
1490 | 837 | #scheduled service packs and more. Visit www.mysql.com/enterprise for more | ||
1491 | 838 | #information." | ||
1492 | 839 | |||
1493 | 840 | %preun -n Percona-Server-server%{product_suffix} | ||
1494 | 841 | |||
1495 | 842 | # Which '$1' does this refer to? Fedora docs have info: | ||
1496 | 843 | # " ... a count of the number of versions of the package that are installed. | ||
1497 | 844 | # Action Count | ||
1498 | 845 | # Install the first time 1 | ||
1499 | 846 | # Upgrade 2 or higher (depending on the number of versions installed) | ||
1500 | 847 | # Remove last version of package 0 " | ||
1501 | 848 | # | ||
1502 | 849 | # http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html | ||
1503 | 850 | |||
1504 | 851 | if [ $1 = 0 ] ; then | ||
1505 | 852 | # Stop MySQL before uninstalling it | ||
1506 | 853 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
1507 | 854 | %{_sysconfdir}/init.d/mysql stop > /dev/null | ||
1508 | 855 | # Remove autostart of MySQL | ||
1509 | 856 | # use chkconfig on Enterprise Linux and newer SuSE releases | ||
1510 | 857 | if [ -x /sbin/chkconfig ] ; then | ||
1511 | 858 | /sbin/chkconfig --del mysql | ||
1512 | 859 | # For older SuSE Linux versions | ||
1513 | 860 | elif [ -x /sbin/insserv ] ; then | ||
1514 | 861 | /sbin/insserv -r %{_sysconfdir}/init.d/mysql | ||
1515 | 862 | fi | ||
1516 | 863 | fi | ||
1517 | 864 | fi | ||
1518 | 865 | |||
1519 | 866 | # We do not remove the mysql user since it may still own a lot of | ||
1520 | 867 | # database files. | ||
1521 | 868 | |||
1522 | 869 | %triggerpostun -n Percona-Server-server%{product_suffix} --MySQL-server-community | ||
1523 | 870 | |||
1524 | 871 | # Setup: We renamed this package, so any existing "server-community" | ||
1525 | 872 | # package will be removed when this "server" is installed. | ||
1526 | 873 | # Problem: RPM will first run the "pre" and "post" sections of this script, | ||
1527 | 874 | # and only then the "preun" of that old community server. | ||
1528 | 875 | # But this "preun" includes stopping the server and uninstalling the service, | ||
1529 | 876 | # "chkconfig --del mysql" which removes the symlinks to the start script. | ||
1530 | 877 | # Solution: *After* the community server got removed, restart this server | ||
1531 | 878 | # and re-install the service. | ||
1532 | 879 | # | ||
1533 | 880 | # For information about triggers in spec files, see the Fedora docs: | ||
1534 | 881 | # http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html | ||
1535 | 882 | # For all details of this code, see the "pre" and "post" sections. | ||
1536 | 883 | |||
1537 | 884 | mysql_datadir=%{mysqldatadir} | ||
1538 | 885 | NEW_VERSION=%{mysql_version}-%{release} | ||
1539 | 886 | STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST # Note the difference! | ||
1540 | 887 | STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY | ||
1541 | 888 | |||
1542 | 889 | if [ -f $STATUS_FILE ] ; then | ||
1543 | 890 | SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-` | ||
1544 | 891 | else | ||
1545 | 892 | # This should never happen, but let's be prepared | ||
1546 | 893 | SERVER_TO_START='' | ||
1547 | 894 | fi | ||
1548 | 895 | echo "Analyzed: SERVER_TO_START=$SERVER_TO_START" | ||
1549 | 896 | |||
1550 | 897 | if [ -x /sbin/chkconfig ] ; then | ||
1551 | 898 | /sbin/chkconfig --add mysql | ||
1552 | 899 | # use insserv for older SuSE Linux versions | ||
1553 | 900 | elif [ -x /sbin/insserv ] ; then | ||
1554 | 901 | /sbin/insserv %{_sysconfdir}/init.d/mysql | ||
1555 | 902 | fi | ||
1556 | 903 | |||
1557 | 904 | # Was the server running before the upgrade? If so, restart the new one. | ||
1558 | 905 | if [ "$SERVER_TO_START" = "true" ] ; then | ||
1559 | 906 | # Restart in the same way that mysqld will be started normally. | ||
1560 | 907 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
1561 | 908 | %{_sysconfdir}/init.d/mysql start | ||
1562 | 909 | echo "Giving mysqld 5 seconds to start" | ||
1563 | 910 | sleep 5 | ||
1564 | 911 | fi | ||
1565 | 912 | fi | ||
1566 | 913 | |||
1567 | 914 | echo "Trigger 'postun --community' finished at `date`" >> $STATUS_HISTORY | ||
1568 | 915 | echo >> $STATUS_HISTORY | ||
1569 | 916 | echo "=====" >> $STATUS_HISTORY | ||
1570 | 917 | |||
1571 | 918 | |||
1572 | 919 | # ---------------------------------------------------------------------- | ||
1573 | 920 | # Clean up the BuildRoot after build is done | ||
1574 | 921 | # ---------------------------------------------------------------------- | ||
1575 | 922 | %clean | ||
1576 | 923 | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \ | ||
1577 | 924 | && rm -rf $RPM_BUILD_ROOT; | ||
1578 | 925 | |||
1579 | 926 | ############################################################################## | ||
1580 | 927 | # Files section | ||
1581 | 928 | ############################################################################## | ||
1582 | 929 | |||
1583 | 930 | %files -n Percona-Server-server%{product_suffix} | ||
1584 | 931 | %defattr(-,root,root,0755) | ||
1585 | 932 | |||
1586 | 933 | %if %{defined license_files_server} | ||
1587 | 934 | %doc %{license_files_server} | ||
1588 | 935 | %endif | ||
1589 | 936 | %doc release/Docs/INFO_SRC | ||
1590 | 937 | %doc release/Docs/INFO_BIN | ||
1591 | 938 | %doc release/support-files/my-*.cnf | ||
1592 | 939 | |||
1593 | 940 | %doc %attr(644, root, root) %{_infodir}/mysql.info* | ||
1594 | 941 | |||
1595 | 942 | %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1* | ||
1596 | 943 | %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1* | ||
1597 | 944 | %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1* | ||
1598 | 945 | %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1* | ||
1599 | 946 | %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1* | ||
1600 | 947 | %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1* | ||
1601 | 948 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1* | ||
1602 | 949 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1* | ||
1603 | 950 | %doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1* | ||
1604 | 951 | %doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1* | ||
1605 | 952 | %doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1* | ||
1606 | 953 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1* | ||
1607 | 954 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1* | ||
1608 | 955 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1* | ||
1609 | 956 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1* | ||
1610 | 957 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1* | ||
1611 | 958 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1* | ||
1612 | 959 | %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1* | ||
1613 | 960 | %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1* | ||
1614 | 961 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1* | ||
1615 | 962 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1* | ||
1616 | 963 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1* | ||
1617 | 964 | %doc %attr(644, root, man) %{_mandir}/man1/perror.1* | ||
1618 | 965 | %doc %attr(644, root, man) %{_mandir}/man1/replace.1* | ||
1619 | 966 | %doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1* | ||
1620 | 967 | %doc %attr(644, root, man) %{_mandir}/man1/resolveip.1* | ||
1621 | 968 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1* | ||
1622 | 969 | |||
1623 | 970 | %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf | ||
1624 | 971 | |||
1625 | 972 | %attr(755, root, root) %{_bindir}/innochecksum | ||
1626 | 973 | %attr(755, root, root) %{_bindir}/my_print_defaults | ||
1627 | 974 | %attr(755, root, root) %{_bindir}/myisam_ftdump | ||
1628 | 975 | %attr(755, root, root) %{_bindir}/myisamchk | ||
1629 | 976 | %attr(755, root, root) %{_bindir}/myisamlog | ||
1630 | 977 | %attr(755, root, root) %{_bindir}/myisampack | ||
1631 | 978 | %attr(755, root, root) %{_bindir}/mysql_convert_table_format | ||
1632 | 979 | %attr(755, root, root) %{_bindir}/mysql_fix_extensions | ||
1633 | 980 | %attr(755, root, root) %{_bindir}/mysql_install_db | ||
1634 | 981 | %attr(755, root, root) %{_bindir}/mysql_secure_installation | ||
1635 | 982 | %attr(755, root, root) %{_bindir}/mysql_setpermission | ||
1636 | 983 | %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql | ||
1637 | 984 | %attr(755, root, root) %{_bindir}/mysql_upgrade | ||
1638 | 985 | %attr(755, root, root) %{_bindir}/mysql_plugin | ||
1639 | 986 | %attr(755, root, root) %{_bindir}/mysql_zap | ||
1640 | 987 | %attr(755, root, root) %{_bindir}/mysqlbug | ||
1641 | 988 | %attr(755, root, root) %{_bindir}/mysqld_multi | ||
1642 | 989 | %attr(755, root, root) %{_bindir}/mysqld_safe | ||
1643 | 990 | %attr(755, root, root) %{_bindir}/mysqldumpslow | ||
1644 | 991 | %attr(755, root, root) %{_bindir}/mysqlhotcopy | ||
1645 | 992 | %attr(755, root, root) %{_bindir}/mysqltest | ||
1646 | 993 | %attr(755, root, root) %{_bindir}/perror | ||
1647 | 994 | %attr(755, root, root) %{_bindir}/replace | ||
1648 | 995 | %attr(755, root, root) %{_bindir}/resolve_stack_dump | ||
1649 | 996 | %attr(755, root, root) %{_bindir}/resolveip | ||
1650 | 997 | |||
1651 | 998 | %attr(755, root, root) %{_sbindir}/mysqld | ||
1652 | 999 | %attr(755, root, root) %{_sbindir}/mysqld-debug | ||
1653 | 1000 | %attr(755, root, root) %{_sbindir}/rcmysql | ||
1654 | 1001 | %attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini | ||
1655 | 1002 | %attr(755, root, root) %{_libdir}/mysql/plugin/adt_null.so | ||
1656 | 1003 | %attr(755, root, root) %{_libdir}/mysql/plugin/libdaemon_example.so | ||
1657 | 1004 | %attr(755, root, root) %{_libdir}/mysql/plugin/mypluglib.so | ||
1658 | 1005 | %attr(755, root, root) %{_libdir}/mysql/plugin/semisync_master.so | ||
1659 | 1006 | %attr(755, root, root) %{_libdir}/mysql/plugin/semisync_slave.so | ||
1660 | 1007 | %attr(755, root, root) %{_libdir}/mysql/plugin/auth.so | ||
1661 | 1008 | %attr(755, root, root) %{_libdir}/mysql/plugin/auth_socket.so | ||
1662 | 1009 | %attr(755, root, root) %{_libdir}/mysql/plugin/auth_test_plugin.so | ||
1663 | 1010 | %attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_client.so | ||
1664 | 1011 | %attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_interface.so | ||
1665 | 1012 | %attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_server.so | ||
1666 | 1013 | %attr(755, root, root) %{_libdir}/mysql/plugin/validate_password.so | ||
1667 | 1014 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/adt_null.so | ||
1668 | 1015 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/libdaemon_example.so | ||
1669 | 1016 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/mypluglib.so | ||
1670 | 1017 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_master.so | ||
1671 | 1018 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_slave.so | ||
1672 | 1019 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth.so | ||
1673 | 1020 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_socket.so | ||
1674 | 1021 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_test_plugin.so | ||
1675 | 1022 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_client.so | ||
1676 | 1023 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_interface.so | ||
1677 | 1024 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_server.so | ||
1678 | 1025 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/validate_password.so | ||
1679 | 1026 | # UDF files | ||
1680 | 1027 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so | ||
1681 | 1028 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so.0 | ||
1682 | 1029 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so.0.0.0 | ||
1683 | 1030 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so | ||
1684 | 1031 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so.0 | ||
1685 | 1032 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so.0.0.0 | ||
1686 | 1033 | %attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so | ||
1687 | 1034 | %attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so.0 | ||
1688 | 1035 | %attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so.0.0.0 | ||
1689 | 1036 | |||
1690 | 1037 | |||
1691 | 1038 | |||
1692 | 1039 | |||
1693 | 1040 | %if %{WITH_TCMALLOC} | ||
1694 | 1041 | %attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target} | ||
1695 | 1042 | %endif | ||
1696 | 1043 | |||
1697 | 1044 | %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql | ||
1698 | 1045 | %attr(755, root, root) %{_sysconfdir}/init.d/mysql | ||
1699 | 1046 | |||
1700 | 1047 | %attr(755, root, root) %{_datadir}/mysql/ | ||
1701 | 1048 | |||
1702 | 1049 | # ---------------------------------------------------------------------------- | ||
1703 | 1050 | %files -n Percona-Server-client%{product_suffix} | ||
1704 | 1051 | |||
1705 | 1052 | %defattr(-, root, root, 0755) | ||
1706 | 1053 | %attr(755, root, root) %{_bindir}/msql2mysql | ||
1707 | 1054 | %attr(755, root, root) %{_bindir}/mysql | ||
1708 | 1055 | %attr(755, root, root) %{_bindir}/mysql_find_rows | ||
1709 | 1056 | %attr(755, root, root) %{_bindir}/mysql_waitpid | ||
1710 | 1057 | %attr(755, root, root) %{_bindir}/mysqlaccess | ||
1711 | 1058 | # XXX: This should be moved to %{_sysconfdir} | ||
1712 | 1059 | %attr(644, root, root) %{_bindir}/mysqlaccess.conf | ||
1713 | 1060 | %attr(755, root, root) %{_bindir}/mysqladmin | ||
1714 | 1061 | %attr(755, root, root) %{_bindir}/mysqlbinlog | ||
1715 | 1062 | %attr(755, root, root) %{_bindir}/mysqlcheck | ||
1716 | 1063 | %attr(755, root, root) %{_bindir}/mysqldump | ||
1717 | 1064 | %attr(755, root, root) %{_bindir}/mysqlimport | ||
1718 | 1065 | %attr(755, root, root) %{_bindir}/mysqlshow | ||
1719 | 1066 | %attr(755, root, root) %{_bindir}/mysqlslap | ||
1720 | 1067 | %attr(755, root, root) %{_bindir}/mysql_config_editor | ||
1721 | 1068 | |||
1722 | 1069 | %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1* | ||
1723 | 1070 | %doc %attr(644, root, man) %{_mandir}/man1/mysql.1* | ||
1724 | 1071 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1* | ||
1725 | 1072 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1* | ||
1726 | 1073 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1* | ||
1727 | 1074 | %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1* | ||
1728 | 1075 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1* | ||
1729 | 1076 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1* | ||
1730 | 1077 | %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1* | ||
1731 | 1078 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1* | ||
1732 | 1079 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1* | ||
1733 | 1080 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1* | ||
1734 | 1081 | |||
1735 | 1082 | # ---------------------------------------------------------------------------- | ||
1736 | 1083 | %files -n Percona-Server-devel%{product_suffix} -f optional-files-devel | ||
1737 | 1084 | %defattr(-, root, root, 0755) | ||
1738 | 1085 | %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1* | ||
1739 | 1086 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1* | ||
1740 | 1087 | %attr(755, root, root) %{_bindir}/mysql_config | ||
1741 | 1088 | %dir %attr(755, root, root) %{_includedir}/mysql | ||
1742 | 1089 | %dir %attr(755, root, root) %{_libdir}/mysql | ||
1743 | 1090 | %{_includedir}/mysql/* | ||
1744 | 1091 | %{_datadir}/aclocal/mysql.m4 | ||
1745 | 1092 | %{_libdir}/mysql/libmysqlclient.a | ||
1746 | 1093 | %{_libdir}/mysql/libmysqlclient_r.a | ||
1747 | 1094 | %{_libdir}/mysql/libmysqlservices.a | ||
1748 | 1095 | |||
1749 | 1096 | # ---------------------------------------------------------------------------- | ||
1750 | 1097 | %files -n Percona-Server-shared%{product_suffix} | ||
1751 | 1098 | %defattr(-, root, root, 0755) | ||
1752 | 1099 | # Shared libraries (omit for architectures that don't support them) | ||
1753 | 1100 | %{_libdir}/libmysql*.so* | ||
1754 | 1101 | # Maatkit UDF libs | ||
1755 | 1102 | %{_libdir}/mysql/plugin/libfnv1a_udf.a | ||
1756 | 1103 | %{_libdir}/mysql/plugin/libfnv1a_udf.la | ||
1757 | 1104 | %{_libdir}/mysql/plugin/libfnv_udf.a | ||
1758 | 1105 | %{_libdir}/mysql/plugin/libfnv_udf.la | ||
1759 | 1106 | %{_libdir}/mysql/plugin/libmurmur_udf.a | ||
1760 | 1107 | %{_libdir}/mysql/plugin/libmurmur_udf.la | ||
1761 | 1108 | |||
1762 | 1109 | %post -n Percona-Server-shared%{product_suffix} | ||
1763 | 1110 | /sbin/ldconfig | ||
1764 | 1111 | |||
1765 | 1112 | %postun -n Percona-Server-shared%{product_suffix} | ||
1766 | 1113 | /sbin/ldconfig | ||
1767 | 1114 | |||
1768 | 1115 | # ---------------------------------------------------------------------------- | ||
1769 | 1116 | %files -n Percona-Server-test%{product_suffix} | ||
1770 | 1117 | %defattr(-, root, root, 0755) | ||
1771 | 1118 | %attr(-, root, root) %{_datadir}/mysql-test | ||
1772 | 1119 | %attr(755, root, root) %{_bindir}/mysql_client_test | ||
1773 | 1120 | #%attr(755, root, root) %{_bindir}/mysql_client_test_embedded | ||
1774 | 1121 | #%attr(755, root, root) %{_bindir}/mysqltest_embedded | ||
1775 | 1122 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1* | ||
1776 | 1123 | %doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1* | ||
1777 | 1124 | %doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1* | ||
1778 | 1125 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1* | ||
1779 | 1126 | %doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1* | ||
1780 | 1127 | |||
1781 | 1128 | ############################################################################## | ||
1782 | 1129 | # The spec file changelog only includes changes made to the spec file | ||
1783 | 1130 | # itself - note that they must be ordered by date (important when | ||
1784 | 1131 | # merging BK trees) | ||
1785 | 1132 | ############################################################################## | ||
1786 | 1133 | %changelog | ||
1787 | 1134 | * Thu Feb 10 2011 Ignacio Nin <ignacio.nin@percona.com> | ||
1788 | 1135 | |||
1789 | 1136 | - Removed lines which prevented -debuginfo packages from being built. | ||
1790 | 1137 | |||
1791 | 1138 | * Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com> | ||
1792 | 1139 | |||
1793 | 1140 | - EXCEPTIONS-CLIENT has been deleted, remove it from here too | ||
1794 | 1141 | - Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing | ||
1795 | 1142 | a '-j' argument to make. | ||
1796 | 1143 | |||
1797 | 1144 | * Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com> | ||
1798 | 1145 | |||
1799 | 1146 | - Added test authentication (WL#1054) plugin binaries | ||
1800 | 1147 | |||
1801 | 1148 | * Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com> | ||
1802 | 1149 | |||
1803 | 1150 | - Added example external authentication (WL#1054) plugin binaries | ||
1804 | 1151 | |||
1805 | 1152 | * Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com> | ||
1806 | 1153 | |||
1807 | 1154 | - With a recent spec file cleanup, names have changed: A "-community" part was dropped. | ||
1808 | 1155 | Reflect that in the "Obsoletes" specifications. | ||
1809 | 1156 | - Add a "triggerpostun" to handle the uninstall of the "-community" server RPM. | ||
1810 | 1157 | - This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade". | ||
1811 | 1158 | |||
1812 | 1159 | * Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1813 | 1160 | |||
1814 | 1161 | - Change the behaviour on installation and upgrade: | ||
1815 | 1162 | On installation, do not autostart the server. | ||
1816 | 1163 | *Iff* the server was stopped before the upgrade is started, this is taken as a | ||
1817 | 1164 | sign the administrator is handling that manually, and so the new server will | ||
1818 | 1165 | not be started automatically at the end of the upgrade. | ||
1819 | 1166 | The start/stop scripts will still be installed, so the server will be started | ||
1820 | 1167 | on the next machine boot. | ||
1821 | 1168 | This is the 5.5 version of fixing bug#27072 (RPM autostarting the server). | ||
1822 | 1169 | |||
1823 | 1170 | * Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com> | ||
1824 | 1171 | |||
1825 | 1172 | - Implement SELinux checks from distribution-specific spec file. | ||
1826 | 1173 | |||
1827 | 1174 | * Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com> | ||
1828 | 1175 | |||
1829 | 1176 | - Large number of changes to build using CMake | ||
1830 | 1177 | - Introduce distribution-specific RPMs | ||
1831 | 1178 | - Drop debuginfo, build all binaries with debug/symbols | ||
1832 | 1179 | - Remove __os_install_post, use native macro | ||
1833 | 1180 | - Remove _unpackaged_files_terminate_build, make it an error to have | ||
1834 | 1181 | unpackaged files | ||
1835 | 1182 | - Remove cluster RPMs | ||
1836 | 1183 | |||
1837 | 1184 | * Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1838 | 1185 | |||
1839 | 1186 | - Add "--with-perfschema" to the configure options. | ||
1840 | 1187 | |||
1841 | 1188 | * Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1842 | 1189 | |||
1843 | 1190 | - User "usr/lib*" to allow for both "usr/lib" and "usr/lib64", | ||
1844 | 1191 | mask "rmdir" return code 1. | ||
1845 | 1192 | - Remove "ha_example.*" files from the list, they aren't built. | ||
1846 | 1193 | |||
1847 | 1194 | * Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1848 | 1195 | |||
1849 | 1196 | - Fix a wrong path name in handling the debug plugins. | ||
1850 | 1197 | |||
1851 | 1198 | * Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1852 | 1199 | |||
1853 | 1200 | - Take the result of the debug plugin build and put it into the optimized tree, | ||
1854 | 1201 | so that it becomes part of the final installation; | ||
1855 | 1202 | include the files in the packlist. Part of the fixes for bug#49022. | ||
1856 | 1203 | |||
1857 | 1204 | * Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1858 | 1205 | |||
1859 | 1206 | - Set "Oracle and/or its affiliates" as the vendor and copyright owner, | ||
1860 | 1207 | accept upgrading from packages showing MySQL or Sun as vendor. | ||
1861 | 1208 | |||
1862 | 1209 | * Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1863 | 1210 | |||
1864 | 1211 | - Formatting changes: | ||
1865 | 1212 | Have a consistent structure of separator lines and of indentation | ||
1866 | 1213 | (8 leading blanks => tab). | ||
1867 | 1214 | - Introduce the variable "src_dir". | ||
1868 | 1215 | - Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence | ||
1869 | 1216 | over "CC" ("CXX"). | ||
1870 | 1217 | - Drop the old "with_static" argument analysis, this is not supported | ||
1871 | 1218 | in 5.1 since ages. | ||
1872 | 1219 | - Introduce variables to control the handlers individually, as well | ||
1873 | 1220 | as other options. | ||
1874 | 1221 | - Use the new "--with-plugin" notation for the table handlers. | ||
1875 | 1222 | - Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql" | ||
1876 | 1223 | was done back in 2002 already. | ||
1877 | 1224 | - Make "--with-zlib-dir=bundled" the default, add an option to disable it. | ||
1878 | 1225 | - Add missing manual pages to the file list. | ||
1879 | 1226 | - Improve the runtime check for "libgcc.a", protect it against being tried | ||
1880 | 1227 | with the Intel compiler "icc". | ||
1881 | 1228 | |||
1882 | 1229 | * Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1883 | 1230 | |||
1884 | 1231 | - Change RPM file naming: | ||
1885 | 1232 | - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc". | ||
1886 | 1233 | - Release counts from 1, not 0. | ||
1887 | 1234 | |||
1888 | 1235 | * Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1889 | 1236 | |||
1890 | 1237 | - The "semisync" plugin file name has lost its introductory "lib", | ||
1891 | 1238 | adapt the file lists for the subpackages. | ||
1892 | 1239 | This is a part missing from the fix for bug#48351. | ||
1893 | 1240 | - Remove the "fix_privilege_tables" manual, it does not exist in 5.5 | ||
1894 | 1241 | (and likely, the whole script will go, too). | ||
1895 | 1242 | |||
1896 | 1243 | * Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1897 | 1244 | |||
1898 | 1245 | - Fix some problems with the directives around "tcmalloc" (experimental), | ||
1899 | 1246 | remove erroneous traces of the InnoDB plugin (that is 5.1 only). | ||
1900 | 1247 | |||
1901 | 1248 | * Fri Oct 06 2009 Magnus Blaudd <mvensson@mysql.com> | ||
1902 | 1249 | |||
1903 | 1250 | - Removed mysql_fix_privilege_tables | ||
1904 | 1251 | |||
1905 | 1252 | * Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com> | ||
1906 | 1253 | |||
1907 | 1254 | - "mysqlmanager" got removed from version 5.4, all references deleted. | ||
1908 | 1255 | |||
1909 | 1256 | * Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1910 | 1257 | |||
1911 | 1258 | - Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin. | ||
1912 | 1259 | |||
1913 | 1260 | * Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com> | ||
1914 | 1261 | |||
1915 | 1262 | - This version does not contain the "Instance manager", "mysqlmanager": | ||
1916 | 1263 | Remove it from the spec file so that packaging succeeds. | ||
1917 | 1264 | |||
1918 | 1265 | * Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com> | ||
1919 | 1266 | |||
1920 | 1267 | - Add conditionals for bundled zlib and innodb plugin | ||
1921 | 1268 | |||
1922 | 1269 | * Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com> | ||
1923 | 1270 | |||
1924 | 1271 | - Install plugin libraries in appropriate packages. | ||
1925 | 1272 | - Disable libdaemon_example and ftexample plugins. | ||
1926 | 1273 | |||
1927 | 1274 | * Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com> | ||
1928 | 1275 | |||
1929 | 1276 | - Update variable used for mysql-test suite location to match source. | ||
1930 | 1277 | |||
1931 | 1278 | * Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com> | ||
1932 | 1279 | |||
1933 | 1280 | - Correct yesterday's fix, so that it also works for the last flag, | ||
1934 | 1281 | and fix a wrong quoting: un-quoted quote marks must not be escaped. | ||
1935 | 1282 | |||
1936 | 1283 | * Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com> | ||
1937 | 1284 | |||
1938 | 1285 | - Removed "mysql_upgrade_shell" | ||
1939 | 1286 | - Removed some copy/paste between debug and normal build | ||
1940 | 1287 | |||
1941 | 1288 | * Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com> | ||
1942 | 1289 | |||
1943 | 1290 | - Modify CFLAGS and CXXFLAGS such that a debug build is not optimized. | ||
1944 | 1291 | This should cover both gcc and icc flags. Fixes bug#40546. | ||
1945 | 1292 | |||
1946 | 1293 | * Fri Aug 29 2008 Kent Boortz <kent@mysql.com> | ||
1947 | 1294 | |||
1948 | 1295 | - Removed the "Federated" storage engine option, and enabled in all | ||
1949 | 1296 | |||
1950 | 1297 | * Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com> | ||
1951 | 1298 | |||
1952 | 1299 | - Get rid of the "warning: Installed (but unpackaged) file(s) found:" | ||
1953 | 1300 | Some generated files aren't needed in RPMs: | ||
1954 | 1301 | - the "sql-bench/" subdirectory | ||
1955 | 1302 | Some files were missing: | ||
1956 | 1303 | - /usr/share/aclocal/mysql.m4 ("devel" subpackage) | ||
1957 | 1304 | - Manual "mysqlbug" ("server" subpackage) | ||
1958 | 1305 | - Program "innochecksum" and its manual ("server" subpackage) | ||
1959 | 1306 | - Manual "mysql_find_rows" ("client" subpackage) | ||
1960 | 1307 | - Script "mysql_upgrade_shell" ("client" subpackage) | ||
1961 | 1308 | - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage) | ||
1962 | 1309 | - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage) | ||
1963 | 1310 | |||
1964 | 1311 | * Mon Mar 31 2008 Kent Boortz <kent@mysql.com> | ||
1965 | 1312 | |||
1966 | 1313 | - Made the "Federated" storage engine an option | ||
1967 | 1314 | - Made the "Cluster" storage engine and sub packages an option | ||
1968 | 1315 | |||
1969 | 1316 | * Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com> | ||
1970 | 1317 | |||
1971 | 1318 | - Add the man pages for "ndbd" and "ndb_mgmd". | ||
1972 | 1319 | |||
1973 | 1320 | * Mon Feb 18 2008 Timothy Smith <tim@mysql.com> | ||
1974 | 1321 | |||
1975 | 1322 | - Require a manual upgrade if the alread-installed mysql-server is | ||
1976 | 1323 | from another vendor, or is of a different major version. | ||
1977 | 1324 | |||
1978 | 1325 | * Wed May 02 2007 Joerg Bruehe <joerg@mysql.com> | ||
1979 | 1326 | |||
1980 | 1327 | - "ndb_size.tmpl" is not needed any more, | ||
1981 | 1328 | "man1/mysql_install_db.1" lacked the trailing '*'. | ||
1982 | 1329 | |||
1983 | 1330 | * Sat Apr 07 2007 Kent Boortz <kent@mysql.com> | ||
1984 | 1331 | |||
1985 | 1332 | - Removed man page for "mysql_create_system_tables" | ||
1986 | 1333 | |||
1987 | 1334 | * Wed Mar 21 2007 Daniel Fischer <df@mysql.com> | ||
1988 | 1335 | |||
1989 | 1336 | - Add debug server. | ||
1990 | 1337 | |||
1991 | 1338 | * Mon Mar 19 2007 Daniel Fischer <df@mysql.com> | ||
1992 | 1339 | |||
1993 | 1340 | - Remove Max RPMs; the server RPMs contain a mysqld compiled with all | ||
1994 | 1341 | features that previously only were built into Max. | ||
1995 | 1342 | |||
1996 | 1343 | * Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com> | ||
1997 | 1344 | |||
1998 | 1345 | - Add several man pages for NDB which are now created. | ||
1999 | 1346 | |||
2000 | 1347 | * Fri Jan 05 2007 Kent Boortz <kent@mysql.com> | ||
2001 | 1348 | |||
2002 | 1349 | - Put back "libmygcc.a", found no real reason it was removed. | ||
2003 | 1350 | |||
2004 | 1351 | - Add CFLAGS to gcc call with --print-libgcc-file, to make sure the | ||
2005 | 1352 | correct "libgcc.a" path is returned for the 32/64 bit architecture. | ||
2006 | 1353 | |||
2007 | 1354 | * Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com> | ||
2008 | 1355 | |||
2009 | 1356 | - Fix the move of "mysqlmanager" to section 8: Directory name was wrong. | ||
2010 | 1357 | |||
2011 | 1358 | * Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com> | ||
2012 | 1359 | |||
2013 | 1360 | - Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql" | ||
2014 | 1361 | in the server RPM. | ||
2015 | 1362 | - The "mysqlmanager" man page got moved from section 1 to 8. | ||
2016 | 1363 | |||
2017 | 1364 | * Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com> | ||
2018 | 1365 | |||
2019 | 1366 | - Call "make install" using "benchdir_root=%{_datadir}", | ||
2020 | 1367 | because that is affecting the regression test suite as well. | ||
2021 | 1368 | |||
2022 | 1369 | * Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com> | ||
2023 | 1370 | |||
2024 | 1371 | - Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB) | ||
2025 | 1372 | replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading | ||
2026 | 1373 | (bug#22081). | ||
2027 | 1374 | |||
2028 | 1375 | * Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com> | ||
2029 | 1376 | |||
2030 | 1377 | - Add "--with-partition" to all server builds. | ||
2031 | 1378 | |||
2032 | 1379 | - Use "--report-features" in one test run per server build. | ||
2033 | 1380 | |||
2034 | 1381 | * Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com> | ||
2035 | 1382 | |||
2036 | 1383 | - The "max" server is removed from packages, effective from 5.1.12-beta. | ||
2037 | 1384 | Delete all steps to build, package, or install it. | ||
2038 | 1385 | |||
2039 | 1386 | * Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com> | ||
2040 | 1387 | |||
2041 | 1388 | - Fix a typing error in the "make" target for the Perl script to run the tests. | ||
2042 | 1389 | |||
2043 | 1390 | * Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com> | ||
2044 | 1391 | |||
2045 | 1392 | - Use the Perl script to run the tests, because it will automatically check | ||
2046 | 1393 | whether the server is configured with SSL. | ||
2047 | 1394 | |||
2048 | 1395 | * Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com> | ||
2049 | 1396 | |||
2050 | 1397 | - move "mysqldumpslow" from the client RPM to the server RPM (bug#20216) | ||
2051 | 1398 | |||
2052 | 1399 | - Revert all previous attempts to call "mysql_upgrade" during RPM upgrade, | ||
2053 | 1400 | there are some more aspects which need to be solved before this is possible. | ||
2054 | 1401 | For now, just ensure the binary "mysql_upgrade" is delivered and installed. | ||
2055 | 1402 | |||
2056 | 1403 | * Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com> | ||
2057 | 1404 | |||
2058 | 1405 | - Close a gap of the previous version by explicitly using | ||
2059 | 1406 | a newly created temporary directory for the socket to be used | ||
2060 | 1407 | in the "mysql_upgrade" operation, overriding any local setting. | ||
2061 | 1408 | |||
2062 | 1409 | * Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com> | ||
2063 | 1410 | |||
2064 | 1411 | - To run "mysql_upgrade", we need a running server; | ||
2065 | 1412 | start it in isolation and skip password checks. | ||
2066 | 1413 | |||
2067 | 1414 | * Sat May 20 2006 Kent Boortz <kent@mysql.com> | ||
2068 | 1415 | |||
2069 | 1416 | - Always compile for PIC, position independent code. | ||
2070 | 1417 | |||
2071 | 1418 | * Wed May 10 2006 Kent Boortz <kent@mysql.com> | ||
2072 | 1419 | |||
2073 | 1420 | - Use character set "all" when compiling with Cluster, to make Cluster | ||
2074 | 1421 | nodes independent on the character set directory, and the problem | ||
2075 | 1422 | that two RPM sub packages both wants to install this directory. | ||
2076 | 1423 | |||
2077 | 1424 | * Mon May 01 2006 Kent Boortz <kent@mysql.com> | ||
2078 | 1425 | |||
2079 | 1426 | - Use "./libtool --mode=execute" instead of searching for the | ||
2080 | 1427 | executable in current directory and ".libs". | ||
2081 | 1428 | |||
2082 | 1429 | * Fri Apr 28 2006 Kent Boortz <kent@mysql.com> | ||
2083 | 1430 | |||
2084 | 1431 | - Install and run "mysql_upgrade" | ||
2085 | 1432 | |||
2086 | 1433 | * Wed Apr 12 2006 Jim Winstead <jimw@mysql.com> | ||
2087 | 1434 | |||
2088 | 1435 | - Remove sql-bench, and MySQL-bench RPM (will be built as an independent | ||
2089 | 1436 | project from the mysql-bench repository) | ||
2090 | 1437 | |||
2091 | 1438 | * Tue Apr 11 2006 Jim Winstead <jimw@mysql.com> | ||
2092 | 1439 | |||
2093 | 1440 | - Remove old mysqltestmanager and related programs | ||
2094 | 1441 | * Sat Apr 01 2006 Kent Boortz <kent@mysql.com> | ||
2095 | 1442 | |||
2096 | 1443 | - Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS | ||
2097 | 1444 | |||
2098 | 1445 | * Wed Mar 07 2006 Kent Boortz <kent@mysql.com> | ||
2099 | 1446 | |||
2100 | 1447 | - Changed product name from "Community Edition" to "Community Server" | ||
2101 | 1448 | |||
2102 | 1449 | * Mon Mar 06 2006 Kent Boortz <kent@mysql.com> | ||
2103 | 1450 | |||
2104 | 1451 | - Fast mutexes is now disabled by default, but should be | ||
2105 | 1452 | used in Linux builds. | ||
2106 | 1453 | |||
2107 | 1454 | * Mon Feb 20 2006 Kent Boortz <kent@mysql.com> | ||
2108 | 1455 | |||
2109 | 1456 | - Reintroduced a max build | ||
2110 | 1457 | - Limited testing of 'debug' and 'max' servers | ||
2111 | 1458 | - Berkeley DB only in 'max' | ||
2112 | 1459 | |||
2113 | 1460 | * Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com> | ||
2114 | 1461 | |||
2115 | 1462 | - Use "-i" on "make test-force"; | ||
2116 | 1463 | this is essential for later evaluation of this log file. | ||
2117 | 1464 | |||
2118 | 1465 | * Thu Feb 09 2006 Kent Boortz <kent@mysql.com> | ||
2119 | 1466 | |||
2120 | 1467 | - Pass '-static' to libtool, link static with our own libraries, dynamic | ||
2121 | 1468 | with system libraries. Link with the bundled zlib. | ||
2122 | 1469 | |||
2123 | 1470 | * Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com> | ||
2124 | 1471 | |||
2125 | 1472 | - Modified RPM spec to match new 5.1 debug+max combined community packaging. | ||
2126 | 1473 | |||
2127 | 1474 | * Sun Dec 18 2005 Kent Boortz <kent@mysql.com> | ||
2128 | 1475 | |||
2129 | 1476 | - Added "client/mysqlslap" | ||
2130 | 1477 | |||
2131 | 1478 | * Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com> | ||
2132 | 1479 | |||
2133 | 1480 | - Added zlib to the list of (static) libraries installed | ||
2134 | 1481 | - Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld) | ||
2135 | 1482 | - Compile MySQL with bundled zlib | ||
2136 | 1483 | - Fixed %packager name to "MySQL Production Engineering Team" | ||
2137 | 1484 | |||
2138 | 1485 | * Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com> | ||
2139 | 1486 | |||
2140 | 1487 | - Avoid using the "bundled" zlib on "shared" builds: | ||
2141 | 1488 | As it is not installed (on the build system), this gives dependency | ||
2142 | 1489 | problems with "libtool" causing the build to fail. | ||
2143 | 1490 | (Change was done on Nov 11, but left uncommented.) | ||
2144 | 1491 | |||
2145 | 1492 | * Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com> | ||
2146 | 1493 | |||
2147 | 1494 | - Extend the file existence check for "init.d/mysql" on un-install | ||
2148 | 1495 | to also guard the call to "insserv"/"chkconfig". | ||
2149 | 1496 | |||
2150 | 1497 | * Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com> | ||
2151 | 1498 | |||
2152 | 1499 | - added more man pages | ||
2153 | 1500 | |||
2154 | 1501 | * Wed Oct 19 2005 Kent Boortz <kent@mysql.com> | ||
2155 | 1502 | |||
2156 | 1503 | - Made yaSSL support an option (off by default) | ||
2157 | 1504 | |||
2158 | 1505 | * Wed Oct 19 2005 Kent Boortz <kent@mysql.com> | ||
2159 | 1506 | |||
2160 | 1507 | - Enabled yaSSL support | ||
2161 | 1508 | |||
2162 | 1509 | * Sat Oct 15 2005 Kent Boortz <kent@mysql.com> | ||
2163 | 1510 | |||
2164 | 1511 | - Give mode arguments the same way in all places | ||
2165 | 1512 | - Moved copy of mysqld.a to "standard" build, but | ||
2166 | 1513 | disabled it as we don't do embedded yet in 5.0 | ||
2167 | 1514 | |||
2168 | 1515 | * Fri Oct 14 2005 Kent Boortz <kent@mysql.com> | ||
2169 | 1516 | |||
2170 | 1517 | - For 5.x, always compile with --with-big-tables | ||
2171 | 1518 | - Copy the config.log file to location outside | ||
2172 | 1519 | the build tree | ||
2173 | 1520 | |||
2174 | 1521 | * Fri Oct 14 2005 Kent Boortz <kent@mysql.com> | ||
2175 | 1522 | |||
2176 | 1523 | - Removed unneeded/obsolete configure options | ||
2177 | 1524 | - Added archive engine to standard server | ||
2178 | 1525 | - Removed the embedded server from experimental server | ||
2179 | 1526 | - Changed suffix "-Max" => "-max" | ||
2180 | 1527 | - Changed comment string "Max" => "Experimental" | ||
2181 | 1528 | |||
2182 | 1529 | * Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
2183 | 1530 | |||
2184 | 1531 | - added a usermod call to assign a potential existing mysql user to the | ||
2185 | 1532 | correct user group (BUG#12823) | ||
2186 | 1533 | - Save the perror binary built during Max build so it supports the NDB | ||
2187 | 1534 | error codes (BUG#13740) | ||
2188 | 1535 | - added a separate macro "mysqld_group" to be able to define the | ||
2189 | 1536 | user group of the mysql user seperately, if desired. | ||
2190 | 1537 | |||
2191 | 1538 | * Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com> | ||
2192 | 1539 | |||
2193 | 1540 | - fixed the removing of the RPM_BUILD_ROOT in the %clean section (the | ||
2194 | 1541 | $RBR variable did not get expanded, thus leaving old build roots behind) | ||
2195 | 1542 | |||
2196 | 1543 | * Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com> | ||
2197 | 1544 | |||
2198 | 1545 | - Fixed the creation of the mysql user group account in the postinstall | ||
2199 | 1546 | section (BUG 12348) | ||
2200 | 1547 | - Fixed enabling the Archive storage engine in the Max binary | ||
2201 | 1548 | |||
2202 | 1549 | * Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com> | ||
2203 | 1550 | |||
2204 | 1551 | - Fixed the Requires: tag for the server RPM (BUG 12233) | ||
2205 | 1552 | |||
2206 | 1553 | * Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com> | ||
2207 | 1554 | |||
2208 | 1555 | - create a "mysql" user group and assign the mysql user account to that group | ||
2209 | 1556 | in the server postinstall section. (BUG 10984) | ||
2210 | 1557 | |||
2211 | 1558 | * Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com> | ||
2212 | 1559 | |||
2213 | 1560 | - Do not build statically on i386 by default, only when adding either "--with | ||
2214 | 1561 | static" or "--define '_with_static 1'" to the RPM build options. Static | ||
2215 | 1562 | linking really only makes sense when linking against the specially patched | ||
2216 | 1563 | glibc 2.2.5. | ||
2217 | 1564 | |||
2218 | 1565 | * Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com> | ||
2219 | 1566 | |||
2220 | 1567 | - added mysql_client_test to the "bench" subpackage (BUG 10676) | ||
2221 | 1568 | - added the libndbclient static and shared libraries (BUG 10676) | ||
2222 | 1569 | |||
2223 | 1570 | * Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com> | ||
2224 | 1571 | |||
2225 | 1572 | - use "mysqldatadir" variable instead of hard-coding the path multiple times | ||
2226 | 1573 | - use the "mysqld_user" variable on all occasions a user name is referenced | ||
2227 | 1574 | - removed (incomplete) Brazilian translations | ||
2228 | 1575 | - removed redundant release tags from the subpackage descriptions | ||
2229 | 1576 | |||
2230 | 1577 | * Wed May 25 2005 Joerg Bruehe <joerg@mysql.com> | ||
2231 | 1578 | |||
2232 | 1579 | - Added a "make clean" between separate calls to "BuildMySQL". | ||
2233 | 1580 | |||
2234 | 1581 | * Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com> | ||
2235 | 1582 | |||
2236 | 1583 | - Removed the mysql_tableinfo script made obsolete by the information schema | ||
2237 | 1584 | |||
2238 | 1585 | * Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com> | ||
2239 | 1586 | |||
2240 | 1587 | - Enabled the "blackhole" storage engine for the Max RPM | ||
2241 | 1588 | |||
2242 | 1589 | * Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
2243 | 1590 | |||
2244 | 1591 | - removed the MySQL manual files (html/ps/texi) - they have been removed | ||
2245 | 1592 | from the MySQL sources and are now available seperately. | ||
2246 | 1593 | |||
2247 | 1594 | * Mon Apr 4 2005 Petr Chardin <petr@mysql.com> | ||
2248 | 1595 | |||
2249 | 1596 | - old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into | ||
2250 | 1597 | mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively | ||
2251 | 1598 | |||
2252 | 1599 | * Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com> | ||
2253 | 1600 | |||
2254 | 1601 | - Disabled RAID in the Max binaries once and for all (it has finally been | ||
2255 | 1602 | removed from the source tree) | ||
2256 | 1603 | |||
2257 | 1604 | * Sun Feb 20 2005 Petr Chardin <petr@mysql.com> | ||
2258 | 1605 | |||
2259 | 1606 | - Install MySQL Instance Manager together with mysqld, touch mysqlmanager | ||
2260 | 1607 | password file | ||
2261 | 1608 | |||
2262 | 1609 | * Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com> | ||
2263 | 1610 | |||
2264 | 1611 | - Fixed the compilation comments and moved them into the separate build sections | ||
2265 | 1612 | for Max and Standard | ||
2266 | 1613 | |||
2267 | 1614 | * Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com> | ||
2268 | 1615 | |||
2269 | 1616 | - enabled the "Ndbcluster" storage engine for the max binary | ||
2270 | 1617 | - added extra make install in ndb subdir after Max build to get ndb binaries | ||
2271 | 1618 | - added packages for ndbcluster storage engine | ||
2272 | 1619 | |||
2273 | 1620 | * Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com> | ||
2274 | 1621 | |||
2275 | 1622 | - replaced obsoleted "BuildPrereq" with "BuildRequires" instead | ||
2276 | 1623 | |||
2277 | 1624 | * Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
2278 | 1625 | |||
2279 | 1626 | - enabled the "Federated" storage engine for the max binary | ||
2280 | 1627 | |||
2281 | 1628 | * Tue Jan 04 2005 Petr Chardin <petr@mysql.com> | ||
2282 | 1629 | |||
2283 | 1630 | - ISAM and merge storage engines were purged. As well as appropriate | ||
2284 | 1631 | tools and manpages (isamchk and isamlog) | ||
2285 | 1632 | |||
2286 | 1633 | * Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com> | ||
2287 | 1634 | |||
2288 | 1635 | - enabled the "Archive" storage engine for the max binary | ||
2289 | 1636 | - enabled the "CSV" storage engine for the max binary | ||
2290 | 1637 | - enabled the "Example" storage engine for the max binary | ||
2291 | 1638 | |||
2292 | 1639 | * Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com> | ||
2293 | 1640 | |||
2294 | 1641 | - MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860) | ||
2295 | 1642 | |||
2296 | 1643 | * Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com> | ||
2297 | 1644 | |||
2298 | 1645 | - do not link statically on IA64/AMD64 as these systems do not have | ||
2299 | 1646 | a patched glibc installed | ||
2300 | 1647 | |||
2301 | 1648 | * Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com> | ||
2302 | 1649 | |||
2303 | 1650 | - Added libmygcc.a to the devel subpackage (required to link applications | ||
2304 | 1651 | against the the embedded server libmysqld.a) (BUG 4921) | ||
2305 | 1652 | |||
2306 | 1653 | * Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com> | ||
2307 | 1654 | |||
2308 | 1655 | - Added EXCEPTIONS-CLIENT to the "devel" package | ||
2309 | 1656 | |||
2310 | 1657 | * Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com> | ||
2311 | 1658 | |||
2312 | 1659 | - disabled OpenSSL in the Max binaries again (the RPM packages were the | ||
2313 | 1660 | only exception to this anyway) (BUG 1043) | ||
2314 | 1661 | |||
2315 | 1662 | * Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com> | ||
2316 | 1663 | |||
2317 | 1664 | - fixed server postinstall (mysql_install_db was called with the wrong | ||
2318 | 1665 | parameter) | ||
2319 | 1666 | |||
2320 | 1667 | * Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com> | ||
2321 | 1668 | |||
2322 | 1669 | - added mysql_tzinfo_to_sql to the server subpackage | ||
2323 | 1670 | - run "make clean" instead of "make distclean" | ||
2324 | 1671 | |||
2325 | 1672 | * Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com> | ||
2326 | 1673 | |||
2327 | 1674 | - added ncurses-devel to the build prerequisites (BUG 3377) | ||
2328 | 1675 | |||
2329 | 1676 | * Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com> | ||
2330 | 1677 | |||
2331 | 1678 | - when using gcc, _always_ use CXX=gcc | ||
2332 | 1679 | - replaced Copyright with License field (Copyright is obsolete) | ||
2333 | 1680 | |||
2334 | 1681 | * Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com> | ||
2335 | 1682 | |||
2336 | 1683 | - added myisam_ftdump to the Server package | ||
2337 | 1684 | |||
2338 | 1685 | * Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com> | ||
2339 | 1686 | |||
2340 | 1687 | - link the mysql client against libreadline instead of libedit (BUG 2289) | ||
2341 | 1688 | |||
2342 | 1689 | * Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com> | ||
2343 | 1690 | |||
2344 | 1691 | - marked /etc/logrotate.d/mysql as a config file (BUG 2156) | ||
2345 | 1692 | |||
2346 | 1693 | * Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com> | ||
2347 | 1694 | |||
2348 | 1695 | - fixed file permissions (BUG 1672) | ||
2349 | 1696 | |||
2350 | 1697 | * Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com> | ||
2351 | 1698 | |||
2352 | 1699 | - made testing for gcc3 a bit more robust | ||
2353 | 1700 | |||
2354 | 1701 | * Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com> | ||
2355 | 1702 | |||
2356 | 1703 | - added missing file mysql_create_system_tables to the server subpackage | ||
2357 | 1704 | |||
2358 | 1705 | * Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com> | ||
2359 | 1706 | |||
2360 | 1707 | - removed dependency on MySQL-client from the MySQL-devel subpackage | ||
2361 | 1708 | as it is not really required. (BUG 1610) | ||
2362 | 1709 | |||
2363 | 1710 | * Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com> | ||
2364 | 1711 | |||
2365 | 1712 | - Fixed BUG 1162 (removed macro names from the changelog) | ||
2366 | 1713 | - Really fixed BUG 998 (disable the checking for installed but | ||
2367 | 1714 | unpackaged files) | ||
2368 | 1715 | |||
2369 | 1716 | * Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com> | ||
2370 | 1717 | |||
2371 | 1718 | - Fixed BUG 959 (libmysqld not being compiled properly) | ||
2372 | 1719 | - Fixed BUG 998 (RPM build errors): added missing files to the | ||
2373 | 1720 | distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow, | ||
2374 | 1721 | mysql_fix_privilege_tables.1), removed "-n" from install section. | ||
2375 | 1722 | |||
2376 | 1723 | * Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com> | ||
2377 | 1724 | |||
2378 | 1725 | - removed the GIF Icon (file was not included in the sources anyway) | ||
2379 | 1726 | - removed unused variable shared_lib_version | ||
2380 | 1727 | - do not run automake before building the standard binary | ||
2381 | 1728 | (should not be necessary) | ||
2382 | 1729 | - add server suffix '-standard' to standard binary (to be in line | ||
2383 | 1730 | with the binary tarball distributions) | ||
2384 | 1731 | - Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir, | ||
2385 | 1732 | _datadir, _includedir) throughout the spec file. | ||
2386 | 1733 | - allow overriding CC and CXX (required when building with other compilers) | ||
2387 | 1734 | |||
2388 | 1735 | * Fri May 16 2003 Lenz Grimmer <lenz@mysql.com> | ||
2389 | 1736 | |||
2390 | 1737 | - re-enabled RAID again | ||
2391 | 1738 | |||
2392 | 1739 | * Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com> | ||
2393 | 1740 | |||
2394 | 1741 | - disabled MyISAM RAID (--with-raid) - it throws an assertion which | ||
2395 | 1742 | needs to be investigated first. | ||
2396 | 1743 | |||
2397 | 1744 | * Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com> | ||
2398 | 1745 | |||
2399 | 1746 | - added missing file mysql_secure_installation to server subpackage | ||
2400 | 1747 | (BUG 141) | ||
2401 | 1748 | |||
2402 | 1749 | * Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com> | ||
2403 | 1750 | |||
2404 | 1751 | - re-added missing pre- and post(un)install scripts to server subpackage | ||
2405 | 1752 | - added config file /etc/my.cnf to the file list (just for completeness) | ||
2406 | 1753 | - make sure to create the datadir with 755 permissions | ||
2407 | 1754 | |||
2408 | 1755 | * Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com> | ||
2409 | 1756 | |||
2410 | 1757 | - removed unused CC and CXX variables | ||
2411 | 1758 | - CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS | ||
2412 | 1759 | |||
2413 | 1760 | * Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com> | ||
2414 | 1761 | |||
2415 | 1762 | - renamed package "MySQL" to "MySQL-server" | ||
2416 | 1763 | - fixed Copyright tag | ||
2417 | 1764 | - added mysql_waitpid to client subpackage (required for mysql-test-run) | ||
2418 | 1765 | |||
2419 | 1766 | * Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com> | ||
2420 | 1767 | |||
2421 | 1768 | - moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of | ||
2422 | 1769 | Linux distributions now support this scheme as proposed by the LSB either | ||
2423 | 1770 | directly or via a compatibility symlink) | ||
2424 | 1771 | - Use new "restart" init script action instead of starting and stopping | ||
2425 | 1772 | separately | ||
2426 | 1773 | - Be more flexible in activating the automatic bootup - use insserv (on | ||
2427 | 1774 | older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and | ||
2428 | 1775 | others) to create the respective symlinks | ||
2429 | 1776 | |||
2430 | 1777 | * Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com> | ||
2431 | 1778 | |||
2432 | 1779 | - MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches | ||
2433 | 1780 | (mixing 3.23 and 4.0 packages) | ||
2434 | 1781 | |||
2435 | 1782 | * Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com> | ||
2436 | 1783 | |||
2437 | 1784 | - Turn off OpenSSL in MySQL-Max for now until it works properly again | ||
2438 | 1785 | - enable RAID for the Max binary instead | ||
2439 | 1786 | - added compatibility link: safe_mysqld -> mysqld_safe to ease the | ||
2440 | 1787 | transition from 3.23 | ||
2441 | 1788 | |||
2442 | 1789 | * Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com> | ||
2443 | 1790 | |||
2444 | 1791 | - Reworked the build steps a little bit: the Max binary is supposed | ||
2445 | 1792 | to include OpenSSL, which cannot be linked statically, thus trying | ||
2446 | 1793 | to statically link against a special glibc is futile anyway | ||
2447 | 1794 | - because of this, it is not required to make yet another build run | ||
2448 | 1795 | just to compile the shared libs (saves a lot of time) | ||
2449 | 1796 | - updated package description of the Max subpackage | ||
2450 | 1797 | - clean up the BuildRoot directory afterwards | ||
2451 | 1798 | |||
2452 | 1799 | * Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com> | ||
2453 | 1800 | |||
2454 | 1801 | - Updated Packager information | ||
2455 | 1802 | - Fixed the build options: the regular package is supposed to | ||
2456 | 1803 | include InnoDB and linked statically, while the Max package | ||
2457 | 1804 | should include BDB and SSL support | ||
2458 | 1805 | |||
2459 | 1806 | * Fri May 03 2002 Lenz Grimmer <lenz@mysql.com> | ||
2460 | 1807 | |||
2461 | 1808 | - Use more RPM macros (e.g. infodir, mandir) to make the spec | ||
2462 | 1809 | file more portable | ||
2463 | 1810 | - reorganized the installation of documentation files: let RPM | ||
2464 | 1811 | take care of this | ||
2465 | 1812 | - reorganized the file list: actually install man pages along | ||
2466 | 1813 | with the binaries of the respective subpackage | ||
2467 | 1814 | - do not include libmysqld.a in the devel subpackage as well, if we | ||
2468 | 1815 | have a special "embedded" subpackage | ||
2469 | 1816 | - reworked the package descriptions | ||
2470 | 1817 | |||
2471 | 1818 | * Mon Oct 8 2001 Monty | ||
2472 | 1819 | |||
2473 | 1820 | - Added embedded server as a separate RPM | ||
2474 | 1821 | |||
2475 | 1822 | * Fri Apr 13 2001 Monty | ||
2476 | 1823 | |||
2477 | 1824 | - Added mysqld-max to the distribution | ||
2478 | 1825 | |||
2479 | 1826 | * Tue Jan 2 2001 Monty | ||
2480 | 1827 | |||
2481 | 1828 | - Added mysql-test to the bench package | ||
2482 | 1829 | |||
2483 | 1830 | * Fri Aug 18 2000 Tim Smith <tim@mysql.com> | ||
2484 | 1831 | |||
2485 | 1832 | - Added separate libmysql_r directory; now both a threaded | ||
2486 | 1833 | and non-threaded library is shipped. | ||
2487 | 1834 | |||
2488 | 1835 | * Wed Sep 28 1999 David Axmark <davida@mysql.com> | ||
2489 | 1836 | |||
2490 | 1837 | - Added the support-files/my-example.cnf to the docs directory. | ||
2491 | 1838 | |||
2492 | 1839 | - Removed devel dependency on base since it is about client | ||
2493 | 1840 | development. | ||
2494 | 1841 | |||
2495 | 1842 | * Wed Sep 8 1999 David Axmark <davida@mysql.com> | ||
2496 | 1843 | |||
2497 | 1844 | - Cleaned up some for 3.23. | ||
2498 | 1845 | |||
2499 | 1846 | * Thu Jul 1 1999 David Axmark <davida@mysql.com> | ||
2500 | 1847 | |||
2501 | 1848 | - Added support for shared libraries in a separate sub | ||
2502 | 1849 | package. Original fix by David Fox (dsfox@cogsci.ucsd.edu) | ||
2503 | 1850 | |||
2504 | 1851 | - The --enable-assembler switch is now automatically disables on | ||
2505 | 1852 | platforms there assembler code is unavailable. This should allow | ||
2506 | 1853 | building this RPM on non i386 systems. | ||
2507 | 1854 | |||
2508 | 1855 | * Mon Feb 22 1999 David Axmark <david@detron.se> | ||
2509 | 1856 | |||
2510 | 1857 | - Removed unportable cc switches from the spec file. The defaults can | ||
2511 | 1858 | now be overridden with environment variables. This feature is used | ||
2512 | 1859 | to compile the official RPM with optimal (but compiler version | ||
2513 | 1860 | specific) switches. | ||
2514 | 1861 | |||
2515 | 1862 | - Removed the repetitive description parts for the sub rpms. Maybe add | ||
2516 | 1863 | again if RPM gets a multiline macro capability. | ||
2517 | 1864 | |||
2518 | 1865 | - Added support for a pt_BR translation. Translation contributed by | ||
2519 | 1866 | Jorge Godoy <jorge@bestway.com.br>. | ||
2520 | 1867 | |||
2521 | 1868 | * Wed Nov 4 1998 David Axmark <david@detron.se> | ||
2522 | 1869 | |||
2523 | 1870 | - A lot of changes in all the rpm and install scripts. This may even | ||
2524 | 1871 | be a working RPM :-) | ||
2525 | 1872 | |||
2526 | 1873 | * Sun Aug 16 1998 David Axmark <david@detron.se> | ||
2527 | 1874 | |||
2528 | 1875 | - A developers changelog for MySQL is available in the source RPM. And | ||
2529 | 1876 | there is a history of major user visible changed in the Reference | ||
2530 | 1877 | Manual. Only RPM specific changes will be documented here. | ||
2531 | 0 | 1878 | ||
2532 | === removed file 'build/percona-server.spec' | |||
2533 | --- build/percona-server.spec 2013-04-10 04:47:26 +0000 | |||
2534 | +++ build/percona-server.spec 1970-01-01 00:00:00 +0000 | |||
2535 | @@ -1,1877 +0,0 @@ | |||
2536 | 1 | # Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. | ||
2537 | 2 | # | ||
2538 | 3 | # This program is free software; you can redistribute it and/or modify | ||
2539 | 4 | # it under the terms of the GNU General Public License as published by | ||
2540 | 5 | # the Free Software Foundation; version 2 of the License. | ||
2541 | 6 | # | ||
2542 | 7 | # This program is distributed in the hope that it will be useful, | ||
2543 | 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2544 | 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
2545 | 10 | # GNU General Public License for more details. | ||
2546 | 11 | # | ||
2547 | 12 | # You should have received a copy of the GNU General Public License | ||
2548 | 13 | # along with this program; see the file COPYING. If not, write to the | ||
2549 | 14 | # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston | ||
2550 | 15 | # MA 02110-1301 USA. | ||
2551 | 16 | |||
2552 | 17 | ############################################################################## | ||
2553 | 18 | # Some common macro definitions | ||
2554 | 19 | ############################################################################## | ||
2555 | 20 | |||
2556 | 21 | # NOTE: "vendor" is used in upgrade/downgrade check, so you can't | ||
2557 | 22 | # change these, has to be exactly as is. | ||
2558 | 23 | %define mysql_old_vendor MySQL AB | ||
2559 | 24 | %define mysql_vendor_2 Sun Microsystems, Inc. | ||
2560 | 25 | %define mysql_vendor Oracle and/or its affiliates | ||
2561 | 26 | %define percona_server_vendor Percona, Inc | ||
2562 | 27 | |||
2563 | 28 | %define mysql_version 5.6.10 | ||
2564 | 29 | %define redhatversion %(lsb_release -rs | awk -F. '{ print $1}') | ||
2565 | 30 | %define majorversion 60 | ||
2566 | 31 | %define minorversion 2 | ||
2567 | 32 | %define distribution rhel%{redhatversion} | ||
2568 | 33 | %define percona_server_version alpha%{majorversion}.%{minorversion} | ||
2569 | 34 | |||
2570 | 35 | %define mysqld_user mysql | ||
2571 | 36 | %define mysqld_group mysql | ||
2572 | 37 | %define mysqldatadir /var/lib/mysql | ||
2573 | 38 | |||
2574 | 39 | %define release alpha%{majorversion}.%{minorversion}.%{gotrevision}.%{distribution} | ||
2575 | 40 | |||
2576 | 41 | # | ||
2577 | 42 | # Macros we use which are not available in all supported versions of RPM | ||
2578 | 43 | # | ||
2579 | 44 | # - defined/undefined are missing on RHEL4 | ||
2580 | 45 | # | ||
2581 | 46 | %if %{expand:%{?defined:0}%{!?defined:1}} | ||
2582 | 47 | %define defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}} | ||
2583 | 48 | %endif | ||
2584 | 49 | %if %{expand:%{?undefined:0}%{!?undefined:1}} | ||
2585 | 50 | %define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}} | ||
2586 | 51 | %endif | ||
2587 | 52 | |||
2588 | 53 | # ---------------------------------------------------------------------------- | ||
2589 | 54 | # RPM build tools now automatically detect Perl module dependencies. This | ||
2590 | 55 | # detection causes problems as it is broken in some versions, and it also | ||
2591 | 56 | # provides unwanted dependencies from mandatory scripts in our package. | ||
2592 | 57 | # It might not be possible to disable this in all versions of RPM, but here we | ||
2593 | 58 | # try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as | ||
2594 | 59 | # disabling here might fail, and that package has the most problems. | ||
2595 | 60 | # See: | ||
2596 | 61 | # http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides | ||
2597 | 62 | # http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html | ||
2598 | 63 | # ---------------------------------------------------------------------------- | ||
2599 | 64 | %undefine __perl_provides | ||
2600 | 65 | %undefine __perl_requires | ||
2601 | 66 | |||
2602 | 67 | ############################################################################## | ||
2603 | 68 | # Command line handling | ||
2604 | 69 | ############################################################################## | ||
2605 | 70 | # | ||
2606 | 71 | # To set options: | ||
2607 | 72 | # | ||
2608 | 73 | # $ rpmbuild --define="option <x>" ... | ||
2609 | 74 | # | ||
2610 | 75 | |||
2611 | 76 | # ---------------------------------------------------------------------------- | ||
2612 | 77 | # Commercial builds | ||
2613 | 78 | # ---------------------------------------------------------------------------- | ||
2614 | 79 | %if %{undefined commercial} | ||
2615 | 80 | %define commercial 0 | ||
2616 | 81 | %endif | ||
2617 | 82 | |||
2618 | 83 | # ---------------------------------------------------------------------------- | ||
2619 | 84 | # Source name | ||
2620 | 85 | # ---------------------------------------------------------------------------- | ||
2621 | 86 | %if %{undefined src_base} | ||
2622 | 87 | %define src_base Percona-Server | ||
2623 | 88 | %endif | ||
2624 | 89 | %define src_dir %{src_base}-%{mysql_version}-%{percona_server_version} | ||
2625 | 90 | |||
2626 | 91 | # ---------------------------------------------------------------------------- | ||
2627 | 92 | # Feature set (storage engines, options). Default to community (everything) | ||
2628 | 93 | # ---------------------------------------------------------------------------- | ||
2629 | 94 | %if %{undefined feature_set} | ||
2630 | 95 | %define feature_set community | ||
2631 | 96 | %endif | ||
2632 | 97 | |||
2633 | 98 | # ---------------------------------------------------------------------------- | ||
2634 | 99 | # Server comment strings | ||
2635 | 100 | # ---------------------------------------------------------------------------- | ||
2636 | 101 | %if %{undefined compilation_comment_debug} | ||
2637 | 102 | %define compilation_comment_debug Percona Server - Debug (GPL), Release %{percona_server_version}, Revision %{gotrevision} | ||
2638 | 103 | %endif | ||
2639 | 104 | %if %{undefined compilation_comment_release} | ||
2640 | 105 | %define compilation_comment_release Percona Server (GPL), Release %{percona_server_version}, Revision %{gotrevision} | ||
2641 | 106 | %endif | ||
2642 | 107 | |||
2643 | 108 | |||
2644 | 109 | # ---------------------------------------------------------------------------- | ||
2645 | 110 | # Product and server suffixes | ||
2646 | 111 | # ---------------------------------------------------------------------------- | ||
2647 | 112 | %define product_suffix -56 | ||
2648 | 113 | %if %{undefined product_suffix} | ||
2649 | 114 | %if %{defined short_product_tag} | ||
2650 | 115 | %define product_suffix -%{short_product_tag} | ||
2651 | 116 | %else | ||
2652 | 117 | %define product_suffix %{nil} | ||
2653 | 118 | %endif | ||
2654 | 119 | %endif | ||
2655 | 120 | |||
2656 | 121 | %define server_suffix %{product_suffix} | ||
2657 | 122 | %if %{undefined server_suffix} | ||
2658 | 123 | %define server_suffix %{nil} | ||
2659 | 124 | %endif | ||
2660 | 125 | |||
2661 | 126 | # ---------------------------------------------------------------------------- | ||
2662 | 127 | # Distribution support | ||
2663 | 128 | # ---------------------------------------------------------------------------- | ||
2664 | 129 | %if %{undefined distro_specific} | ||
2665 | 130 | %define distro_specific 0 | ||
2666 | 131 | %endif | ||
2667 | 132 | %if %{distro_specific} | ||
2668 | 133 | %if %(test -f /etc/enterprise-release && echo 1 || echo 0) | ||
2669 | 134 | %define oelver %(rpm -qf --qf '%%{version}\\n' /etc/enterprise-release | sed -e 's/^\\([0-9]*\\).*/\\1/g') | ||
2670 | 135 | %if "%oelver" == "4" | ||
2671 | 136 | %define distro_description Oracle Enterprise Linux 4 | ||
2672 | 137 | %define distro_releasetag oel4 | ||
2673 | 138 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
2674 | 139 | %define distro_requires chkconfig coreutils grep procps shadow-utils | ||
2675 | 140 | %else | ||
2676 | 141 | %if "%oelver" == "5" | ||
2677 | 142 | %define distro_description Oracle Enterprise Linux 5 | ||
2678 | 143 | %define distro_releasetag oel5 | ||
2679 | 144 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
2680 | 145 | %define distro_requires chkconfig coreutils grep procps shadow-utils | ||
2681 | 146 | %else | ||
2682 | 147 | %{error:Oracle Enterprise Linux %{oelver} is unsupported} | ||
2683 | 148 | %endif | ||
2684 | 149 | %endif | ||
2685 | 150 | %else | ||
2686 | 151 | %if %(test -f /etc/redhat-release && echo 1 || echo 0) | ||
2687 | 152 | %define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g') | ||
2688 | 153 | %if "%rhelver" == "4" | ||
2689 | 154 | %define distro_description Red Hat Enterprise Linux 4 | ||
2690 | 155 | %define distro_releasetag rhel4 | ||
2691 | 156 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
2692 | 157 | %define distro_requires chkconfig coreutils grep procps shadow-utils | ||
2693 | 158 | %else | ||
2694 | 159 | %if "%rhelver" == "5" | ||
2695 | 160 | %define distro_description Red Hat Enterprise Linux 5 | ||
2696 | 161 | %define distro_releasetag rhel5 | ||
2697 | 162 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
2698 | 163 | %define distro_requires chkconfig coreutils grep procps shadow-utils | ||
2699 | 164 | %else | ||
2700 | 165 | %{error:Red Hat Enterprise Linux %{rhelver} is unsupported} | ||
2701 | 166 | %endif | ||
2702 | 167 | %endif | ||
2703 | 168 | %else | ||
2704 | 169 | %if %(test -f /etc/SuSE-release && echo 1 || echo 0) | ||
2705 | 170 | %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release) | ||
2706 | 171 | %if "%susever" == "10" | ||
2707 | 172 | %define distro_description SUSE Linux Enterprise Server 10 | ||
2708 | 173 | %define distro_releasetag sles10 | ||
2709 | 174 | %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel libaio-devel bison cmake | ||
2710 | 175 | %define distro_requires aaa_base coreutils grep procps pwdutils | ||
2711 | 176 | %else | ||
2712 | 177 | %if "%susever" == "11" | ||
2713 | 178 | %define distro_description SUSE Linux Enterprise Server 11 | ||
2714 | 179 | %define distro_releasetag sles11 | ||
2715 | 180 | %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel libaio-devel bison cmake | ||
2716 | 181 | %define distro_requires aaa_base coreutils grep procps pwdutils | ||
2717 | 182 | %else | ||
2718 | 183 | %{error:SuSE %{susever} is unsupported} | ||
2719 | 184 | %endif | ||
2720 | 185 | %endif | ||
2721 | 186 | %else | ||
2722 | 187 | %{error:Unsupported distribution} | ||
2723 | 188 | %endif | ||
2724 | 189 | %endif | ||
2725 | 190 | %endif | ||
2726 | 191 | %else | ||
2727 | 192 | %define generic_kernel %(uname -r | cut -d. -f1-2) | ||
2728 | 193 | %define distro_description Generic Linux (kernel %{generic_kernel}) | ||
2729 | 194 | %define distro_releasetag linux%{generic_kernel} | ||
2730 | 195 | %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake | ||
2731 | 196 | %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd | ||
2732 | 197 | %endif | ||
2733 | 198 | |||
2734 | 199 | # ---------------------------------------------------------------------------- | ||
2735 | 200 | # Support optional "tcmalloc" library (experimental) | ||
2736 | 201 | # ---------------------------------------------------------------------------- | ||
2737 | 202 | %if %{defined malloc_lib_target} | ||
2738 | 203 | %define WITH_TCMALLOC 1 | ||
2739 | 204 | %else | ||
2740 | 205 | %define WITH_TCMALLOC 0 | ||
2741 | 206 | %endif | ||
2742 | 207 | |||
2743 | 208 | ############################################################################## | ||
2744 | 209 | # Configuration based upon above user input, not to be set directly | ||
2745 | 210 | ############################################################################## | ||
2746 | 211 | |||
2747 | 212 | %if %{commercial} | ||
2748 | 213 | %define license_files_server %{src_dir}/LICENSE.mysql | ||
2749 | 214 | %define license_type Commercial | ||
2750 | 215 | %else | ||
2751 | 216 | %define license_files_server %{src_dir}/COPYING %{src_dir}/README | ||
2752 | 217 | %define license_type GPL | ||
2753 | 218 | %endif | ||
2754 | 219 | |||
2755 | 220 | ############################################################################## | ||
2756 | 221 | # Main spec file section | ||
2757 | 222 | ############################################################################## | ||
2758 | 223 | |||
2759 | 224 | Name: Percona-Server%{product_suffix} | ||
2760 | 225 | Summary: Percona-Server: a very fast and reliable SQL database server | ||
2761 | 226 | Group: Applications/Databases | ||
2762 | 227 | Version: %{mysql_version} | ||
2763 | 228 | Release: %{release} | ||
2764 | 229 | Distribution: %{distro_description} | ||
2765 | 230 | License: Copyright (c) 2000, 2010, %{mysql_vendor}. All rights reserved. Use is subject to license terms. Under %{license_type} license as shown in the Description field. | ||
2766 | 231 | Source: http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-%{mysql_version}-%{majorversion}.%{minorversion}/source/%{src_dir}.tar.gz | ||
2767 | 232 | URL: http://www.percona.com/ | ||
2768 | 233 | Packager: Percona MySQL Development Team <mysqldev@percona.com> | ||
2769 | 234 | Vendor: %{percona_server_vendor} | ||
2770 | 235 | Provides: mysql-server | ||
2771 | 236 | BuildRequires: %{distro_buildreq} | ||
2772 | 237 | |||
2773 | 238 | # Think about what you use here since the first step is to | ||
2774 | 239 | # run a rm -rf | ||
2775 | 240 | BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
2776 | 241 | |||
2777 | 242 | # From the manual | ||
2778 | 243 | %description | ||
2779 | 244 | The Percona Server software delivers a very fast, multi-threaded, multi-user, | ||
2780 | 245 | and robust SQL (Structured Query Language) database server. Percona Server | ||
2781 | 246 | is intended for mission-critical, heavy-load production systems. | ||
2782 | 247 | |||
2783 | 248 | Percona recommends that all production deployments be protected with a support | ||
2784 | 249 | contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime, | ||
2785 | 250 | be eligible for hot fixes, and boost your team's productivity. | ||
2786 | 251 | |||
2787 | 252 | ############################################################################## | ||
2788 | 253 | # Sub package definition | ||
2789 | 254 | ############################################################################## | ||
2790 | 255 | |||
2791 | 256 | %package -n Percona-Server-server%{product_suffix} | ||
2792 | 257 | Summary: Percona Server: a very fast and reliable SQL database server | ||
2793 | 258 | Group: Applications/Databases | ||
2794 | 259 | Requires: %{distro_requires} Percona-Server-shared%{product_suffix} | ||
2795 | 260 | Provides: mysql-server MySQL-server | ||
2796 | 261 | |||
2797 | 262 | %description -n Percona-Server-server%{product_suffix} | ||
2798 | 263 | The Percona Server software delivers a very fast, multi-threaded, multi-user, | ||
2799 | 264 | and robust SQL (Structured Query Language) database server. Percona Server | ||
2800 | 265 | is intended for mission-critical, heavy-load production systems. | ||
2801 | 266 | |||
2802 | 267 | Percona recommends that all production deployments be protected with a support | ||
2803 | 268 | contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime, | ||
2804 | 269 | be eligible for hot fixes, and boost your team's productivity. | ||
2805 | 270 | |||
2806 | 271 | This package includes the Percona Server with XtraDB binary | ||
2807 | 272 | as well as related utilities to run and administer Percona Server. | ||
2808 | 273 | |||
2809 | 274 | If you want to access and work with the database, you have to install | ||
2810 | 275 | package "Percona-Server-client%{product_suffix}" as well! | ||
2811 | 276 | |||
2812 | 277 | # ---------------------------------------------------------------------------- | ||
2813 | 278 | %package -n Percona-Server-client%{product_suffix} | ||
2814 | 279 | Summary: Percona Server - Client | ||
2815 | 280 | Group: Applications/Databases | ||
2816 | 281 | Requires: Percona-Server-shared%{product_suffix} | ||
2817 | 282 | Provides: mysql-client MySQL-client mysql MySQL | ||
2818 | 283 | |||
2819 | 284 | %description -n Percona-Server-client%{product_suffix} | ||
2820 | 285 | This package contains the standard Percona Server client and administration tools. | ||
2821 | 286 | |||
2822 | 287 | For a description of Percona Server see http://www.percona.com/software/percona-server/ | ||
2823 | 288 | |||
2824 | 289 | # ---------------------------------------------------------------------------- | ||
2825 | 290 | %package -n Percona-Server-test%{product_suffix} | ||
2826 | 291 | Requires: Percona-Server-client%{product_suffix} perl | ||
2827 | 292 | Summary: Percona Server - Test suite | ||
2828 | 293 | Group: Applications/Databases | ||
2829 | 294 | Provides: mysql-test | ||
2830 | 295 | AutoReqProv: no | ||
2831 | 296 | |||
2832 | 297 | %description -n Percona-Server-test%{product_suffix} | ||
2833 | 298 | This package contains the Percona Server regression test suite. | ||
2834 | 299 | |||
2835 | 300 | For a description of Percona Server see http://www.percona.com/software/percona-server/ | ||
2836 | 301 | |||
2837 | 302 | # ---------------------------------------------------------------------------- | ||
2838 | 303 | %package -n Percona-Server-devel%{product_suffix} | ||
2839 | 304 | Summary: Percona Server - Development header files and libraries | ||
2840 | 305 | Group: Applications/Databases | ||
2841 | 306 | Provides: mysql-devel | ||
2842 | 307 | |||
2843 | 308 | %description -n Percona-Server-devel%{product_suffix} | ||
2844 | 309 | This package contains the development header files and libraries necessary | ||
2845 | 310 | to develop Percona Server client applications. | ||
2846 | 311 | |||
2847 | 312 | For a description of Percona Server see http://www.percona.com/software/percona-server/ | ||
2848 | 313 | |||
2849 | 314 | # ---------------------------------------------------------------------------- | ||
2850 | 315 | %package -n Percona-Server-shared%{product_suffix} | ||
2851 | 316 | Summary: Percona Server - Shared libraries | ||
2852 | 317 | Group: Applications/Databases | ||
2853 | 318 | Provides: mysql-shared | ||
2854 | 319 | |||
2855 | 320 | %description -n Percona-Server-shared%{product_suffix} | ||
2856 | 321 | This package contains the shared libraries (*.so*) which certain languages | ||
2857 | 322 | and applications need to dynamically load and use Percona Server. | ||
2858 | 323 | |||
2859 | 324 | ############################################################################## | ||
2860 | 325 | %prep | ||
2861 | 326 | %setup -T -a 0 -c -n %{src_dir} | ||
2862 | 327 | |||
2863 | 328 | ############################################################################## | ||
2864 | 329 | %build | ||
2865 | 330 | |||
2866 | 331 | # Be strict about variables, bail at earliest opportunity, etc. | ||
2867 | 332 | set -uex | ||
2868 | 333 | |||
2869 | 334 | BuildUDF() { | ||
2870 | 335 | cd UDF | ||
2871 | 336 | CXX="${UDF_CXX:-g++}"\ | ||
2872 | 337 | CXXFLAGS="$CXXFLAGS -I$RPM_BUILD_DIR/%{src_dir}/release/include" \ | ||
2873 | 338 | ./configure --includedir=$RPM_BUILD_DIR/%{src_dir}/%{src_dir}/include \ | ||
2874 | 339 | --libdir=%{_libdir}/mysql/plugin | ||
2875 | 340 | make all | ||
2876 | 341 | cd - | ||
2877 | 342 | } | ||
2878 | 343 | |||
2879 | 344 | # Optional package files | ||
2880 | 345 | touch optional-files-devel | ||
2881 | 346 | |||
2882 | 347 | # | ||
2883 | 348 | # Set environment in order of preference, MYSQL_BUILD_* first, then variable | ||
2884 | 349 | # name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the | ||
2885 | 350 | # default RPM build environment. | ||
2886 | 351 | # | ||
2887 | 352 | # We set CXX=gcc by default to support so-called 'generic' binaries, where we | ||
2888 | 353 | # do not have a dependancy on libgcc/libstdc++. This only works while we do | ||
2889 | 354 | # not require C++ features such as exceptions, and may need to be removed at | ||
2890 | 355 | # a later date. | ||
2891 | 356 | # | ||
2892 | 357 | |||
2893 | 358 | # This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break | ||
2894 | 359 | # the compile in cmd-line-utils/readline - needs investigation, but for now | ||
2895 | 360 | # we simply unset it and use those specified directly in cmake. | ||
2896 | 361 | %if "%{_arch}" == "ia64" | ||
2897 | 362 | RPM_OPT_FLAGS= | ||
2898 | 363 | %endif | ||
2899 | 364 | |||
2900 | 365 | export PATH=${MYSQL_BUILD_PATH:-$PATH} | ||
2901 | 366 | export CC=${MYSQL_BUILD_CC:-${CC:-gcc}} | ||
2902 | 367 | export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}} | ||
2903 | 368 | export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}} | ||
2904 | 369 | export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}} | ||
2905 | 370 | export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}} | ||
2906 | 371 | export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}} | ||
2907 | 372 | export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-${MAKE_JFLAG:-}} | ||
2908 | 373 | |||
2909 | 374 | # Build debug mysqld and libmysqld.a | ||
2910 | 375 | mkdir debug | ||
2911 | 376 | ( | ||
2912 | 377 | cd debug | ||
2913 | 378 | # Attempt to remove any optimisation flags from the debug build | ||
2914 | 379 | CFLAGS=`echo " ${CFLAGS} " | \ | ||
2915 | 380 | sed -e 's/ -O[0-9]* / /' \ | ||
2916 | 381 | -e 's/ -unroll2 / /' \ | ||
2917 | 382 | -e 's/ -ip / /' \ | ||
2918 | 383 | -e 's/^ //' \ | ||
2919 | 384 | -e 's/ $//'` | ||
2920 | 385 | CXXFLAGS=`echo " ${CXXFLAGS} " | \ | ||
2921 | 386 | sed -e 's/ -O[0-9]* / /' \ | ||
2922 | 387 | -e 's/ -unroll2 / /' \ | ||
2923 | 388 | -e 's/ -ip / /' \ | ||
2924 | 389 | -e 's/^ //' \ | ||
2925 | 390 | -e 's/ $//'` | ||
2926 | 391 | # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before | ||
2927 | 392 | # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM | ||
2928 | 393 | ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \ | ||
2929 | 394 | -DCMAKE_BUILD_TYPE=Debug \ | ||
2930 | 395 | -DENABLE_DTRACE=OFF \ | ||
2931 | 396 | -DWITH_EMBEDDED_SERVER=OFF \ | ||
2932 | 397 | -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \ | ||
2933 | 398 | -DFEATURE_SET="%{feature_set}" \ | ||
2934 | 399 | -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \ | ||
2935 | 400 | -DMYSQL_SERVER_SUFFIX="%{server_suffix}" | ||
2936 | 401 | echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG | ||
2937 | 402 | make ${MAKE_JFLAG} | ||
2938 | 403 | ) | ||
2939 | 404 | # Build full release | ||
2940 | 405 | mkdir release | ||
2941 | 406 | ( | ||
2942 | 407 | cd release | ||
2943 | 408 | # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before | ||
2944 | 409 | # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM | ||
2945 | 410 | ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \ | ||
2946 | 411 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
2947 | 412 | -DENABLE_DTRACE=OFF \ | ||
2948 | 413 | -DWITH_EMBEDDED_SERVER=OFF \ | ||
2949 | 414 | -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \ | ||
2950 | 415 | -DFEATURE_SET="%{feature_set}" \ | ||
2951 | 416 | -DCOMPILATION_COMMENT="%{compilation_comment_release}" \ | ||
2952 | 417 | -DMYSQL_SERVER_SUFFIX="%{server_suffix}" | ||
2953 | 418 | echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG | ||
2954 | 419 | make ${MAKE_JFLAG} | ||
2955 | 420 | cd ../%{src_dir} | ||
2956 | 421 | d="`pwd`" | ||
2957 | 422 | BuildUDF | ||
2958 | 423 | cd "$d" | ||
2959 | 424 | ) | ||
2960 | 425 | |||
2961 | 426 | # For the debuginfo extraction stage, some source files are not located in the release | ||
2962 | 427 | # and debug dirs, but in the source dir. Make a link there to avoid errors in the | ||
2963 | 428 | # strip phase. | ||
2964 | 429 | for d in debug release | ||
2965 | 430 | do | ||
2966 | 431 | for f in pars/lexyy.cc pars/pars0grm.cc pars/pars0grm.y pars/pars0lex.l \ | ||
2967 | 432 | fts/fts0pars.cc fts/fts0pars.y fts/fts0blex.l fts/fts0blex.cc \ | ||
2968 | 433 | include/fts0pars.h fts/fts0tlex.cc fts/fts0tlex.l | ||
2969 | 434 | do | ||
2970 | 435 | ln -s "../../../%{src_dir}/storage/innobase/$f" "$d/storage/innobase/" | ||
2971 | 436 | done | ||
2972 | 437 | mkdir -p "$d/storage/include/" | ||
2973 | 438 | ln -s "../../../%{src_dir}/storage/innobase/include/fts0tlex.h" \ | ||
2974 | 439 | "$d/storage/include/" | ||
2975 | 440 | ln -s "../../../%{src_dir}/storage/innobase/include/fts0blex.h" \ | ||
2976 | 441 | "$d/storage/include/" | ||
2977 | 442 | done | ||
2978 | 443 | |||
2979 | 444 | # Use the build root for temporary storage of the shared libraries. | ||
2980 | 445 | RBR=$RPM_BUILD_ROOT | ||
2981 | 446 | |||
2982 | 447 | # Clean up the BuildRoot first | ||
2983 | 448 | [ "$RBR" != "/" ] && [ -d "$RBR" ] && rm -rf "$RBR"; | ||
2984 | 449 | |||
2985 | 450 | # For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). This | ||
2986 | 451 | # needs to be during build phase as $CC is not set during install. | ||
2987 | 452 | if "$CC" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1 | ||
2988 | 453 | then | ||
2989 | 454 | libgcc=`$CC $CFLAGS --print-libgcc-file` | ||
2990 | 455 | if [ -f $libgcc ] | ||
2991 | 456 | then | ||
2992 | 457 | mkdir -p $RBR%{_libdir}/mysql | ||
2993 | 458 | install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a | ||
2994 | 459 | echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel | ||
2995 | 460 | fi | ||
2996 | 461 | fi | ||
2997 | 462 | |||
2998 | 463 | # Move temporarily the saved files to the BUILD directory since the BUILDROOT | ||
2999 | 464 | # dir will be cleaned at the start of the install phase | ||
3000 | 465 | mkdir -p "$(dirname $RPM_BUILD_DIR/%{_libdir})" | ||
3001 | 466 | mv $RBR%{_libdir} $RPM_BUILD_DIR/%{_libdir} | ||
3002 | 467 | |||
3003 | 468 | ############################################################################## | ||
3004 | 469 | %install | ||
3005 | 470 | |||
3006 | 471 | RBR=$RPM_BUILD_ROOT | ||
3007 | 472 | MBD=$RPM_BUILD_DIR/%{src_dir} | ||
3008 | 473 | |||
3009 | 474 | # Move back the libdir from BUILD dir to BUILDROOT | ||
3010 | 475 | mkdir -p "$(dirname $RBR%{_libdir})" | ||
3011 | 476 | mv $RPM_BUILD_DIR/%{_libdir} $RBR%{_libdir} | ||
3012 | 477 | |||
3013 | 478 | # Ensure that needed directories exists | ||
3014 | 479 | install -d $RBR%{_sysconfdir}/{logrotate.d,init.d} | ||
3015 | 480 | install -d $RBR%{mysqldatadir}/mysql | ||
3016 | 481 | install -d $RBR%{_datadir}/mysql-test | ||
3017 | 482 | install -d $RBR%{_datadir}/mysql/SELinux/RHEL4 | ||
3018 | 483 | install -d $RBR%{_includedir} | ||
3019 | 484 | install -d $RBR%{_libdir} | ||
3020 | 485 | install -d $RBR%{_mandir} | ||
3021 | 486 | install -d $RBR%{_sbindir} | ||
3022 | 487 | install -d $RBR%{_libdir}/mysql/plugin | ||
3023 | 488 | |||
3024 | 489 | ( | ||
3025 | 490 | cd $MBD/release | ||
3026 | 491 | make DESTDIR=$RBR benchdir_root=%{_datadir} install | ||
3027 | 492 | d="`pwd`" | ||
3028 | 493 | cd $MBD/%{src_dir}/UDF | ||
3029 | 494 | make DESTDIR=$RBR benchdir_root=%{_datadir} install | ||
3030 | 495 | cd "$d" | ||
3031 | 496 | ) | ||
3032 | 497 | |||
3033 | 498 | # Install all binaries | ||
3034 | 499 | ( | ||
3035 | 500 | cd $MBD/release | ||
3036 | 501 | make DESTDIR=$RBR install | ||
3037 | 502 | ) | ||
3038 | 503 | |||
3039 | 504 | # FIXME: at some point we should stop doing this and just install everything | ||
3040 | 505 | # FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming | ||
3041 | 506 | # FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax | ||
3042 | 507 | mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/ | ||
3043 | 508 | |||
3044 | 509 | # Install logrotate and autostart | ||
3045 | 510 | install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql | ||
3046 | 511 | install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql | ||
3047 | 512 | |||
3048 | 513 | # Create a symlink "rcmysql", pointing to the init.script. SuSE users | ||
3049 | 514 | # will appreciate that, as all services usually offer this. | ||
3050 | 515 | ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql | ||
3051 | 516 | |||
3052 | 517 | # Touch the place where the my.cnf config file might be located | ||
3053 | 518 | # Just to make sure it's in the file list and marked as a config file | ||
3054 | 519 | touch $RBR%{_sysconfdir}/my.cnf | ||
3055 | 520 | |||
3056 | 521 | # Install SELinux files in datadir | ||
3057 | 522 | install -m 600 $MBD/%{src_dir}/support-files/RHEL4-SElinux/mysql.{fc,te} \ | ||
3058 | 523 | $RBR%{_datadir}/mysql/SELinux/RHEL4 | ||
3059 | 524 | |||
3060 | 525 | %if %{WITH_TCMALLOC} | ||
3061 | 526 | # Even though this is a shared library, put it under /usr/lib*/mysql, so it | ||
3062 | 527 | # doesn't conflict with possible shared lib by the same name in /usr/lib*. See | ||
3063 | 528 | # `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used. | ||
3064 | 529 | install -m 644 "%{malloc_lib_source}" \ | ||
3065 | 530 | "$RBR%{_libdir}/mysql/%{malloc_lib_target}" | ||
3066 | 531 | %endif | ||
3067 | 532 | |||
3068 | 533 | # Remove man pages we explicitly do not want to package, avoids 'unpackaged | ||
3069 | 534 | # files' warning. | ||
3070 | 535 | rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1* | ||
3071 | 536 | |||
3072 | 537 | ############################################################################## | ||
3073 | 538 | # Post processing actions, i.e. when installed | ||
3074 | 539 | ############################################################################## | ||
3075 | 540 | |||
3076 | 541 | %pre -n Percona-Server-server%{product_suffix} | ||
3077 | 542 | |||
3078 | 543 | # ATTENTION: Parts of this are duplicated in the "triggerpostun" ! | ||
3079 | 544 | |||
3080 | 545 | mysql_datadir=%{mysqldatadir} | ||
3081 | 546 | # Check if we can safely upgrade. An upgrade is only safe if it's from one | ||
3082 | 547 | # of our RPMs in the same version family. | ||
3083 | 548 | |||
3084 | 549 | installed=`rpm -q --whatprovides mysql-server 2> /dev/null` | ||
3085 | 550 | if [ $? -eq 0 -a -n "$installed" ]; then | ||
3086 | 551 | vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1` | ||
3087 | 552 | version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1` | ||
3088 | 553 | myoldvendor='%{mysql_old_vendor}' | ||
3089 | 554 | myvendor_2='%{mysql_vendor_2}' | ||
3090 | 555 | myvendor='%{mysql_vendor}' | ||
3091 | 556 | perconaservervendor='%{percona_server_vendor}' | ||
3092 | 557 | myversion='%{mysql_version}' | ||
3093 | 558 | |||
3094 | 559 | old_family=`echo $version \ | ||
3095 | 560 | | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'` | ||
3096 | 561 | new_family=`echo $myversion \ | ||
3097 | 562 | | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'` | ||
3098 | 563 | |||
3099 | 564 | [ -z "$vendor" ] && vendor='<unknown>' | ||
3100 | 565 | [ -z "$old_family" ] && old_family="<unrecognized version $version>" | ||
3101 | 566 | [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>" | ||
3102 | 567 | |||
3103 | 568 | error_text= | ||
3104 | 569 | if [ "$vendor" != "$myoldvendor" \ | ||
3105 | 570 | -a "$vendor" != "$myvendor_2" \ | ||
3106 | 571 | -a "$vendor" != "$myvendor" \ | ||
3107 | 572 | -a "$vendor" != "$perconaservervendor" ]; then | ||
3108 | 573 | error_text="$error_text | ||
3109 | 574 | The current MySQL server package is provided by a different | ||
3110 | 575 | vendor ($vendor) than $myoldvendor, $myvendor_2, | ||
3111 | 576 | $myvendor, or $perconaservervendor. | ||
3112 | 577 | Some files may be installed to different locations, including log | ||
3113 | 578 | files and the service startup script in %{_sysconfdir}/init.d/. | ||
3114 | 579 | " | ||
3115 | 580 | fi | ||
3116 | 581 | |||
3117 | 582 | if [ "$old_family" != "$new_family" ]; then | ||
3118 | 583 | error_text="$error_text | ||
3119 | 584 | Upgrading directly from MySQL $old_family to MySQL $new_family may not | ||
3120 | 585 | be safe in all cases. A manual dump and restore using mysqldump is | ||
3121 | 586 | recommended. It is important to review the MySQL manual's Upgrading | ||
3122 | 587 | section for version-specific incompatibilities. | ||
3123 | 588 | " | ||
3124 | 589 | fi | ||
3125 | 590 | |||
3126 | 591 | if [ -n "$error_text" ]; then | ||
3127 | 592 | cat <<HERE >&2 | ||
3128 | 593 | |||
3129 | 594 | ****************************************************************** | ||
3130 | 595 | A MySQL server package ($installed) is installed. | ||
3131 | 596 | $error_text | ||
3132 | 597 | A manual upgrade is required. | ||
3133 | 598 | |||
3134 | 599 | - Ensure that you have a complete, working backup of your data and my.cnf | ||
3135 | 600 | files | ||
3136 | 601 | - Shut down the MySQL server cleanly | ||
3137 | 602 | - Remove the existing MySQL packages. Usually this command will | ||
3138 | 603 | list the packages you should remove: | ||
3139 | 604 | rpm -qa | grep -i '^mysql-' | ||
3140 | 605 | |||
3141 | 606 | You may choose to use 'rpm --nodeps -ev <package-name>' to remove | ||
3142 | 607 | the package which contains the mysqlclient shared library. The | ||
3143 | 608 | library will be reinstalled by the MySQL-shared-compat package. | ||
3144 | 609 | - Install the new MySQL packages supplied by $myvendor | ||
3145 | 610 | - Ensure that the MySQL server is started | ||
3146 | 611 | - Run the 'mysql_upgrade' program | ||
3147 | 612 | |||
3148 | 613 | This is a brief description of the upgrade process. Important details | ||
3149 | 614 | can be found in the MySQL manual, in the Upgrading section. | ||
3150 | 615 | ****************************************************************** | ||
3151 | 616 | HERE | ||
3152 | 617 | exit 1 | ||
3153 | 618 | fi | ||
3154 | 619 | fi | ||
3155 | 620 | |||
3156 | 621 | # We assume that if there is exactly one ".pid" file, | ||
3157 | 622 | # it contains the valid PID of a running MySQL server. | ||
3158 | 623 | NR_PID_FILES=`ls $mysql_datadir/*.pid 2>/dev/null | wc -l` | ||
3159 | 624 | case $NR_PID_FILES in | ||
3160 | 625 | 0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server | ||
3161 | 626 | 1 ) SERVER_TO_START='true' ;; | ||
3162 | 627 | * ) SERVER_TO_START='' # Situation not clear | ||
3163 | 628 | SEVERAL_PID_FILES=true ;; | ||
3164 | 629 | esac | ||
3165 | 630 | # That logic may be debated: We might check whether it is non-empty, | ||
3166 | 631 | # contains exactly one number (possibly a PID), and whether "ps" finds it. | ||
3167 | 632 | # OTOH, if there is no such process, it means a crash without a cleanup - | ||
3168 | 633 | # is that a reason not to start a new server after upgrade? | ||
3169 | 634 | |||
3170 | 635 | STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER | ||
3171 | 636 | |||
3172 | 637 | if [ -f $STATUS_FILE ]; then | ||
3173 | 638 | echo "Some previous upgrade was not finished:" | ||
3174 | 639 | ls -ld $STATUS_FILE | ||
3175 | 640 | echo "Please check its status, then do" | ||
3176 | 641 | echo " rm $STATUS_FILE" | ||
3177 | 642 | echo "before repeating the MySQL upgrade." | ||
3178 | 643 | exit 1 | ||
3179 | 644 | elif [ -n "$SEVERAL_PID_FILES" ] ; then | ||
3180 | 645 | echo "Your MySQL directory '$mysql_datadir' has more than one PID file:" | ||
3181 | 646 | ls -ld $mysql_datadir/*.pid | ||
3182 | 647 | echo "Please check which one (if any) corresponds to a running server" | ||
3183 | 648 | echo "and delete all others before repeating the MySQL upgrade." | ||
3184 | 649 | exit 1 | ||
3185 | 650 | fi | ||
3186 | 651 | |||
3187 | 652 | NEW_VERSION=%{mysql_version}-%{release} | ||
3188 | 653 | |||
3189 | 654 | # The "pre" section code is also run on a first installation, | ||
3190 | 655 | # when there is no data directory yet. Protect against error messages. | ||
3191 | 656 | if [ -d $mysql_datadir ] ; then | ||
3192 | 657 | echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE | ||
3193 | 658 | echo "'pre' step running at `date`" >> $STATUS_FILE | ||
3194 | 659 | echo >> $STATUS_FILE | ||
3195 | 660 | echo "ERR file(s):" >> $STATUS_FILE | ||
3196 | 661 | ls -ltr $mysql_datadir/*.err >> $STATUS_FILE | ||
3197 | 662 | echo >> $STATUS_FILE | ||
3198 | 663 | echo "Latest 'Version' line in latest file:" >> $STATUS_FILE | ||
3199 | 664 | grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \ | ||
3200 | 665 | tail -1 >> $STATUS_FILE | ||
3201 | 666 | echo >> $STATUS_FILE | ||
3202 | 667 | |||
3203 | 668 | if [ -n "$SERVER_TO_START" ] ; then | ||
3204 | 669 | # There is only one PID file, race possibility ignored | ||
3205 | 670 | echo "PID file:" >> $STATUS_FILE | ||
3206 | 671 | ls -l $mysql_datadir/*.pid >> $STATUS_FILE | ||
3207 | 672 | cat $mysql_datadir/*.pid >> $STATUS_FILE | ||
3208 | 673 | echo >> $STATUS_FILE | ||
3209 | 674 | echo "Server process:" >> $STATUS_FILE | ||
3210 | 675 | ps -fp `cat $mysql_datadir/*.pid` >> $STATUS_FILE | ||
3211 | 676 | echo >> $STATUS_FILE | ||
3212 | 677 | echo "SERVER_TO_START=$SERVER_TO_START" >> $STATUS_FILE | ||
3213 | 678 | else | ||
3214 | 679 | # Take a note we checked it ... | ||
3215 | 680 | echo "PID file:" >> $STATUS_FILE | ||
3216 | 681 | ls -l $mysql_datadir/*.pid >> $STATUS_FILE 2>&1 | ||
3217 | 682 | fi | ||
3218 | 683 | fi | ||
3219 | 684 | |||
3220 | 685 | # Shut down a previously installed server first | ||
3221 | 686 | # Note we *could* make that depend on $SERVER_TO_START, but we rather don't, | ||
3222 | 687 | # so a "stop" is attempted even if there is no PID file. | ||
3223 | 688 | # (Maybe the "stop" doesn't work then, but we might fix that in itself.) | ||
3224 | 689 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
3225 | 690 | %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1 | ||
3226 | 691 | echo "Giving mysqld 5 seconds to exit nicely" | ||
3227 | 692 | sleep 5 | ||
3228 | 693 | fi | ||
3229 | 694 | |||
3230 | 695 | %post -n Percona-Server-server%{product_suffix} | ||
3231 | 696 | |||
3232 | 697 | # ATTENTION: Parts of this are duplicated in the "triggerpostun" ! | ||
3233 | 698 | |||
3234 | 699 | mysql_datadir=%{mysqldatadir} | ||
3235 | 700 | NEW_VERSION=%{mysql_version}-%{release} | ||
3236 | 701 | STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER | ||
3237 | 702 | |||
3238 | 703 | # ---------------------------------------------------------------------- | ||
3239 | 704 | # Create data directory if needed, check whether upgrade or install | ||
3240 | 705 | # ---------------------------------------------------------------------- | ||
3241 | 706 | if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi | ||
3242 | 707 | if [ -f $STATUS_FILE ] ; then | ||
3243 | 708 | SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-` | ||
3244 | 709 | else | ||
3245 | 710 | SERVER_TO_START='' | ||
3246 | 711 | fi | ||
3247 | 712 | # echo "Analyzed: SERVER_TO_START=$SERVER_TO_START" | ||
3248 | 713 | if [ ! -d $mysql_datadir/mysql ] ; then | ||
3249 | 714 | mkdir $mysql_datadir/mysql; | ||
3250 | 715 | echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE | ||
3251 | 716 | else | ||
3252 | 717 | # If the directory exists, we may assume it is an upgrade. | ||
3253 | 718 | echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE | ||
3254 | 719 | fi | ||
3255 | 720 | if [ ! -d $mysql_datadir/test ] ; then mkdir $mysql_datadir/test; fi | ||
3256 | 721 | |||
3257 | 722 | # ---------------------------------------------------------------------- | ||
3258 | 723 | # Make MySQL start/shutdown automatically when the machine does it. | ||
3259 | 724 | # ---------------------------------------------------------------------- | ||
3260 | 725 | # NOTE: This still needs to be debated. Should we check whether these links | ||
3261 | 726 | # for the other run levels exist(ed) before the upgrade? | ||
3262 | 727 | # use chkconfig on Enterprise Linux and newer SuSE releases | ||
3263 | 728 | if [ -x /sbin/chkconfig ] ; then | ||
3264 | 729 | /sbin/chkconfig --add mysql | ||
3265 | 730 | # use insserv for older SuSE Linux versions | ||
3266 | 731 | elif [ -x /sbin/insserv ] ; then | ||
3267 | 732 | /sbin/insserv %{_sysconfdir}/init.d/mysql | ||
3268 | 733 | fi | ||
3269 | 734 | |||
3270 | 735 | # ---------------------------------------------------------------------- | ||
3271 | 736 | # Create a MySQL user and group. Do not report any problems if it already | ||
3272 | 737 | # exists. | ||
3273 | 738 | # ---------------------------------------------------------------------- | ||
3274 | 739 | groupadd -r %{mysqld_group} 2> /dev/null || true | ||
3275 | 740 | useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \ | ||
3276 | 741 | -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true | ||
3277 | 742 | # The user may already exist, make sure it has the proper group nevertheless | ||
3278 | 743 | # (BUG#12823) | ||
3279 | 744 | usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true | ||
3280 | 745 | |||
3281 | 746 | # ---------------------------------------------------------------------- | ||
3282 | 747 | # Change permissions so that the user that will run the MySQL daemon | ||
3283 | 748 | # owns all database files. | ||
3284 | 749 | # ---------------------------------------------------------------------- | ||
3285 | 750 | chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir | ||
3286 | 751 | |||
3287 | 752 | # ---------------------------------------------------------------------- | ||
3288 | 753 | # Initiate databases if needed | ||
3289 | 754 | # ---------------------------------------------------------------------- | ||
3290 | 755 | %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} | ||
3291 | 756 | |||
3292 | 757 | # ---------------------------------------------------------------------- | ||
3293 | 758 | # Upgrade databases if needed would go here - but it cannot be automated yet | ||
3294 | 759 | # ---------------------------------------------------------------------- | ||
3295 | 760 | |||
3296 | 761 | # ---------------------------------------------------------------------- | ||
3297 | 762 | # Change permissions again to fix any new files. | ||
3298 | 763 | # ---------------------------------------------------------------------- | ||
3299 | 764 | chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir | ||
3300 | 765 | |||
3301 | 766 | # ---------------------------------------------------------------------- | ||
3302 | 767 | # Fix permissions for the permission database so that only the user | ||
3303 | 768 | # can read them. | ||
3304 | 769 | # ---------------------------------------------------------------------- | ||
3305 | 770 | chmod -R og-rw $mysql_datadir/mysql | ||
3306 | 771 | |||
3307 | 772 | # ---------------------------------------------------------------------- | ||
3308 | 773 | # install SELinux files - but don't override existing ones | ||
3309 | 774 | # ---------------------------------------------------------------------- | ||
3310 | 775 | SETARGETDIR=/etc/selinux/targeted/src/policy | ||
3311 | 776 | SEDOMPROG=$SETARGETDIR/domains/program | ||
3312 | 777 | SECONPROG=$SETARGETDIR/file_contexts/program | ||
3313 | 778 | if [ -f /etc/redhat-release ] \ | ||
3314 | 779 | && (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \ | ||
3315 | 780 | || grep -q "CentOS release 4" /etc/redhat-release) ; then | ||
3316 | 781 | echo | ||
3317 | 782 | echo | ||
3318 | 783 | echo 'Notes regarding SELinux on this platform:' | ||
3319 | 784 | echo '=========================================' | ||
3320 | 785 | echo | ||
3321 | 786 | echo 'The default policy might cause server startup to fail because it is' | ||
3322 | 787 | echo 'not allowed to access critical files. In this case, please update' | ||
3323 | 788 | echo 'your installation.' | ||
3324 | 789 | echo | ||
3325 | 790 | echo 'The default policy might also cause inavailability of SSL related' | ||
3326 | 791 | echo 'features because the server is not allowed to access /dev/random' | ||
3327 | 792 | echo 'and /dev/urandom. If this is a problem, please do the following:' | ||
3328 | 793 | echo | ||
3329 | 794 | echo ' 1) install selinux-policy-targeted-sources from your OS vendor' | ||
3330 | 795 | echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':' | ||
3331 | 796 | echo ' allow mysqld_t random_device_t:chr_file read;' | ||
3332 | 797 | echo ' allow mysqld_t urandom_device_t:chr_file read;' | ||
3333 | 798 | echo ' 3) cd to '$SETARGETDIR' and issue the following command:' | ||
3334 | 799 | echo ' make load' | ||
3335 | 800 | echo | ||
3336 | 801 | echo | ||
3337 | 802 | fi | ||
3338 | 803 | |||
3339 | 804 | if [ -x sbin/restorecon ] ; then | ||
3340 | 805 | sbin/restorecon -R var/lib/mysql | ||
3341 | 806 | fi | ||
3342 | 807 | |||
3343 | 808 | # Was the server running before the upgrade? If so, restart the new one. | ||
3344 | 809 | if [ "$SERVER_TO_START" = "true" ] ; then | ||
3345 | 810 | # Restart in the same way that mysqld will be started normally. | ||
3346 | 811 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
3347 | 812 | %{_sysconfdir}/init.d/mysql start | ||
3348 | 813 | echo "Giving mysqld 5 seconds to start" | ||
3349 | 814 | sleep 5 | ||
3350 | 815 | fi | ||
3351 | 816 | fi | ||
3352 | 817 | |||
3353 | 818 | echo "Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit." | ||
3354 | 819 | echo "Run the following commands to create these functions:" | ||
3355 | 820 | echo "mysql -e \"CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'\"" | ||
3356 | 821 | echo "mysql -e \"CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'\"" | ||
3357 | 822 | echo "mysql -e \"CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'\"" | ||
3358 | 823 | echo "See http://code.google.com/p/maatkit/source/browse/trunk/udf for more details" | ||
3359 | 824 | |||
3360 | 825 | # Collect an upgrade history ... | ||
3361 | 826 | echo "Upgrade/install finished at `date`" >> $STATUS_FILE | ||
3362 | 827 | echo >> $STATUS_FILE | ||
3363 | 828 | echo "=====" >> $STATUS_FILE | ||
3364 | 829 | STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY | ||
3365 | 830 | cat $STATUS_FILE >> $STATUS_HISTORY | ||
3366 | 831 | mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun" | ||
3367 | 832 | |||
3368 | 833 | |||
3369 | 834 | #echo "Thank you for installing the MySQL Community Server! For Production | ||
3370 | 835 | #systems, we recommend MySQL Enterprise, which contains enterprise-ready | ||
3371 | 836 | #software, intelligent advisory services, and full production support with | ||
3372 | 837 | #scheduled service packs and more. Visit www.mysql.com/enterprise for more | ||
3373 | 838 | #information." | ||
3374 | 839 | |||
3375 | 840 | %preun -n Percona-Server-server%{product_suffix} | ||
3376 | 841 | |||
3377 | 842 | # Which '$1' does this refer to? Fedora docs have info: | ||
3378 | 843 | # " ... a count of the number of versions of the package that are installed. | ||
3379 | 844 | # Action Count | ||
3380 | 845 | # Install the first time 1 | ||
3381 | 846 | # Upgrade 2 or higher (depending on the number of versions installed) | ||
3382 | 847 | # Remove last version of package 0 " | ||
3383 | 848 | # | ||
3384 | 849 | # http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html | ||
3385 | 850 | |||
3386 | 851 | if [ $1 = 0 ] ; then | ||
3387 | 852 | # Stop MySQL before uninstalling it | ||
3388 | 853 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
3389 | 854 | %{_sysconfdir}/init.d/mysql stop > /dev/null | ||
3390 | 855 | # Remove autostart of MySQL | ||
3391 | 856 | # use chkconfig on Enterprise Linux and newer SuSE releases | ||
3392 | 857 | if [ -x /sbin/chkconfig ] ; then | ||
3393 | 858 | /sbin/chkconfig --del mysql | ||
3394 | 859 | # For older SuSE Linux versions | ||
3395 | 860 | elif [ -x /sbin/insserv ] ; then | ||
3396 | 861 | /sbin/insserv -r %{_sysconfdir}/init.d/mysql | ||
3397 | 862 | fi | ||
3398 | 863 | fi | ||
3399 | 864 | fi | ||
3400 | 865 | |||
3401 | 866 | # We do not remove the mysql user since it may still own a lot of | ||
3402 | 867 | # database files. | ||
3403 | 868 | |||
3404 | 869 | %triggerpostun -n Percona-Server-server%{product_suffix} --MySQL-server-community | ||
3405 | 870 | |||
3406 | 871 | # Setup: We renamed this package, so any existing "server-community" | ||
3407 | 872 | # package will be removed when this "server" is installed. | ||
3408 | 873 | # Problem: RPM will first run the "pre" and "post" sections of this script, | ||
3409 | 874 | # and only then the "preun" of that old community server. | ||
3410 | 875 | # But this "preun" includes stopping the server and uninstalling the service, | ||
3411 | 876 | # "chkconfig --del mysql" which removes the symlinks to the start script. | ||
3412 | 877 | # Solution: *After* the community server got removed, restart this server | ||
3413 | 878 | # and re-install the service. | ||
3414 | 879 | # | ||
3415 | 880 | # For information about triggers in spec files, see the Fedora docs: | ||
3416 | 881 | # http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html | ||
3417 | 882 | # For all details of this code, see the "pre" and "post" sections. | ||
3418 | 883 | |||
3419 | 884 | mysql_datadir=%{mysqldatadir} | ||
3420 | 885 | NEW_VERSION=%{mysql_version}-%{release} | ||
3421 | 886 | STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST # Note the difference! | ||
3422 | 887 | STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY | ||
3423 | 888 | |||
3424 | 889 | if [ -f $STATUS_FILE ] ; then | ||
3425 | 890 | SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-` | ||
3426 | 891 | else | ||
3427 | 892 | # This should never happen, but let's be prepared | ||
3428 | 893 | SERVER_TO_START='' | ||
3429 | 894 | fi | ||
3430 | 895 | echo "Analyzed: SERVER_TO_START=$SERVER_TO_START" | ||
3431 | 896 | |||
3432 | 897 | if [ -x /sbin/chkconfig ] ; then | ||
3433 | 898 | /sbin/chkconfig --add mysql | ||
3434 | 899 | # use insserv for older SuSE Linux versions | ||
3435 | 900 | elif [ -x /sbin/insserv ] ; then | ||
3436 | 901 | /sbin/insserv %{_sysconfdir}/init.d/mysql | ||
3437 | 902 | fi | ||
3438 | 903 | |||
3439 | 904 | # Was the server running before the upgrade? If so, restart the new one. | ||
3440 | 905 | if [ "$SERVER_TO_START" = "true" ] ; then | ||
3441 | 906 | # Restart in the same way that mysqld will be started normally. | ||
3442 | 907 | if [ -x %{_sysconfdir}/init.d/mysql ] ; then | ||
3443 | 908 | %{_sysconfdir}/init.d/mysql start | ||
3444 | 909 | echo "Giving mysqld 5 seconds to start" | ||
3445 | 910 | sleep 5 | ||
3446 | 911 | fi | ||
3447 | 912 | fi | ||
3448 | 913 | |||
3449 | 914 | echo "Trigger 'postun --community' finished at `date`" >> $STATUS_HISTORY | ||
3450 | 915 | echo >> $STATUS_HISTORY | ||
3451 | 916 | echo "=====" >> $STATUS_HISTORY | ||
3452 | 917 | |||
3453 | 918 | |||
3454 | 919 | # ---------------------------------------------------------------------- | ||
3455 | 920 | # Clean up the BuildRoot after build is done | ||
3456 | 921 | # ---------------------------------------------------------------------- | ||
3457 | 922 | %clean | ||
3458 | 923 | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \ | ||
3459 | 924 | && rm -rf $RPM_BUILD_ROOT; | ||
3460 | 925 | |||
3461 | 926 | ############################################################################## | ||
3462 | 927 | # Files section | ||
3463 | 928 | ############################################################################## | ||
3464 | 929 | |||
3465 | 930 | %files -n Percona-Server-server%{product_suffix} | ||
3466 | 931 | %defattr(-,root,root,0755) | ||
3467 | 932 | |||
3468 | 933 | %if %{defined license_files_server} | ||
3469 | 934 | %doc %{license_files_server} | ||
3470 | 935 | %endif | ||
3471 | 936 | %doc release/Docs/INFO_SRC | ||
3472 | 937 | %doc release/Docs/INFO_BIN | ||
3473 | 938 | %doc release/support-files/my-*.cnf | ||
3474 | 939 | |||
3475 | 940 | %doc %attr(644, root, root) %{_infodir}/mysql.info* | ||
3476 | 941 | |||
3477 | 942 | %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1* | ||
3478 | 943 | %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1* | ||
3479 | 944 | %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1* | ||
3480 | 945 | %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1* | ||
3481 | 946 | %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1* | ||
3482 | 947 | %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1* | ||
3483 | 948 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1* | ||
3484 | 949 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1* | ||
3485 | 950 | %doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1* | ||
3486 | 951 | %doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1* | ||
3487 | 952 | %doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1* | ||
3488 | 953 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1* | ||
3489 | 954 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1* | ||
3490 | 955 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1* | ||
3491 | 956 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1* | ||
3492 | 957 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1* | ||
3493 | 958 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1* | ||
3494 | 959 | %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1* | ||
3495 | 960 | %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1* | ||
3496 | 961 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1* | ||
3497 | 962 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1* | ||
3498 | 963 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1* | ||
3499 | 964 | %doc %attr(644, root, man) %{_mandir}/man1/perror.1* | ||
3500 | 965 | %doc %attr(644, root, man) %{_mandir}/man1/replace.1* | ||
3501 | 966 | %doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1* | ||
3502 | 967 | %doc %attr(644, root, man) %{_mandir}/man1/resolveip.1* | ||
3503 | 968 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1* | ||
3504 | 969 | |||
3505 | 970 | %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf | ||
3506 | 971 | |||
3507 | 972 | %attr(755, root, root) %{_bindir}/innochecksum | ||
3508 | 973 | %attr(755, root, root) %{_bindir}/my_print_defaults | ||
3509 | 974 | %attr(755, root, root) %{_bindir}/myisam_ftdump | ||
3510 | 975 | %attr(755, root, root) %{_bindir}/myisamchk | ||
3511 | 976 | %attr(755, root, root) %{_bindir}/myisamlog | ||
3512 | 977 | %attr(755, root, root) %{_bindir}/myisampack | ||
3513 | 978 | %attr(755, root, root) %{_bindir}/mysql_convert_table_format | ||
3514 | 979 | %attr(755, root, root) %{_bindir}/mysql_fix_extensions | ||
3515 | 980 | %attr(755, root, root) %{_bindir}/mysql_install_db | ||
3516 | 981 | %attr(755, root, root) %{_bindir}/mysql_secure_installation | ||
3517 | 982 | %attr(755, root, root) %{_bindir}/mysql_setpermission | ||
3518 | 983 | %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql | ||
3519 | 984 | %attr(755, root, root) %{_bindir}/mysql_upgrade | ||
3520 | 985 | %attr(755, root, root) %{_bindir}/mysql_plugin | ||
3521 | 986 | %attr(755, root, root) %{_bindir}/mysql_zap | ||
3522 | 987 | %attr(755, root, root) %{_bindir}/mysqlbug | ||
3523 | 988 | %attr(755, root, root) %{_bindir}/mysqld_multi | ||
3524 | 989 | %attr(755, root, root) %{_bindir}/mysqld_safe | ||
3525 | 990 | %attr(755, root, root) %{_bindir}/mysqldumpslow | ||
3526 | 991 | %attr(755, root, root) %{_bindir}/mysqlhotcopy | ||
3527 | 992 | %attr(755, root, root) %{_bindir}/mysqltest | ||
3528 | 993 | %attr(755, root, root) %{_bindir}/perror | ||
3529 | 994 | %attr(755, root, root) %{_bindir}/replace | ||
3530 | 995 | %attr(755, root, root) %{_bindir}/resolve_stack_dump | ||
3531 | 996 | %attr(755, root, root) %{_bindir}/resolveip | ||
3532 | 997 | |||
3533 | 998 | %attr(755, root, root) %{_sbindir}/mysqld | ||
3534 | 999 | %attr(755, root, root) %{_sbindir}/mysqld-debug | ||
3535 | 1000 | %attr(755, root, root) %{_sbindir}/rcmysql | ||
3536 | 1001 | %attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini | ||
3537 | 1002 | %attr(755, root, root) %{_libdir}/mysql/plugin/adt_null.so | ||
3538 | 1003 | %attr(755, root, root) %{_libdir}/mysql/plugin/libdaemon_example.so | ||
3539 | 1004 | %attr(755, root, root) %{_libdir}/mysql/plugin/mypluglib.so | ||
3540 | 1005 | %attr(755, root, root) %{_libdir}/mysql/plugin/semisync_master.so | ||
3541 | 1006 | %attr(755, root, root) %{_libdir}/mysql/plugin/semisync_slave.so | ||
3542 | 1007 | %attr(755, root, root) %{_libdir}/mysql/plugin/auth.so | ||
3543 | 1008 | %attr(755, root, root) %{_libdir}/mysql/plugin/auth_socket.so | ||
3544 | 1009 | %attr(755, root, root) %{_libdir}/mysql/plugin/auth_test_plugin.so | ||
3545 | 1010 | %attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_client.so | ||
3546 | 1011 | %attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_interface.so | ||
3547 | 1012 | %attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_server.so | ||
3548 | 1013 | %attr(755, root, root) %{_libdir}/mysql/plugin/validate_password.so | ||
3549 | 1014 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/adt_null.so | ||
3550 | 1015 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/libdaemon_example.so | ||
3551 | 1016 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/mypluglib.so | ||
3552 | 1017 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_master.so | ||
3553 | 1018 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_slave.so | ||
3554 | 1019 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth.so | ||
3555 | 1020 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_socket.so | ||
3556 | 1021 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_test_plugin.so | ||
3557 | 1022 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_client.so | ||
3558 | 1023 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_interface.so | ||
3559 | 1024 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_server.so | ||
3560 | 1025 | %attr(755, root, root) %{_libdir}/mysql/plugin/debug/validate_password.so | ||
3561 | 1026 | # UDF files | ||
3562 | 1027 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so | ||
3563 | 1028 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so.0 | ||
3564 | 1029 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so.0.0.0 | ||
3565 | 1030 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so | ||
3566 | 1031 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so.0 | ||
3567 | 1032 | %attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so.0.0.0 | ||
3568 | 1033 | %attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so | ||
3569 | 1034 | %attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so.0 | ||
3570 | 1035 | %attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so.0.0.0 | ||
3571 | 1036 | |||
3572 | 1037 | |||
3573 | 1038 | |||
3574 | 1039 | |||
3575 | 1040 | %if %{WITH_TCMALLOC} | ||
3576 | 1041 | %attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target} | ||
3577 | 1042 | %endif | ||
3578 | 1043 | |||
3579 | 1044 | %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql | ||
3580 | 1045 | %attr(755, root, root) %{_sysconfdir}/init.d/mysql | ||
3581 | 1046 | |||
3582 | 1047 | %attr(755, root, root) %{_datadir}/mysql/ | ||
3583 | 1048 | |||
3584 | 1049 | # ---------------------------------------------------------------------------- | ||
3585 | 1050 | %files -n Percona-Server-client%{product_suffix} | ||
3586 | 1051 | |||
3587 | 1052 | %defattr(-, root, root, 0755) | ||
3588 | 1053 | %attr(755, root, root) %{_bindir}/msql2mysql | ||
3589 | 1054 | %attr(755, root, root) %{_bindir}/mysql | ||
3590 | 1055 | %attr(755, root, root) %{_bindir}/mysql_find_rows | ||
3591 | 1056 | %attr(755, root, root) %{_bindir}/mysql_waitpid | ||
3592 | 1057 | %attr(755, root, root) %{_bindir}/mysqlaccess | ||
3593 | 1058 | # XXX: This should be moved to %{_sysconfdir} | ||
3594 | 1059 | %attr(644, root, root) %{_bindir}/mysqlaccess.conf | ||
3595 | 1060 | %attr(755, root, root) %{_bindir}/mysqladmin | ||
3596 | 1061 | %attr(755, root, root) %{_bindir}/mysqlbinlog | ||
3597 | 1062 | %attr(755, root, root) %{_bindir}/mysqlcheck | ||
3598 | 1063 | %attr(755, root, root) %{_bindir}/mysqldump | ||
3599 | 1064 | %attr(755, root, root) %{_bindir}/mysqlimport | ||
3600 | 1065 | %attr(755, root, root) %{_bindir}/mysqlshow | ||
3601 | 1066 | %attr(755, root, root) %{_bindir}/mysqlslap | ||
3602 | 1067 | %attr(755, root, root) %{_bindir}/mysql_config_editor | ||
3603 | 1068 | |||
3604 | 1069 | %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1* | ||
3605 | 1070 | %doc %attr(644, root, man) %{_mandir}/man1/mysql.1* | ||
3606 | 1071 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1* | ||
3607 | 1072 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1* | ||
3608 | 1073 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1* | ||
3609 | 1074 | %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1* | ||
3610 | 1075 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1* | ||
3611 | 1076 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1* | ||
3612 | 1077 | %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1* | ||
3613 | 1078 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1* | ||
3614 | 1079 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1* | ||
3615 | 1080 | %doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1* | ||
3616 | 1081 | |||
3617 | 1082 | # ---------------------------------------------------------------------------- | ||
3618 | 1083 | %files -n Percona-Server-devel%{product_suffix} -f optional-files-devel | ||
3619 | 1084 | %defattr(-, root, root, 0755) | ||
3620 | 1085 | %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1* | ||
3621 | 1086 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1* | ||
3622 | 1087 | %attr(755, root, root) %{_bindir}/mysql_config | ||
3623 | 1088 | %dir %attr(755, root, root) %{_includedir}/mysql | ||
3624 | 1089 | %dir %attr(755, root, root) %{_libdir}/mysql | ||
3625 | 1090 | %{_includedir}/mysql/* | ||
3626 | 1091 | %{_datadir}/aclocal/mysql.m4 | ||
3627 | 1092 | %{_libdir}/mysql/libmysqlclient.a | ||
3628 | 1093 | %{_libdir}/mysql/libmysqlclient_r.a | ||
3629 | 1094 | %{_libdir}/mysql/libmysqlservices.a | ||
3630 | 1095 | |||
3631 | 1096 | # ---------------------------------------------------------------------------- | ||
3632 | 1097 | %files -n Percona-Server-shared%{product_suffix} | ||
3633 | 1098 | %defattr(-, root, root, 0755) | ||
3634 | 1099 | # Shared libraries (omit for architectures that don't support them) | ||
3635 | 1100 | %{_libdir}/libmysql*.so* | ||
3636 | 1101 | # Maatkit UDF libs | ||
3637 | 1102 | %{_libdir}/mysql/plugin/libfnv1a_udf.a | ||
3638 | 1103 | %{_libdir}/mysql/plugin/libfnv1a_udf.la | ||
3639 | 1104 | %{_libdir}/mysql/plugin/libfnv_udf.a | ||
3640 | 1105 | %{_libdir}/mysql/plugin/libfnv_udf.la | ||
3641 | 1106 | %{_libdir}/mysql/plugin/libmurmur_udf.a | ||
3642 | 1107 | %{_libdir}/mysql/plugin/libmurmur_udf.la | ||
3643 | 1108 | |||
3644 | 1109 | %post -n Percona-Server-shared%{product_suffix} | ||
3645 | 1110 | /sbin/ldconfig | ||
3646 | 1111 | |||
3647 | 1112 | %postun -n Percona-Server-shared%{product_suffix} | ||
3648 | 1113 | /sbin/ldconfig | ||
3649 | 1114 | |||
3650 | 1115 | # ---------------------------------------------------------------------------- | ||
3651 | 1116 | %files -n Percona-Server-test%{product_suffix} | ||
3652 | 1117 | %defattr(-, root, root, 0755) | ||
3653 | 1118 | %attr(-, root, root) %{_datadir}/mysql-test | ||
3654 | 1119 | %attr(755, root, root) %{_bindir}/mysql_client_test | ||
3655 | 1120 | #%attr(755, root, root) %{_bindir}/mysql_client_test_embedded | ||
3656 | 1121 | #%attr(755, root, root) %{_bindir}/mysqltest_embedded | ||
3657 | 1122 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1* | ||
3658 | 1123 | %doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1* | ||
3659 | 1124 | %doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1* | ||
3660 | 1125 | %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1* | ||
3661 | 1126 | %doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1* | ||
3662 | 1127 | |||
3663 | 1128 | ############################################################################## | ||
3664 | 1129 | # The spec file changelog only includes changes made to the spec file | ||
3665 | 1130 | # itself - note that they must be ordered by date (important when | ||
3666 | 1131 | # merging BK trees) | ||
3667 | 1132 | ############################################################################## | ||
3668 | 1133 | %changelog | ||
3669 | 1134 | * Thu Feb 10 2011 Ignacio Nin <ignacio.nin@percona.com> | ||
3670 | 1135 | |||
3671 | 1136 | - Removed lines which prevented -debuginfo packages from being built. | ||
3672 | 1137 | |||
3673 | 1138 | * Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com> | ||
3674 | 1139 | |||
3675 | 1140 | - EXCEPTIONS-CLIENT has been deleted, remove it from here too | ||
3676 | 1141 | - Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing | ||
3677 | 1142 | a '-j' argument to make. | ||
3678 | 1143 | |||
3679 | 1144 | * Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com> | ||
3680 | 1145 | |||
3681 | 1146 | - Added test authentication (WL#1054) plugin binaries | ||
3682 | 1147 | |||
3683 | 1148 | * Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com> | ||
3684 | 1149 | |||
3685 | 1150 | - Added example external authentication (WL#1054) plugin binaries | ||
3686 | 1151 | |||
3687 | 1152 | * Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com> | ||
3688 | 1153 | |||
3689 | 1154 | - With a recent spec file cleanup, names have changed: A "-community" part was dropped. | ||
3690 | 1155 | Reflect that in the "Obsoletes" specifications. | ||
3691 | 1156 | - Add a "triggerpostun" to handle the uninstall of the "-community" server RPM. | ||
3692 | 1157 | - This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade". | ||
3693 | 1158 | |||
3694 | 1159 | * Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3695 | 1160 | |||
3696 | 1161 | - Change the behaviour on installation and upgrade: | ||
3697 | 1162 | On installation, do not autostart the server. | ||
3698 | 1163 | *Iff* the server was stopped before the upgrade is started, this is taken as a | ||
3699 | 1164 | sign the administrator is handling that manually, and so the new server will | ||
3700 | 1165 | not be started automatically at the end of the upgrade. | ||
3701 | 1166 | The start/stop scripts will still be installed, so the server will be started | ||
3702 | 1167 | on the next machine boot. | ||
3703 | 1168 | This is the 5.5 version of fixing bug#27072 (RPM autostarting the server). | ||
3704 | 1169 | |||
3705 | 1170 | * Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com> | ||
3706 | 1171 | |||
3707 | 1172 | - Implement SELinux checks from distribution-specific spec file. | ||
3708 | 1173 | |||
3709 | 1174 | * Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com> | ||
3710 | 1175 | |||
3711 | 1176 | - Large number of changes to build using CMake | ||
3712 | 1177 | - Introduce distribution-specific RPMs | ||
3713 | 1178 | - Drop debuginfo, build all binaries with debug/symbols | ||
3714 | 1179 | - Remove __os_install_post, use native macro | ||
3715 | 1180 | - Remove _unpackaged_files_terminate_build, make it an error to have | ||
3716 | 1181 | unpackaged files | ||
3717 | 1182 | - Remove cluster RPMs | ||
3718 | 1183 | |||
3719 | 1184 | * Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3720 | 1185 | |||
3721 | 1186 | - Add "--with-perfschema" to the configure options. | ||
3722 | 1187 | |||
3723 | 1188 | * Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3724 | 1189 | |||
3725 | 1190 | - User "usr/lib*" to allow for both "usr/lib" and "usr/lib64", | ||
3726 | 1191 | mask "rmdir" return code 1. | ||
3727 | 1192 | - Remove "ha_example.*" files from the list, they aren't built. | ||
3728 | 1193 | |||
3729 | 1194 | * Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3730 | 1195 | |||
3731 | 1196 | - Fix a wrong path name in handling the debug plugins. | ||
3732 | 1197 | |||
3733 | 1198 | * Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3734 | 1199 | |||
3735 | 1200 | - Take the result of the debug plugin build and put it into the optimized tree, | ||
3736 | 1201 | so that it becomes part of the final installation; | ||
3737 | 1202 | include the files in the packlist. Part of the fixes for bug#49022. | ||
3738 | 1203 | |||
3739 | 1204 | * Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3740 | 1205 | |||
3741 | 1206 | - Set "Oracle and/or its affiliates" as the vendor and copyright owner, | ||
3742 | 1207 | accept upgrading from packages showing MySQL or Sun as vendor. | ||
3743 | 1208 | |||
3744 | 1209 | * Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3745 | 1210 | |||
3746 | 1211 | - Formatting changes: | ||
3747 | 1212 | Have a consistent structure of separator lines and of indentation | ||
3748 | 1213 | (8 leading blanks => tab). | ||
3749 | 1214 | - Introduce the variable "src_dir". | ||
3750 | 1215 | - Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence | ||
3751 | 1216 | over "CC" ("CXX"). | ||
3752 | 1217 | - Drop the old "with_static" argument analysis, this is not supported | ||
3753 | 1218 | in 5.1 since ages. | ||
3754 | 1219 | - Introduce variables to control the handlers individually, as well | ||
3755 | 1220 | as other options. | ||
3756 | 1221 | - Use the new "--with-plugin" notation for the table handlers. | ||
3757 | 1222 | - Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql" | ||
3758 | 1223 | was done back in 2002 already. | ||
3759 | 1224 | - Make "--with-zlib-dir=bundled" the default, add an option to disable it. | ||
3760 | 1225 | - Add missing manual pages to the file list. | ||
3761 | 1226 | - Improve the runtime check for "libgcc.a", protect it against being tried | ||
3762 | 1227 | with the Intel compiler "icc". | ||
3763 | 1228 | |||
3764 | 1229 | * Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3765 | 1230 | |||
3766 | 1231 | - Change RPM file naming: | ||
3767 | 1232 | - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc". | ||
3768 | 1233 | - Release counts from 1, not 0. | ||
3769 | 1234 | |||
3770 | 1235 | * Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3771 | 1236 | |||
3772 | 1237 | - The "semisync" plugin file name has lost its introductory "lib", | ||
3773 | 1238 | adapt the file lists for the subpackages. | ||
3774 | 1239 | This is a part missing from the fix for bug#48351. | ||
3775 | 1240 | - Remove the "fix_privilege_tables" manual, it does not exist in 5.5 | ||
3776 | 1241 | (and likely, the whole script will go, too). | ||
3777 | 1242 | |||
3778 | 1243 | * Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3779 | 1244 | |||
3780 | 1245 | - Fix some problems with the directives around "tcmalloc" (experimental), | ||
3781 | 1246 | remove erroneous traces of the InnoDB plugin (that is 5.1 only). | ||
3782 | 1247 | |||
3783 | 1248 | * Fri Oct 06 2009 Magnus Blaudd <mvensson@mysql.com> | ||
3784 | 1249 | |||
3785 | 1250 | - Removed mysql_fix_privilege_tables | ||
3786 | 1251 | |||
3787 | 1252 | * Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com> | ||
3788 | 1253 | |||
3789 | 1254 | - "mysqlmanager" got removed from version 5.4, all references deleted. | ||
3790 | 1255 | |||
3791 | 1256 | * Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3792 | 1257 | |||
3793 | 1258 | - Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin. | ||
3794 | 1259 | |||
3795 | 1260 | * Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com> | ||
3796 | 1261 | |||
3797 | 1262 | - This version does not contain the "Instance manager", "mysqlmanager": | ||
3798 | 1263 | Remove it from the spec file so that packaging succeeds. | ||
3799 | 1264 | |||
3800 | 1265 | * Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com> | ||
3801 | 1266 | |||
3802 | 1267 | - Add conditionals for bundled zlib and innodb plugin | ||
3803 | 1268 | |||
3804 | 1269 | * Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com> | ||
3805 | 1270 | |||
3806 | 1271 | - Install plugin libraries in appropriate packages. | ||
3807 | 1272 | - Disable libdaemon_example and ftexample plugins. | ||
3808 | 1273 | |||
3809 | 1274 | * Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com> | ||
3810 | 1275 | |||
3811 | 1276 | - Update variable used for mysql-test suite location to match source. | ||
3812 | 1277 | |||
3813 | 1278 | * Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com> | ||
3814 | 1279 | |||
3815 | 1280 | - Correct yesterday's fix, so that it also works for the last flag, | ||
3816 | 1281 | and fix a wrong quoting: un-quoted quote marks must not be escaped. | ||
3817 | 1282 | |||
3818 | 1283 | * Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com> | ||
3819 | 1284 | |||
3820 | 1285 | - Removed "mysql_upgrade_shell" | ||
3821 | 1286 | - Removed some copy/paste between debug and normal build | ||
3822 | 1287 | |||
3823 | 1288 | * Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com> | ||
3824 | 1289 | |||
3825 | 1290 | - Modify CFLAGS and CXXFLAGS such that a debug build is not optimized. | ||
3826 | 1291 | This should cover both gcc and icc flags. Fixes bug#40546. | ||
3827 | 1292 | |||
3828 | 1293 | * Fri Aug 29 2008 Kent Boortz <kent@mysql.com> | ||
3829 | 1294 | |||
3830 | 1295 | - Removed the "Federated" storage engine option, and enabled in all | ||
3831 | 1296 | |||
3832 | 1297 | * Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com> | ||
3833 | 1298 | |||
3834 | 1299 | - Get rid of the "warning: Installed (but unpackaged) file(s) found:" | ||
3835 | 1300 | Some generated files aren't needed in RPMs: | ||
3836 | 1301 | - the "sql-bench/" subdirectory | ||
3837 | 1302 | Some files were missing: | ||
3838 | 1303 | - /usr/share/aclocal/mysql.m4 ("devel" subpackage) | ||
3839 | 1304 | - Manual "mysqlbug" ("server" subpackage) | ||
3840 | 1305 | - Program "innochecksum" and its manual ("server" subpackage) | ||
3841 | 1306 | - Manual "mysql_find_rows" ("client" subpackage) | ||
3842 | 1307 | - Script "mysql_upgrade_shell" ("client" subpackage) | ||
3843 | 1308 | - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage) | ||
3844 | 1309 | - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage) | ||
3845 | 1310 | |||
3846 | 1311 | * Mon Mar 31 2008 Kent Boortz <kent@mysql.com> | ||
3847 | 1312 | |||
3848 | 1313 | - Made the "Federated" storage engine an option | ||
3849 | 1314 | - Made the "Cluster" storage engine and sub packages an option | ||
3850 | 1315 | |||
3851 | 1316 | * Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com> | ||
3852 | 1317 | |||
3853 | 1318 | - Add the man pages for "ndbd" and "ndb_mgmd". | ||
3854 | 1319 | |||
3855 | 1320 | * Mon Feb 18 2008 Timothy Smith <tim@mysql.com> | ||
3856 | 1321 | |||
3857 | 1322 | - Require a manual upgrade if the alread-installed mysql-server is | ||
3858 | 1323 | from another vendor, or is of a different major version. | ||
3859 | 1324 | |||
3860 | 1325 | * Wed May 02 2007 Joerg Bruehe <joerg@mysql.com> | ||
3861 | 1326 | |||
3862 | 1327 | - "ndb_size.tmpl" is not needed any more, | ||
3863 | 1328 | "man1/mysql_install_db.1" lacked the trailing '*'. | ||
3864 | 1329 | |||
3865 | 1330 | * Sat Apr 07 2007 Kent Boortz <kent@mysql.com> | ||
3866 | 1331 | |||
3867 | 1332 | - Removed man page for "mysql_create_system_tables" | ||
3868 | 1333 | |||
3869 | 1334 | * Wed Mar 21 2007 Daniel Fischer <df@mysql.com> | ||
3870 | 1335 | |||
3871 | 1336 | - Add debug server. | ||
3872 | 1337 | |||
3873 | 1338 | * Mon Mar 19 2007 Daniel Fischer <df@mysql.com> | ||
3874 | 1339 | |||
3875 | 1340 | - Remove Max RPMs; the server RPMs contain a mysqld compiled with all | ||
3876 | 1341 | features that previously only were built into Max. | ||
3877 | 1342 | |||
3878 | 1343 | * Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com> | ||
3879 | 1344 | |||
3880 | 1345 | - Add several man pages for NDB which are now created. | ||
3881 | 1346 | |||
3882 | 1347 | * Fri Jan 05 2007 Kent Boortz <kent@mysql.com> | ||
3883 | 1348 | |||
3884 | 1349 | - Put back "libmygcc.a", found no real reason it was removed. | ||
3885 | 1350 | |||
3886 | 1351 | - Add CFLAGS to gcc call with --print-libgcc-file, to make sure the | ||
3887 | 1352 | correct "libgcc.a" path is returned for the 32/64 bit architecture. | ||
3888 | 1353 | |||
3889 | 1354 | * Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com> | ||
3890 | 1355 | |||
3891 | 1356 | - Fix the move of "mysqlmanager" to section 8: Directory name was wrong. | ||
3892 | 1357 | |||
3893 | 1358 | * Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com> | ||
3894 | 1359 | |||
3895 | 1360 | - Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql" | ||
3896 | 1361 | in the server RPM. | ||
3897 | 1362 | - The "mysqlmanager" man page got moved from section 1 to 8. | ||
3898 | 1363 | |||
3899 | 1364 | * Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com> | ||
3900 | 1365 | |||
3901 | 1366 | - Call "make install" using "benchdir_root=%{_datadir}", | ||
3902 | 1367 | because that is affecting the regression test suite as well. | ||
3903 | 1368 | |||
3904 | 1369 | * Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com> | ||
3905 | 1370 | |||
3906 | 1371 | - Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB) | ||
3907 | 1372 | replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading | ||
3908 | 1373 | (bug#22081). | ||
3909 | 1374 | |||
3910 | 1375 | * Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com> | ||
3911 | 1376 | |||
3912 | 1377 | - Add "--with-partition" to all server builds. | ||
3913 | 1378 | |||
3914 | 1379 | - Use "--report-features" in one test run per server build. | ||
3915 | 1380 | |||
3916 | 1381 | * Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com> | ||
3917 | 1382 | |||
3918 | 1383 | - The "max" server is removed from packages, effective from 5.1.12-beta. | ||
3919 | 1384 | Delete all steps to build, package, or install it. | ||
3920 | 1385 | |||
3921 | 1386 | * Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com> | ||
3922 | 1387 | |||
3923 | 1388 | - Fix a typing error in the "make" target for the Perl script to run the tests. | ||
3924 | 1389 | |||
3925 | 1390 | * Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com> | ||
3926 | 1391 | |||
3927 | 1392 | - Use the Perl script to run the tests, because it will automatically check | ||
3928 | 1393 | whether the server is configured with SSL. | ||
3929 | 1394 | |||
3930 | 1395 | * Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com> | ||
3931 | 1396 | |||
3932 | 1397 | - move "mysqldumpslow" from the client RPM to the server RPM (bug#20216) | ||
3933 | 1398 | |||
3934 | 1399 | - Revert all previous attempts to call "mysql_upgrade" during RPM upgrade, | ||
3935 | 1400 | there are some more aspects which need to be solved before this is possible. | ||
3936 | 1401 | For now, just ensure the binary "mysql_upgrade" is delivered and installed. | ||
3937 | 1402 | |||
3938 | 1403 | * Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com> | ||
3939 | 1404 | |||
3940 | 1405 | - Close a gap of the previous version by explicitly using | ||
3941 | 1406 | a newly created temporary directory for the socket to be used | ||
3942 | 1407 | in the "mysql_upgrade" operation, overriding any local setting. | ||
3943 | 1408 | |||
3944 | 1409 | * Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com> | ||
3945 | 1410 | |||
3946 | 1411 | - To run "mysql_upgrade", we need a running server; | ||
3947 | 1412 | start it in isolation and skip password checks. | ||
3948 | 1413 | |||
3949 | 1414 | * Sat May 20 2006 Kent Boortz <kent@mysql.com> | ||
3950 | 1415 | |||
3951 | 1416 | - Always compile for PIC, position independent code. | ||
3952 | 1417 | |||
3953 | 1418 | * Wed May 10 2006 Kent Boortz <kent@mysql.com> | ||
3954 | 1419 | |||
3955 | 1420 | - Use character set "all" when compiling with Cluster, to make Cluster | ||
3956 | 1421 | nodes independent on the character set directory, and the problem | ||
3957 | 1422 | that two RPM sub packages both wants to install this directory. | ||
3958 | 1423 | |||
3959 | 1424 | * Mon May 01 2006 Kent Boortz <kent@mysql.com> | ||
3960 | 1425 | |||
3961 | 1426 | - Use "./libtool --mode=execute" instead of searching for the | ||
3962 | 1427 | executable in current directory and ".libs". | ||
3963 | 1428 | |||
3964 | 1429 | * Fri Apr 28 2006 Kent Boortz <kent@mysql.com> | ||
3965 | 1430 | |||
3966 | 1431 | - Install and run "mysql_upgrade" | ||
3967 | 1432 | |||
3968 | 1433 | * Wed Apr 12 2006 Jim Winstead <jimw@mysql.com> | ||
3969 | 1434 | |||
3970 | 1435 | - Remove sql-bench, and MySQL-bench RPM (will be built as an independent | ||
3971 | 1436 | project from the mysql-bench repository) | ||
3972 | 1437 | |||
3973 | 1438 | * Tue Apr 11 2006 Jim Winstead <jimw@mysql.com> | ||
3974 | 1439 | |||
3975 | 1440 | - Remove old mysqltestmanager and related programs | ||
3976 | 1441 | * Sat Apr 01 2006 Kent Boortz <kent@mysql.com> | ||
3977 | 1442 | |||
3978 | 1443 | - Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS | ||
3979 | 1444 | |||
3980 | 1445 | * Wed Mar 07 2006 Kent Boortz <kent@mysql.com> | ||
3981 | 1446 | |||
3982 | 1447 | - Changed product name from "Community Edition" to "Community Server" | ||
3983 | 1448 | |||
3984 | 1449 | * Mon Mar 06 2006 Kent Boortz <kent@mysql.com> | ||
3985 | 1450 | |||
3986 | 1451 | - Fast mutexes is now disabled by default, but should be | ||
3987 | 1452 | used in Linux builds. | ||
3988 | 1453 | |||
3989 | 1454 | * Mon Feb 20 2006 Kent Boortz <kent@mysql.com> | ||
3990 | 1455 | |||
3991 | 1456 | - Reintroduced a max build | ||
3992 | 1457 | - Limited testing of 'debug' and 'max' servers | ||
3993 | 1458 | - Berkeley DB only in 'max' | ||
3994 | 1459 | |||
3995 | 1460 | * Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com> | ||
3996 | 1461 | |||
3997 | 1462 | - Use "-i" on "make test-force"; | ||
3998 | 1463 | this is essential for later evaluation of this log file. | ||
3999 | 1464 | |||
4000 | 1465 | * Thu Feb 09 2006 Kent Boortz <kent@mysql.com> | ||
4001 | 1466 | |||
4002 | 1467 | - Pass '-static' to libtool, link static with our own libraries, dynamic | ||
4003 | 1468 | with system libraries. Link with the bundled zlib. | ||
4004 | 1469 | |||
4005 | 1470 | * Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com> | ||
4006 | 1471 | |||
4007 | 1472 | - Modified RPM spec to match new 5.1 debug+max combined community packaging. | ||
4008 | 1473 | |||
4009 | 1474 | * Sun Dec 18 2005 Kent Boortz <kent@mysql.com> | ||
4010 | 1475 | |||
4011 | 1476 | - Added "client/mysqlslap" | ||
4012 | 1477 | |||
4013 | 1478 | * Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com> | ||
4014 | 1479 | |||
4015 | 1480 | - Added zlib to the list of (static) libraries installed | ||
4016 | 1481 | - Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld) | ||
4017 | 1482 | - Compile MySQL with bundled zlib | ||
4018 | 1483 | - Fixed %packager name to "MySQL Production Engineering Team" | ||
4019 | 1484 | |||
4020 | 1485 | * Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com> | ||
4021 | 1486 | |||
4022 | 1487 | - Avoid using the "bundled" zlib on "shared" builds: | ||
4023 | 1488 | As it is not installed (on the build system), this gives dependency | ||
4024 | 1489 | problems with "libtool" causing the build to fail. | ||
4025 | 1490 | (Change was done on Nov 11, but left uncommented.) | ||
4026 | 1491 | |||
4027 | 1492 | * Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com> | ||
4028 | 1493 | |||
4029 | 1494 | - Extend the file existence check for "init.d/mysql" on un-install | ||
4030 | 1495 | to also guard the call to "insserv"/"chkconfig". | ||
4031 | 1496 | |||
4032 | 1497 | * Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com> | ||
4033 | 1498 | |||
4034 | 1499 | - added more man pages | ||
4035 | 1500 | |||
4036 | 1501 | * Wed Oct 19 2005 Kent Boortz <kent@mysql.com> | ||
4037 | 1502 | |||
4038 | 1503 | - Made yaSSL support an option (off by default) | ||
4039 | 1504 | |||
4040 | 1505 | * Wed Oct 19 2005 Kent Boortz <kent@mysql.com> | ||
4041 | 1506 | |||
4042 | 1507 | - Enabled yaSSL support | ||
4043 | 1508 | |||
4044 | 1509 | * Sat Oct 15 2005 Kent Boortz <kent@mysql.com> | ||
4045 | 1510 | |||
4046 | 1511 | - Give mode arguments the same way in all places | ||
4047 | 1512 | - Moved copy of mysqld.a to "standard" build, but | ||
4048 | 1513 | disabled it as we don't do embedded yet in 5.0 | ||
4049 | 1514 | |||
4050 | 1515 | * Fri Oct 14 2005 Kent Boortz <kent@mysql.com> | ||
4051 | 1516 | |||
4052 | 1517 | - For 5.x, always compile with --with-big-tables | ||
4053 | 1518 | - Copy the config.log file to location outside | ||
4054 | 1519 | the build tree | ||
4055 | 1520 | |||
4056 | 1521 | * Fri Oct 14 2005 Kent Boortz <kent@mysql.com> | ||
4057 | 1522 | |||
4058 | 1523 | - Removed unneeded/obsolete configure options | ||
4059 | 1524 | - Added archive engine to standard server | ||
4060 | 1525 | - Removed the embedded server from experimental server | ||
4061 | 1526 | - Changed suffix "-Max" => "-max" | ||
4062 | 1527 | - Changed comment string "Max" => "Experimental" | ||
4063 | 1528 | |||
4064 | 1529 | * Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
4065 | 1530 | |||
4066 | 1531 | - added a usermod call to assign a potential existing mysql user to the | ||
4067 | 1532 | correct user group (BUG#12823) | ||
4068 | 1533 | - Save the perror binary built during Max build so it supports the NDB | ||
4069 | 1534 | error codes (BUG#13740) | ||
4070 | 1535 | - added a separate macro "mysqld_group" to be able to define the | ||
4071 | 1536 | user group of the mysql user seperately, if desired. | ||
4072 | 1537 | |||
4073 | 1538 | * Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com> | ||
4074 | 1539 | |||
4075 | 1540 | - fixed the removing of the RPM_BUILD_ROOT in the %clean section (the | ||
4076 | 1541 | $RBR variable did not get expanded, thus leaving old build roots behind) | ||
4077 | 1542 | |||
4078 | 1543 | * Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com> | ||
4079 | 1544 | |||
4080 | 1545 | - Fixed the creation of the mysql user group account in the postinstall | ||
4081 | 1546 | section (BUG 12348) | ||
4082 | 1547 | - Fixed enabling the Archive storage engine in the Max binary | ||
4083 | 1548 | |||
4084 | 1549 | * Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com> | ||
4085 | 1550 | |||
4086 | 1551 | - Fixed the Requires: tag for the server RPM (BUG 12233) | ||
4087 | 1552 | |||
4088 | 1553 | * Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com> | ||
4089 | 1554 | |||
4090 | 1555 | - create a "mysql" user group and assign the mysql user account to that group | ||
4091 | 1556 | in the server postinstall section. (BUG 10984) | ||
4092 | 1557 | |||
4093 | 1558 | * Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com> | ||
4094 | 1559 | |||
4095 | 1560 | - Do not build statically on i386 by default, only when adding either "--with | ||
4096 | 1561 | static" or "--define '_with_static 1'" to the RPM build options. Static | ||
4097 | 1562 | linking really only makes sense when linking against the specially patched | ||
4098 | 1563 | glibc 2.2.5. | ||
4099 | 1564 | |||
4100 | 1565 | * Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com> | ||
4101 | 1566 | |||
4102 | 1567 | - added mysql_client_test to the "bench" subpackage (BUG 10676) | ||
4103 | 1568 | - added the libndbclient static and shared libraries (BUG 10676) | ||
4104 | 1569 | |||
4105 | 1570 | * Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com> | ||
4106 | 1571 | |||
4107 | 1572 | - use "mysqldatadir" variable instead of hard-coding the path multiple times | ||
4108 | 1573 | - use the "mysqld_user" variable on all occasions a user name is referenced | ||
4109 | 1574 | - removed (incomplete) Brazilian translations | ||
4110 | 1575 | - removed redundant release tags from the subpackage descriptions | ||
4111 | 1576 | |||
4112 | 1577 | * Wed May 25 2005 Joerg Bruehe <joerg@mysql.com> | ||
4113 | 1578 | |||
4114 | 1579 | - Added a "make clean" between separate calls to "BuildMySQL". | ||
4115 | 1580 | |||
4116 | 1581 | * Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com> | ||
4117 | 1582 | |||
4118 | 1583 | - Removed the mysql_tableinfo script made obsolete by the information schema | ||
4119 | 1584 | |||
4120 | 1585 | * Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com> | ||
4121 | 1586 | |||
4122 | 1587 | - Enabled the "blackhole" storage engine for the Max RPM | ||
4123 | 1588 | |||
4124 | 1589 | * Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
4125 | 1590 | |||
4126 | 1591 | - removed the MySQL manual files (html/ps/texi) - they have been removed | ||
4127 | 1592 | from the MySQL sources and are now available seperately. | ||
4128 | 1593 | |||
4129 | 1594 | * Mon Apr 4 2005 Petr Chardin <petr@mysql.com> | ||
4130 | 1595 | |||
4131 | 1596 | - old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into | ||
4132 | 1597 | mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively | ||
4133 | 1598 | |||
4134 | 1599 | * Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com> | ||
4135 | 1600 | |||
4136 | 1601 | - Disabled RAID in the Max binaries once and for all (it has finally been | ||
4137 | 1602 | removed from the source tree) | ||
4138 | 1603 | |||
4139 | 1604 | * Sun Feb 20 2005 Petr Chardin <petr@mysql.com> | ||
4140 | 1605 | |||
4141 | 1606 | - Install MySQL Instance Manager together with mysqld, touch mysqlmanager | ||
4142 | 1607 | password file | ||
4143 | 1608 | |||
4144 | 1609 | * Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com> | ||
4145 | 1610 | |||
4146 | 1611 | - Fixed the compilation comments and moved them into the separate build sections | ||
4147 | 1612 | for Max and Standard | ||
4148 | 1613 | |||
4149 | 1614 | * Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com> | ||
4150 | 1615 | |||
4151 | 1616 | - enabled the "Ndbcluster" storage engine for the max binary | ||
4152 | 1617 | - added extra make install in ndb subdir after Max build to get ndb binaries | ||
4153 | 1618 | - added packages for ndbcluster storage engine | ||
4154 | 1619 | |||
4155 | 1620 | * Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com> | ||
4156 | 1621 | |||
4157 | 1622 | - replaced obsoleted "BuildPrereq" with "BuildRequires" instead | ||
4158 | 1623 | |||
4159 | 1624 | * Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com> | ||
4160 | 1625 | |||
4161 | 1626 | - enabled the "Federated" storage engine for the max binary | ||
4162 | 1627 | |||
4163 | 1628 | * Tue Jan 04 2005 Petr Chardin <petr@mysql.com> | ||
4164 | 1629 | |||
4165 | 1630 | - ISAM and merge storage engines were purged. As well as appropriate | ||
4166 | 1631 | tools and manpages (isamchk and isamlog) | ||
4167 | 1632 | |||
4168 | 1633 | * Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com> | ||
4169 | 1634 | |||
4170 | 1635 | - enabled the "Archive" storage engine for the max binary | ||
4171 | 1636 | - enabled the "CSV" storage engine for the max binary | ||
4172 | 1637 | - enabled the "Example" storage engine for the max binary | ||
4173 | 1638 | |||
4174 | 1639 | * Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com> | ||
4175 | 1640 | |||
4176 | 1641 | - MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860) | ||
4177 | 1642 | |||
4178 | 1643 | * Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com> | ||
4179 | 1644 | |||
4180 | 1645 | - do not link statically on IA64/AMD64 as these systems do not have | ||
4181 | 1646 | a patched glibc installed | ||
4182 | 1647 | |||
4183 | 1648 | * Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com> | ||
4184 | 1649 | |||
4185 | 1650 | - Added libmygcc.a to the devel subpackage (required to link applications | ||
4186 | 1651 | against the the embedded server libmysqld.a) (BUG 4921) | ||
4187 | 1652 | |||
4188 | 1653 | * Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com> | ||
4189 | 1654 | |||
4190 | 1655 | - Added EXCEPTIONS-CLIENT to the "devel" package | ||
4191 | 1656 | |||
4192 | 1657 | * Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com> | ||
4193 | 1658 | |||
4194 | 1659 | - disabled OpenSSL in the Max binaries again (the RPM packages were the | ||
4195 | 1660 | only exception to this anyway) (BUG 1043) | ||
4196 | 1661 | |||
4197 | 1662 | * Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com> | ||
4198 | 1663 | |||
4199 | 1664 | - fixed server postinstall (mysql_install_db was called with the wrong | ||
4200 | 1665 | parameter) | ||
4201 | 1666 | |||
4202 | 1667 | * Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com> | ||
4203 | 1668 | |||
4204 | 1669 | - added mysql_tzinfo_to_sql to the server subpackage | ||
4205 | 1670 | - run "make clean" instead of "make distclean" | ||
4206 | 1671 | |||
4207 | 1672 | * Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com> | ||
4208 | 1673 | |||
4209 | 1674 | - added ncurses-devel to the build prerequisites (BUG 3377) | ||
4210 | 1675 | |||
4211 | 1676 | * Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com> | ||
4212 | 1677 | |||
4213 | 1678 | - when using gcc, _always_ use CXX=gcc | ||
4214 | 1679 | - replaced Copyright with License field (Copyright is obsolete) | ||
4215 | 1680 | |||
4216 | 1681 | * Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com> | ||
4217 | 1682 | |||
4218 | 1683 | - added myisam_ftdump to the Server package | ||
4219 | 1684 | |||
4220 | 1685 | * Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com> | ||
4221 | 1686 | |||
4222 | 1687 | - link the mysql client against libreadline instead of libedit (BUG 2289) | ||
4223 | 1688 | |||
4224 | 1689 | * Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com> | ||
4225 | 1690 | |||
4226 | 1691 | - marked /etc/logrotate.d/mysql as a config file (BUG 2156) | ||
4227 | 1692 | |||
4228 | 1693 | * Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com> | ||
4229 | 1694 | |||
4230 | 1695 | - fixed file permissions (BUG 1672) | ||
4231 | 1696 | |||
4232 | 1697 | * Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com> | ||
4233 | 1698 | |||
4234 | 1699 | - made testing for gcc3 a bit more robust | ||
4235 | 1700 | |||
4236 | 1701 | * Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com> | ||
4237 | 1702 | |||
4238 | 1703 | - added missing file mysql_create_system_tables to the server subpackage | ||
4239 | 1704 | |||
4240 | 1705 | * Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com> | ||
4241 | 1706 | |||
4242 | 1707 | - removed dependency on MySQL-client from the MySQL-devel subpackage | ||
4243 | 1708 | as it is not really required. (BUG 1610) | ||
4244 | 1709 | |||
4245 | 1710 | * Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com> | ||
4246 | 1711 | |||
4247 | 1712 | - Fixed BUG 1162 (removed macro names from the changelog) | ||
4248 | 1713 | - Really fixed BUG 998 (disable the checking for installed but | ||
4249 | 1714 | unpackaged files) | ||
4250 | 1715 | |||
4251 | 1716 | * Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com> | ||
4252 | 1717 | |||
4253 | 1718 | - Fixed BUG 959 (libmysqld not being compiled properly) | ||
4254 | 1719 | - Fixed BUG 998 (RPM build errors): added missing files to the | ||
4255 | 1720 | distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow, | ||
4256 | 1721 | mysql_fix_privilege_tables.1), removed "-n" from install section. | ||
4257 | 1722 | |||
4258 | 1723 | * Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com> | ||
4259 | 1724 | |||
4260 | 1725 | - removed the GIF Icon (file was not included in the sources anyway) | ||
4261 | 1726 | - removed unused variable shared_lib_version | ||
4262 | 1727 | - do not run automake before building the standard binary | ||
4263 | 1728 | (should not be necessary) | ||
4264 | 1729 | - add server suffix '-standard' to standard binary (to be in line | ||
4265 | 1730 | with the binary tarball distributions) | ||
4266 | 1731 | - Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir, | ||
4267 | 1732 | _datadir, _includedir) throughout the spec file. | ||
4268 | 1733 | - allow overriding CC and CXX (required when building with other compilers) | ||
4269 | 1734 | |||
4270 | 1735 | * Fri May 16 2003 Lenz Grimmer <lenz@mysql.com> | ||
4271 | 1736 | |||
4272 | 1737 | - re-enabled RAID again | ||
4273 | 1738 | |||
4274 | 1739 | * Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com> | ||
4275 | 1740 | |||
4276 | 1741 | - disabled MyISAM RAID (--with-raid) - it throws an assertion which | ||
4277 | 1742 | needs to be investigated first. | ||
4278 | 1743 | |||
4279 | 1744 | * Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com> | ||
4280 | 1745 | |||
4281 | 1746 | - added missing file mysql_secure_installation to server subpackage | ||
4282 | 1747 | (BUG 141) | ||
4283 | 1748 | |||
4284 | 1749 | * Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com> | ||
4285 | 1750 | |||
4286 | 1751 | - re-added missing pre- and post(un)install scripts to server subpackage | ||
4287 | 1752 | - added config file /etc/my.cnf to the file list (just for completeness) | ||
4288 | 1753 | - make sure to create the datadir with 755 permissions | ||
4289 | 1754 | |||
4290 | 1755 | * Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com> | ||
4291 | 1756 | |||
4292 | 1757 | - removed unused CC and CXX variables | ||
4293 | 1758 | - CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS | ||
4294 | 1759 | |||
4295 | 1760 | * Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com> | ||
4296 | 1761 | |||
4297 | 1762 | - renamed package "MySQL" to "MySQL-server" | ||
4298 | 1763 | - fixed Copyright tag | ||
4299 | 1764 | - added mysql_waitpid to client subpackage (required for mysql-test-run) | ||
4300 | 1765 | |||
4301 | 1766 | * Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com> | ||
4302 | 1767 | |||
4303 | 1768 | - moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of | ||
4304 | 1769 | Linux distributions now support this scheme as proposed by the LSB either | ||
4305 | 1770 | directly or via a compatibility symlink) | ||
4306 | 1771 | - Use new "restart" init script action instead of starting and stopping | ||
4307 | 1772 | separately | ||
4308 | 1773 | - Be more flexible in activating the automatic bootup - use insserv (on | ||
4309 | 1774 | older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and | ||
4310 | 1775 | others) to create the respective symlinks | ||
4311 | 1776 | |||
4312 | 1777 | * Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com> | ||
4313 | 1778 | |||
4314 | 1779 | - MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches | ||
4315 | 1780 | (mixing 3.23 and 4.0 packages) | ||
4316 | 1781 | |||
4317 | 1782 | * Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com> | ||
4318 | 1783 | |||
4319 | 1784 | - Turn off OpenSSL in MySQL-Max for now until it works properly again | ||
4320 | 1785 | - enable RAID for the Max binary instead | ||
4321 | 1786 | - added compatibility link: safe_mysqld -> mysqld_safe to ease the | ||
4322 | 1787 | transition from 3.23 | ||
4323 | 1788 | |||
4324 | 1789 | * Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com> | ||
4325 | 1790 | |||
4326 | 1791 | - Reworked the build steps a little bit: the Max binary is supposed | ||
4327 | 1792 | to include OpenSSL, which cannot be linked statically, thus trying | ||
4328 | 1793 | to statically link against a special glibc is futile anyway | ||
4329 | 1794 | - because of this, it is not required to make yet another build run | ||
4330 | 1795 | just to compile the shared libs (saves a lot of time) | ||
4331 | 1796 | - updated package description of the Max subpackage | ||
4332 | 1797 | - clean up the BuildRoot directory afterwards | ||
4333 | 1798 | |||
4334 | 1799 | * Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com> | ||
4335 | 1800 | |||
4336 | 1801 | - Updated Packager information | ||
4337 | 1802 | - Fixed the build options: the regular package is supposed to | ||
4338 | 1803 | include InnoDB and linked statically, while the Max package | ||
4339 | 1804 | should include BDB and SSL support | ||
4340 | 1805 | |||
4341 | 1806 | * Fri May 03 2002 Lenz Grimmer <lenz@mysql.com> | ||
4342 | 1807 | |||
4343 | 1808 | - Use more RPM macros (e.g. infodir, mandir) to make the spec | ||
4344 | 1809 | file more portable | ||
4345 | 1810 | - reorganized the installation of documentation files: let RPM | ||
4346 | 1811 | take care of this | ||
4347 | 1812 | - reorganized the file list: actually install man pages along | ||
4348 | 1813 | with the binaries of the respective subpackage | ||
4349 | 1814 | - do not include libmysqld.a in the devel subpackage as well, if we | ||
4350 | 1815 | have a special "embedded" subpackage | ||
4351 | 1816 | - reworked the package descriptions | ||
4352 | 1817 | |||
4353 | 1818 | * Mon Oct 8 2001 Monty | ||
4354 | 1819 | |||
4355 | 1820 | - Added embedded server as a separate RPM | ||
4356 | 1821 | |||
4357 | 1822 | * Fri Apr 13 2001 Monty | ||
4358 | 1823 | |||
4359 | 1824 | - Added mysqld-max to the distribution | ||
4360 | 1825 | |||
4361 | 1826 | * Tue Jan 2 2001 Monty | ||
4362 | 1827 | |||
4363 | 1828 | - Added mysql-test to the bench package | ||
4364 | 1829 | |||
4365 | 1830 | * Fri Aug 18 2000 Tim Smith <tim@mysql.com> | ||
4366 | 1831 | |||
4367 | 1832 | - Added separate libmysql_r directory; now both a threaded | ||
4368 | 1833 | and non-threaded library is shipped. | ||
4369 | 1834 | |||
4370 | 1835 | * Wed Sep 28 1999 David Axmark <davida@mysql.com> | ||
4371 | 1836 | |||
4372 | 1837 | - Added the support-files/my-example.cnf to the docs directory. | ||
4373 | 1838 | |||
4374 | 1839 | - Removed devel dependency on base since it is about client | ||
4375 | 1840 | development. | ||
4376 | 1841 | |||
4377 | 1842 | * Wed Sep 8 1999 David Axmark <davida@mysql.com> | ||
4378 | 1843 | |||
4379 | 1844 | - Cleaned up some for 3.23. | ||
4380 | 1845 | |||
4381 | 1846 | * Thu Jul 1 1999 David Axmark <davida@mysql.com> | ||
4382 | 1847 | |||
4383 | 1848 | - Added support for shared libraries in a separate sub | ||
4384 | 1849 | package. Original fix by David Fox (dsfox@cogsci.ucsd.edu) | ||
4385 | 1850 | |||
4386 | 1851 | - The --enable-assembler switch is now automatically disables on | ||
4387 | 1852 | platforms there assembler code is unavailable. This should allow | ||
4388 | 1853 | building this RPM on non i386 systems. | ||
4389 | 1854 | |||
4390 | 1855 | * Mon Feb 22 1999 David Axmark <david@detron.se> | ||
4391 | 1856 | |||
4392 | 1857 | - Removed unportable cc switches from the spec file. The defaults can | ||
4393 | 1858 | now be overridden with environment variables. This feature is used | ||
4394 | 1859 | to compile the official RPM with optimal (but compiler version | ||
4395 | 1860 | specific) switches. | ||
4396 | 1861 | |||
4397 | 1862 | - Removed the repetitive description parts for the sub rpms. Maybe add | ||
4398 | 1863 | again if RPM gets a multiline macro capability. | ||
4399 | 1864 | |||
4400 | 1865 | - Added support for a pt_BR translation. Translation contributed by | ||
4401 | 1866 | Jorge Godoy <jorge@bestway.com.br>. | ||
4402 | 1867 | |||
4403 | 1868 | * Wed Nov 4 1998 David Axmark <david@detron.se> | ||
4404 | 1869 | |||
4405 | 1870 | - A lot of changes in all the rpm and install scripts. This may even | ||
4406 | 1871 | be a working RPM :-) | ||
4407 | 1872 | |||
4408 | 1873 | * Sun Aug 16 1998 David Axmark <david@detron.se> | ||
4409 | 1874 | |||
4410 | 1875 | - A developers changelog for MySQL is available in the source RPM. And | ||
4411 | 1876 | there is a history of major user visible changed in the Reference | ||
4412 | 1877 | Manual. Only RPM specific changes will be documented here. | ||
4413 | 1878 | 0 | ||
4414 | === removed file 'build/percona-shared-compat.spec' | |||
4415 | --- build/percona-shared-compat.spec 2013-04-05 20:40:25 +0000 | |||
4416 | +++ build/percona-shared-compat.spec 1970-01-01 00:00:00 +0000 | |||
4417 | @@ -1,91 +0,0 @@ | |||
4418 | 1 | # | ||
4419 | 2 | # percona-shared-compat.spec | ||
4420 | 3 | # | ||
4421 | 4 | # Based on MySQL-shared-compat.spec, which is Copyright (C) 2003 MySQL AB | ||
4422 | 5 | # | ||
4423 | 6 | # RPM build instructions to create a "meta" package that includes different | ||
4424 | 7 | # versions of the MySQL shared libraries (for compatibility with | ||
4425 | 8 | # distributions that ship older versions of MySQL). | ||
4426 | 9 | # | ||
4427 | 10 | # In this version we simply repackage mysql-shared-compat from upstream. | ||
4428 | 11 | # | ||
4429 | 12 | # This program is free software; you can redistribute it and/or modify it | ||
4430 | 13 | # under the terms of the GNU General Public License as published by the Free | ||
4431 | 14 | # Software Foundation; version 2 of the License. | ||
4432 | 15 | # | ||
4433 | 16 | # This program is distributed in the hope that it will be useful, but | ||
4434 | 17 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
4435 | 18 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
4436 | 19 | # for more details. | ||
4437 | 20 | # | ||
4438 | 21 | # You should have received a copy of the GNU General Public License along | ||
4439 | 22 | # with this program; if not, write to the Free Software Foundation, Inc., 59 | ||
4440 | 23 | # Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
4441 | 24 | |||
4442 | 25 | # For 5.0 and up, this is needed because of "libndbclient". | ||
4443 | 26 | %define _unpackaged_files_terminate_build 0 | ||
4444 | 27 | |||
4445 | 28 | # | ||
4446 | 29 | # Change this to match the version of the shared libs you want to include | ||
4447 | 30 | # | ||
4448 | 31 | %define version55 5.5.22 | ||
4449 | 32 | %define version51 5.1.48 | ||
4450 | 33 | %define version50 5.0.91 | ||
4451 | 34 | %define version41 4.1.22 | ||
4452 | 35 | %define version40 4.0.27 | ||
4453 | 36 | #%define version3 3.23.58 | ||
4454 | 37 | |||
4455 | 38 | %define redhatversion %(lsb_release -rs | awk -F. '{ print $1}') | ||
4456 | 39 | |||
4457 | 40 | Name: Percona-Server-shared-compat | ||
4458 | 41 | Packager: Percona MySQL Development Team <mysql-dev@percona.com> | ||
4459 | 42 | Vendor: Percona Inc | ||
4460 | 43 | License: GPL v2 | ||
4461 | 44 | Group: Applications/Databases | ||
4462 | 45 | URL: http://www.percona.com/percona-lab.html | ||
4463 | 46 | Autoreqprov: on | ||
4464 | 47 | Version: %{version55} | ||
4465 | 48 | Release: %{release}.%{gotrevision}.rhel%{redhatversion} | ||
4466 | 49 | BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
4467 | 50 | Obsoletes: MySQL-shared mysql-libs | ||
4468 | 51 | Provides: MySQL-shared mysql-libs | ||
4469 | 52 | Summary: MySQL shared client libraries for MySQL %{version}, %{version50}, %{version41} and %{version40} | ||
4470 | 53 | |||
4471 | 54 | # We extract the older libraries from mysql-shared-compat and the newer from our sources | ||
4472 | 55 | Source0: MySQL-shared-compat-%{version55}-1.linux2.6.%{_arch}.rpm | ||
4473 | 56 | #Source1: MySQL-shared-%{version50}-1.%{_arch}.rpm | ||
4474 | 57 | #Source2: MySQL-shared-%{version41}-0.%{_arch}.rpm | ||
4475 | 58 | #Source3: MySQL-shared-%{version40}-0.%{_arch}.rpm | ||
4476 | 59 | #Source3: MySQL-shared-%{version3}-1.%{_arch}.rpm | ||
4477 | 60 | # No need to include the RPMs once more - they can be downloaded seperately | ||
4478 | 61 | # if you want to rebuild this package | ||
4479 | 62 | NoSource: 0 | ||
4480 | 63 | #NoSource: 1 | ||
4481 | 64 | #NoSource: 2 | ||
4482 | 65 | #NoSource: 3 | ||
4483 | 66 | BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
4484 | 67 | |||
4485 | 68 | %description | ||
4486 | 69 | This package includes the shared libraries for MySQL 4.0, 4.1, 5.0 and 5.1. | ||
4487 | 70 | Install this package instead of "MySQL-shared", if you have applications | ||
4488 | 71 | installed that are dynamically linked against older versions of the MySQL | ||
4489 | 72 | client library but you want to upgrade to MySQL %{version} without breaking the | ||
4490 | 73 | library dependencies. | ||
4491 | 74 | |||
4492 | 75 | %install | ||
4493 | 76 | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; | ||
4494 | 77 | mkdir -p $RPM_BUILD_ROOT | ||
4495 | 78 | cd $RPM_BUILD_ROOT | ||
4496 | 79 | rpm2cpio %{SOURCE0} | cpio -iv --make-directories | ||
4497 | 80 | #rpm2cpio %{SOURCE1} | cpio -iv --make-directories | ||
4498 | 81 | #rpm2cpio %{SOURCE2} | cpio -iv --make-directories | ||
4499 | 82 | #rpm2cpio %{SOURCE3} | cpio -iv --make-directories | ||
4500 | 83 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} | ||
4501 | 84 | |||
4502 | 85 | %clean | ||
4503 | 86 | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; | ||
4504 | 87 | |||
4505 | 88 | %files | ||
4506 | 89 | %defattr(-, root, root) | ||
4507 | 90 | %{_libdir}/libmysqlclient* | ||
4508 | 91 |