]>
Commit | Line | Data |
---|---|---|
13ce82d8 | 1 | # TODO: |
2 | # - C(XX)FLAGS for innodb subdirs are overriden by ./configure! | |
3 | # - http://bugs.mysql.com/bug.php?id=16470 | |
4 | # | |
5 | # Conditional build: | |
f3b912d8 ER |
6 | %bcond_without big_tables # Support tables with more than 4G rows even on 32 bit platforms |
7 | %bcond_without federated # Federated storage engine support | |
a78a22c1 | 8 | %bcond_without innodb # InnoDB storage engine support |
13ce82d8 | 9 | %bcond_without raid # Without raid |
10 | %bcond_without ssl # Without OpenSSL | |
11 | %bcond_without tcpd # Without libwrap (tcp_wrappers) support | |
420c5d74 | 12 | %bcond_without autodeps # BR packages needed only for resolving deps |
f3b912d8 | 13 | %bcond_with bdb # Berkeley DB support |
b79f901f | 14 | %bcond_without sphinx # Sphinx storage engine support |
f8f6f421 | 15 | %bcond_with xtrabackup # XtraBackup |
4ea87158 | 16 | |
13ce82d8 | 17 | %include /usr/lib/rpm/macros.perl |
18 | #define _snap 20060111 | |
19 | Summary: MySQL: a very fast and reliable SQL database engine | |
89316dd1 ER |
20 | Summary(de.UTF-8): MySQL: ist eine SQL-Datenbank |
21 | Summary(fr.UTF-8): MySQL: un serveur SQL rapide et fiable | |
22 | Summary(pl.UTF-8): MySQL: bardzo szybka i niezawodna baza danych (SQL) | |
23 | Summary(pt_BR.UTF-8): MySQL: Um servidor SQL rápido e confiável | |
24 | Summary(ru.UTF-8): MySQL - быстрый SQL-сервер | |
25 | Summary(uk.UTF-8): MySQL - швидкий SQL-сервер | |
26 | Summary(zh_CN.UTF-8): MySQL数据库服务器 | |
13ce82d8 | 27 | Name: mysql |
016c998d | 28 | Version: 5.0.83 |
529deea8 | 29 | Release: 1 |
13ce82d8 | 30 | License: GPL + MySQL FLOSS Exception |
31 | Group: Applications/Databases | |
7628f771 | 32 | #Source0: ftp://ftp.mysql.com/pub/mysql/src/%{name}-%{version}.tar.gz |
2644efb8 | 33 | Source0: http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.0/%{name}-%{version}.tar.gz |
016c998d | 34 | # Source0-md5: 051392064a1e32cca5c23a593908b10e |
fd2b4d8b | 35 | #Source0: http://mysql.he.net/Downloads/MySQL-5.0/%{name}-%{version}.tar.gz |
2644efb8 ER |
36 | #Source0: http://mirror.provenscaling.com/mysql/enterprise/source/5.0/%{name}-%{version}.tar.gz |
37 | Source100: http://www.sphinxsearch.com/downloads/sphinx-0.9.9-rc1.tar.gz | |
38 | # Source100-md5: d1506c8f85c045bb682393de0aed30e8 | |
13ce82d8 | 39 | Source1: %{name}.init |
40 | Source2: %{name}.sysconfig | |
41 | Source3: %{name}.logrotate | |
42 | Source4: %{name}d.conf | |
43 | Source5: %{name}-clusters.conf | |
44 | Source7: %{name}-ndb.init | |
45 | Source8: %{name}-ndb.sysconfig | |
46 | Source9: %{name}-ndb-mgm.init | |
47 | Source10: %{name}-ndb-mgm.sysconfig | |
48 | Source11: %{name}-ndb-cpc.init | |
49 | Source12: %{name}-ndb-cpc.sysconfig | |
50 | Source13: %{name}-client.conf | |
51 | Patch0: %{name}-libs.patch | |
a78a22c1 | 52 | Patch1: %{name}-sphinx.patch |
13ce82d8 | 53 | Patch2: %{name}-c++.patch |
54 | Patch3: %{name}-info.patch | |
55 | Patch4: %{name}-sql-cxx-pic.patch | |
56 | Patch5: %{name}-noproc.patch | |
57 | Patch6: %{name}-fix_privilege_tables.patch | |
58 | Patch7: %{name}-align.patch | |
59 | Patch8: %{name}-client-config.patch | |
60 | Patch9: %{name}-build.patch | |
61 | Patch10: %{name}-alpha.patch | |
62 | Patch11: %{name}-ndb-ldflags.patch | |
63 | Patch12: %{name}-bug-20153.patch | |
8ecd9b33 ER |
64 | Patch13: %{name}-bug-34192.patch |
65 | Patch14: %{name}-bug-16470.patch | |
66 | Patch15: %{name}-system-users.patch | |
a660043b | 67 | # <percona patches, http://www.percona.com/percona-lab.html> |
2644efb8 ER |
68 | Patch16: %{name}-microslow_innodb.patch |
69 | Patch17: %{name}-userstatv2.patch | |
70 | Patch18: %{name}-innodb_io_patches.patch | |
71 | Patch19: %{name}-microsec_process.patch | |
72 | Patch20: %{name}-innodb_show_bp.patch | |
73 | Patch21: %{name}-innodb_locks_held.patch | |
74 | Patch22: %{name}-innodb_io_pattern.patch | |
75 | Patch23: %{name}-innodb_show_hashed_memory.patch | |
76 | Patch24: %{name}-innodb_rw_lock.patch | |
77 | Patch25: %{name}-innodb_fsync_source.patch | |
78 | Patch26: %{name}-show_patches.patch | |
79 | Patch27: %{name}-split_buf_pool_mutex_fixed_optimistic_safe.patch | |
80 | Patch28: %{name}-innodb_check_fragmentation.patch | |
a660043b | 81 | # </percona> |
2644efb8 ER |
82 | Patch29: %{name}-errorlog-no-rename.patch |
83 | Patch30: %{name}-alpha-stack.patch | |
f8f6f421 | 84 | Patch31: %{name}-xtrabackup.patch |
529deea8 | 85 | Patch32: %{name}-fixes.patch |
13ce82d8 | 86 | URL: http://www.mysql.com/products/database/mysql/community_edition.html |
87 | BuildRequires: autoconf | |
88 | BuildRequires: automake | |
a203d680 | 89 | BuildRequires: bison |
13ce82d8 | 90 | %{?with_bdb:BuildRequires: db3-devel} |
a203d680 | 91 | BuildRequires: flex |
13ce82d8 | 92 | BuildRequires: libstdc++-devel >= 5:3.0 |
93 | BuildRequires: libtool | |
94 | %{?with_tcpd:BuildRequires: libwrap-devel} | |
95 | BuildRequires: ncurses-devel >= 4.2 | |
96 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} | |
420c5d74 | 97 | %{?with_autodeps:BuildRequires: perl-DBI} |
13ce82d8 | 98 | BuildRequires: perl-devel >= 1:5.6.1 |
99 | BuildRequires: readline-devel >= 4.2 | |
100 | BuildRequires: rpm-perlprov >= 4.1-13 | |
420c5d74 | 101 | BuildRequires: rpmbuild(macros) >= 1.414 |
13ce82d8 | 102 | BuildRequires: sed >= 4.0 |
103 | BuildRequires: texinfo | |
104 | BuildRequires: zlib-devel | |
105 | Requires(post,preun): /sbin/chkconfig | |
106 | Requires(postun): /usr/sbin/groupdel | |
107 | Requires(postun): /usr/sbin/userdel | |
108 | Requires(pre): /bin/id | |
109 | Requires(pre): /usr/bin/getgid | |
110 | Requires(pre): /usr/sbin/groupadd | |
111 | Requires(pre): /usr/sbin/useradd | |
112 | Requires(triggerpostun): sed >= 4.0 | |
113 | Requires: %{name}-charsets = %{version}-%{release} | |
420c5d74 | 114 | Requires: %{name}-libs = %{version}-%{release} |
13ce82d8 | 115 | Requires: /usr/bin/setsid |
37400e9a | 116 | Requires: logrotate >= 3.7-4 |
13ce82d8 | 117 | Requires: rc-scripts >= 0.2.0 |
37400e9a ER |
118 | Suggests: mysql-client |
119 | %{?with_tcpd:Suggests: tcp_wrappers} | |
13ce82d8 | 120 | Provides: MySQL-server |
121 | Provides: group(mysql) | |
122 | Provides: msqlormysql | |
123 | Provides: user(mysql) | |
124 | Obsoletes: MySQL | |
125 | Obsoletes: mysql-server | |
126 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
127 | ||
128 | %define _libexecdir %{_sbindir} | |
129 | %define _localstatedir /var/lib/mysql | |
130 | %define _mysqlhome /home/services/mysql | |
131 | ||
132 | %define _noautoreqdep 'perl(DBD::mysql)' | |
133 | # CFLAGS for innodb are altered | |
134 | %undefine configure_cache | |
135 | ||
136 | %description | |
137 | MySQL is a true multi-user, multi-threaded SQL (Structured Query | |
138 | Language) database server. SQL is the most popular database language | |
139 | in the world. MySQL is a client/server implementation that consists of | |
140 | a server daemon mysqld and many different client programs/libraries. | |
141 | ||
142 | The main goals of MySQL are speed, robustness and easy to use. MySQL | |
143 | was originally developed because we at Tcx needed a SQL server that | |
144 | could handle very big databases with magnitude higher speed than what | |
145 | any database vendor could offer to us. We have now been using MySQL | |
146 | since 1996 in a environment with more than 40 databases, 10,000 | |
147 | tables, of which more than 500 have more than 7 million rows. This is | |
148 | about 50G of mission critical data. | |
149 | ||
150 | The base upon which MySQL is built is a set of routines that have been | |
151 | used in a highly demanding production environment for many years. | |
152 | While MySQL is still in development, it already offers a rich and | |
153 | highly useful function set. | |
154 | ||
89316dd1 | 155 | %description -l fr.UTF-8 |
13ce82d8 | 156 | MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et |
157 | multi-taches. Le langage SQL est le langage de bases de donnees le | |
158 | plus populaire au monde. MySQL est une implementation client/serveur | |
159 | qui consiste en un serveur (mysqld) et differents | |
160 | programmes/bibliotheques clientes. | |
161 | ||
162 | Les objectifs principaux de MySQL sont: vitesse, robustesse et | |
163 | facilite d'utilisation. MySQL fut originalement developpe parce que | |
164 | nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de | |
165 | tres grandes bases de donnees avec une vitesse d'un ordre de magnitude | |
166 | superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous | |
167 | utilisons MySQL depuis 1996 dans un environnement avec plus de 40 | |
168 | bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7 | |
169 | millions de lignes. Ceci represente environ 50G de donnees critiques. | |
170 | ||
171 | A la base de la conception de MySQL, on retrouve une serie de routines | |
172 | qui ont ete utilisees dans un environnement de production pendant | |
173 | plusieurs annees. Meme si MySQL est encore en developpement, il offre | |
174 | deja une riche et utile serie de fonctions. | |
175 | ||
89316dd1 ER |
176 | %description -l pl.UTF-8 |
177 | MySQL to prawdziwie wieloużytkownikowy, wielowątkowy serwer baz danych | |
178 | SQL. SQL jest najpopularniejszym na świecie językiem używanym do baz | |
179 | danych. MySQL to implementacja klient/serwer składająca się z demona | |
180 | mysqld i wielu różnych programów i bibliotek klienckich. | |
181 | ||
182 | Głównymi celami MySQL-a są szybkość, potęga i łatwość użytkowania. | |
183 | MySQL oryginalnie był tworzony, ponieważ autorzy w Tcx potrzebowali | |
184 | serwera SQL do obsługi bardzo dużych baz danych z szybkością o wiele | |
185 | większą, niż mogli zaoferować inni producenci baz danych. Używają go | |
186 | od 1996 roku w środowisku z ponad 40 bazami danych, 10 000 tabel, z | |
187 | których ponad 500 zawiera ponad 7 milionów rekordów - w sumie około | |
13ce82d8 | 188 | 50GB krytycznych danych. |
189 | ||
89316dd1 ER |
190 | Baza, na której oparty jest MySQL, składa się ze zbioru procedur, |
191 | które były używane w bardzo wymagającym środowisku produkcyjnym przez | |
192 | wiele lat. Pomimo, że MySQL jest ciągle rozwijany, już oferuje bogaty | |
193 | i użyteczny zbiór funkcji. | |
13ce82d8 | 194 | |
89316dd1 | 195 | %description -l de.UTF-8 |
13ce82d8 | 196 | MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu |
197 | Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten | |
89316dd1 ER |
198 | werden zwar in zweidimensionalen Tabellen gespeichert und können mit |
199 | einem Primärschlüssel versehen werden. Es ist aber keine Definition | |
200 | eines Fremdschlüssels möglich. Der Benutzer ist somit bei einer | |
201 | MySQL-Datenbank völlig allein für die (referenzielle) Integrität der | |
13ce82d8 | 202 | Daten verantwortlich. Allein durch die Nutzung externer |
89316dd1 ER |
203 | Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalität |
204 | ermöglicht. Diese Projekte sind aber getrennt von MySQL zu betrachten. | |
13ce82d8 | 205 | |
89316dd1 ER |
206 | %description -l pt_BR.UTF-8 |
207 | O MySQL é um servidor de banco de dados SQL realmente multiusuário e | |
208 | multi-tarefa. A linguagem SQL é a mais popular linguagem para banco de | |
209 | dados no mundo. O MySQL é uma implementação cliente/servidor que | |
13ce82d8 | 210 | consiste de um servidor chamado mysqld e diversos |
89316dd1 | 211 | programas/bibliotecas clientes. Os principais objetivos do MySQL são: |
13ce82d8 | 212 | velocidade, robustez e facilidade de uso. O MySQL foi originalmente |
89316dd1 | 213 | desenvolvido porque nós na Tcx precisávamos de um servidor SQL que |
13ce82d8 | 214 | pudesse lidar com grandes bases de dados e com uma velocidade muito |
215 | maior do que a que qualquer vendedor podia nos oferecer. Estamos | |
216 | usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados | |
89316dd1 ER |
217 | com 10.000 tabelas, das quais mais de 500 têm mais de 7 milhões de |
218 | linhas. Isto é o equivalente a aproximadamente 50G de dados críticos. | |
219 | A base da construção do MySQL é uma série de rotinas que foram usadas | |
220 | em um ambiente de produção com alta demanda por muitos anos. Mesmo o | |
221 | MySQL estando ainda em desenvolvimento, ele já oferece um conjunto de | |
222 | funções muito ricas e úteis. Veja a documentação para maiores | |
223 | informações. | |
224 | ||
225 | %description -l ru.UTF-8 | |
226 | MySQL - это SQL (Structured Query Language) сервер базы данных. MySQL | |
227 | была написана Michael'ом (monty) Widenius'ом. См. файл CREDITS в | |
228 | дистрибутиве на предмет других участников проекта и прочей информации | |
229 | о MySQL. | |
230 | ||
231 | %description -l uk.UTF-8 | |
232 | MySQL - це SQL (Structured Query Language) сервер бази даних. MySQL | |
233 | було написано Michael'ом (monty) Widenius'ом. Див. файл CREDITS в | |
234 | дистрибутиві для інформації про інших учасників проекту та іншої | |
235 | інформації. | |
13ce82d8 | 236 | |
237 | %package charsets | |
238 | Summary: MySQL - character sets definitions | |
89316dd1 | 239 | Summary(pl.UTF-8): MySQL - definicje kodowań znaków |
13ce82d8 | 240 | Group: Applications/Databases |
241 | ||
242 | %description charsets | |
243 | This package contains character sets definitions needed by both client | |
244 | and server. | |
245 | ||
89316dd1 ER |
246 | %description charsets -l pl.UTF-8 |
247 | Ten pakiet zawiera definicje kodowań znaków potrzebne dla serwera i | |
13ce82d8 | 248 | klienta. |
249 | ||
4ea87158 ER |
250 | %package -n mysqlhotcopy |
251 | Summary: mysqlhotcopy - A MySQL database backup program | |
252 | Group: Applications/Databases | |
253 | Requires: %{name}-libs = %{version}-%{release} | |
254 | Requires: perl-DBD-mysql | |
255 | ||
256 | %description -n mysqlhotcopy | |
257 | mysqlhotcopy uses LOCK TABLES, FLUSH TABLES, and cp or scp to make a | |
258 | database backup quickly. It is the fastest way to make a backup of the | |
259 | database or single tables, but it can be run only on the same machine | |
260 | where the database directories are located. mysqlhotcopy works only | |
261 | for backing up MyISAM and ARCHIVE tables. | |
262 | ||
263 | See innobackup package to backup InnoDB tables. | |
264 | ||
13ce82d8 | 265 | %package extras |
266 | Summary: MySQL additional utilities | |
89316dd1 | 267 | Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL |
13ce82d8 | 268 | Group: Applications/Databases |
269 | Requires: %{name}-libs = %{version}-%{release} | |
270 | ||
271 | %description extras | |
272 | MySQL additional utilities except Perl scripts (they may be found in | |
273 | %{name}-extras-perl package). | |
274 | ||
89316dd1 ER |
275 | %description extras -l pl.UTF-8 |
276 | Dodatkowe narzędzia do MySQL - z wyjątkiem skryptów Perla (które są w | |
13ce82d8 | 277 | pakiecie %{name}-extras-perl). |
278 | ||
279 | %package extras-perl | |
280 | Summary: MySQL additional utilities written in Perl | |
89316dd1 | 281 | Summary(pl.UTF-8): Dodatkowe narzędzia do MySQL napisane w Perlu |
13ce82d8 | 282 | Group: Applications/Databases |
283 | Requires: %{name}-extras = %{version}-%{release} | |
4ea87158 ER |
284 | # this is just for the sake of smooth upgrade, not to break systems |
285 | Requires: mysqlhotcopy = %{version}-%{release} | |
13ce82d8 | 286 | Requires: perl(DBD::mysql) |
287 | ||
288 | %description extras-perl | |
289 | MySQL additional utilities written in Perl. | |
290 | ||
89316dd1 ER |
291 | %description extras-perl -l pl.UTF-8 |
292 | Dodatkowe narzędzia do MySQL napisane w Perlu. | |
13ce82d8 | 293 | |
294 | %package client | |
295 | Summary: MySQL - Client | |
89316dd1 ER |
296 | Summary(pl.UTF-8): MySQL - Klient |
297 | Summary(pt.UTF-8): MySQL - Cliente | |
298 | Summary(ru.UTF-8): MySQL клиент | |
299 | Summary(uk.UTF-8): MySQL клієнт | |
13ce82d8 | 300 | Group: Applications/Databases |
301 | Requires: %{name}-charsets = %{version}-%{release} | |
302 | Requires: %{name}-libs = %{version}-%{release} | |
303 | Obsoletes: MySQL-client | |
304 | ||
305 | %description client | |
306 | This package contains the standard MySQL clients. | |
307 | ||
89316dd1 | 308 | %description client -l fr.UTF-8 |
13ce82d8 | 309 | Ce package contient les clients MySQL standards. |
310 | ||
89316dd1 | 311 | %description client -l pl.UTF-8 |
13ce82d8 | 312 | Standardowe programy klienckie MySQL. |
313 | ||
89316dd1 ER |
314 | %description client -l pt_BR.UTF-8 |
315 | Este pacote contém os clientes padrão para o MySQL. | |
13ce82d8 | 316 | |
89316dd1 ER |
317 | %description client -l ru.UTF-8 |
318 | Этот пакет содержит только клиент MySQL. | |
13ce82d8 | 319 | |
89316dd1 ER |
320 | %description client -l uk.UTF-8 |
321 | Цей пакет містить тільки клієнта MySQL. | |
13ce82d8 | 322 | |
323 | %package libs | |
324 | Summary: Shared libraries for MySQL | |
89316dd1 | 325 | Summary(pl.UTF-8): Biblioteki dzielone MySQL |
13ce82d8 | 326 | Group: Libraries |
327 | Obsoletes: libmysql10 | |
328 | Obsoletes: mysql-doc < 4.1.12 | |
329 | ||
330 | %description libs | |
331 | Shared libraries for MySQL. | |
332 | ||
89316dd1 | 333 | %description libs -l pl.UTF-8 |
13ce82d8 | 334 | Biblioteki dzielone MySQL. |
335 | ||
336 | %package devel | |
337 | Summary: MySQL - Development header files and libraries | |
89316dd1 ER |
338 | Summary(pl.UTF-8): MySQL - Pliki nagłówkowe i biblioteki dla programistów |
339 | Summary(pt.UTF-8): MySQL - Medições de desempenho | |
340 | Summary(ru.UTF-8): MySQL - хедеры и библиотеки разработчика | |
341 | Summary(uk.UTF-8): MySQL - хедери та бібліотеки програміста | |
13ce82d8 | 342 | Group: Development/Libraries |
343 | Requires: %{name}-libs = %{version}-%{release} | |
344 | %{?with_ssl:Requires: openssl-devel} | |
345 | Requires: zlib-devel | |
346 | Obsoletes: MySQL-devel | |
347 | Obsoletes: libmysql10-devel | |
348 | ||
349 | %description devel | |
350 | This package contains the development header files and libraries | |
351 | necessary to develop MySQL client applications. | |
352 | ||
89316dd1 | 353 | %description devel -l fr.UTF-8 |
13ce82d8 | 354 | Ce package contient les fichiers entetes et les librairies de |
355 | developpement necessaires pour developper des applications clientes | |
356 | MySQL. | |
357 | ||
89316dd1 ER |
358 | %description devel -l pl.UTF-8 |
359 | Pliki nagłówkowe i biblioteki konieczne do kompilacji aplikacji | |
13ce82d8 | 360 | klienckich MySQL. |
361 | ||
89316dd1 ER |
362 | %description devel -l pt_BR.UTF-8 |
363 | Este pacote contém os arquivos de cabeçalho (header files) e | |
364 | bibliotecas necessárias para desenvolver aplicações clientes do MySQL. | |
13ce82d8 | 365 | |
89316dd1 ER |
366 | %description devel -l ru.UTF-8 |
367 | Этот пакет содержит хедеры и библиотеки разработчика, необходимые для | |
368 | разработки клиентских приложений. | |
13ce82d8 | 369 | |
89316dd1 ER |
370 | %description devel -l uk.UTF-8 |
371 | Цей пакет містить хедери та бібліотеки програміста, необхідні для | |
372 | розробки програм-клієнтів. | |
13ce82d8 | 373 | |
374 | %package static | |
375 | Summary: MySQL static libraries | |
89316dd1 ER |
376 | Summary(pl.UTF-8): Biblioteki statyczne MySQL |
377 | Summary(ru.UTF-8): MySQL - статические библиотеки | |
378 | Summary(uk.UTF-8): MySQL - статичні бібліотеки | |
13ce82d8 | 379 | Group: Development/Libraries |
380 | Requires: %{name}-devel = %{version}-%{release} | |
381 | Obsoletes: MySQL-static | |
382 | ||
383 | %description static | |
384 | MySQL static libraries. | |
385 | ||
89316dd1 | 386 | %description static -l pl.UTF-8 |
13ce82d8 | 387 | Biblioteki statyczne MySQL. |
388 | ||
89316dd1 ER |
389 | %description static -l ru.UTF-8 |
390 | Этот пакет содержит статические библиотеки разработчика, необходимые | |
391 | для разработки клиентских приложений. | |
13ce82d8 | 392 | |
89316dd1 ER |
393 | %description static -l uk.UTF-8 |
394 | Цей пакет містить статичні бібліотеки програміста, необхідні для | |
395 | розробки програм-клієнтів. | |
13ce82d8 | 396 | |
397 | %package bench | |
398 | Summary: MySQL - Benchmarks | |
89316dd1 ER |
399 | Summary(pl.UTF-8): MySQL - Programy testujące szybkość działania bazy |
400 | Summary(pt.UTF-8): MySQL - Medições de desempenho | |
401 | Summary(ru.UTF-8): MySQL - бенчмарки | |
402 | Summary(uk.UTF-8): MySQL - бенчмарки | |
13ce82d8 | 403 | Group: Applications/Databases |
404 | Requires: %{name} = %{version}-%{release} | |
405 | Requires: %{name}-client | |
406 | Requires: perl(DBD::mysql) | |
407 | Obsoletes: MySQL-bench | |
408 | ||
409 | %description bench | |
410 | This package contains MySQL benchmark scripts and data. | |
411 | ||
89316dd1 ER |
412 | %description bench -l pl.UTF-8 |
413 | Programy testujące szybkość serwera MySQL. | |
13ce82d8 | 414 | |
89316dd1 ER |
415 | %description bench -l pt_BR.UTF-8 |
416 | Este pacote contém medições de desempenho de scripts e dados do MySQL. | |
13ce82d8 | 417 | |
89316dd1 ER |
418 | %description bench -l ru.UTF-8 |
419 | Этот пакет содержит скрипты и данные для оценки производительности | |
13ce82d8 | 420 | MySQL. |
421 | ||
89316dd1 ER |
422 | %description bench -l uk.UTF-8 |
423 | Цей пакет містить скрипти та дані для оцінки продуктивності MySQL. | |
13ce82d8 | 424 | |
425 | %package doc | |
426 | Summary: MySQL manual | |
89316dd1 | 427 | Summary(pl.UTF-8): Podręcznik użytkownika MySQL |
13ce82d8 | 428 | Group: Applications/Databases |
429 | ||
430 | %description doc | |
431 | This package contains manual in HTML format. | |
432 | ||
89316dd1 ER |
433 | %description doc -l pl.UTF-8 |
434 | Podręcznik MySQL-a w formacie HTML. | |
13ce82d8 | 435 | |
436 | %package ndb | |
437 | Summary: MySQL - NDB Storage Engine Daemon | |
89316dd1 | 438 | Summary(pl.UTF-8): MySQL - demon silnika przechowywania danych NDB |
13ce82d8 | 439 | Group: Applications/Databases |
440 | Requires: %{name}-libs = %{version}-%{release} | |
441 | ||
442 | %description ndb | |
443 | This package contains the standard MySQL NDB Storage Engine Daemon. | |
444 | ||
89316dd1 | 445 | %description ndb -l pl.UTF-8 |
13ce82d8 | 446 | Ten pakiet zawiera standardowego demona silnika przechowywania danych |
447 | NDB. | |
448 | ||
449 | %package ndb-client | |
450 | Summary: MySQL - NDB Clients | |
89316dd1 | 451 | Summary(pl.UTF-8): MySQL - programy klienckie NDB |
13ce82d8 | 452 | Group: Applications/Databases |
453 | Requires: %{name}-libs = %{version}-%{release} | |
454 | ||
455 | %description ndb-client | |
456 | This package contains the standard MySQL NDB Clients. | |
457 | ||
89316dd1 | 458 | %description ndb-client -l pl.UTF-8 |
13ce82d8 | 459 | Ten pakiet zawiera standardowe programy klienckie MySQL NDB. |
460 | ||
461 | %package ndb-mgm | |
462 | Summary: MySQL - NDB Management Daemon | |
89316dd1 | 463 | Summary(pl.UTF-8): MySQL - demon zarządzający NDB |
13ce82d8 | 464 | Group: Applications/Databases |
465 | Requires: %{name}-libs = %{version}-%{release} | |
466 | ||
467 | %description ndb-mgm | |
468 | This package contains the standard MySQL NDB Management Daemon. | |
469 | ||
89316dd1 ER |
470 | %description ndb-mgm -l pl.UTF-8 |
471 | Ten pakiet zawiera standardowego demona zarządzającego MySQL NDB. | |
13ce82d8 | 472 | |
473 | %package ndb-cpc | |
474 | Summary: MySQL - NDB CPC Daemon | |
89316dd1 | 475 | Summary(pl.UTF-8): MySQL - demon NDB CPC |
13ce82d8 | 476 | Group: Applications/Databases |
477 | Requires: %{name}-libs = %{version}-%{release} | |
478 | ||
479 | %description ndb-cpc | |
480 | This package contains the standard MySQL NDB CPC Daemon. | |
481 | ||
89316dd1 | 482 | %description ndb-cpc -l pl.UTF-8 |
13ce82d8 | 483 | Ten pakiet zawiera standardowego demona MySQL NDB CPC. |
484 | ||
485 | %prep | |
a78a22c1 | 486 | %setup -q %{?_snap:-n %{name}-%{version}-nightly-%{_snap}} %{?with_sphinx:-a100} |
13ce82d8 | 487 | %patch0 -p1 |
a78a22c1 ER |
488 | %if %{with sphinx} |
489 | mv sphinx-*/mysqlse sql/sphinx | |
490 | %patch1 -p1 | |
491 | %endif | |
13ce82d8 | 492 | %patch2 -p1 |
493 | %patch3 -p1 | |
494 | %ifarch alpha | |
495 | # this is strange: mysqld functions for UDF modules are not explicitly defined, | |
496 | # so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables | |
497 | # in objects compiled without -fPIC | |
498 | %patch4 -p1 | |
499 | # gcc 3.3.x ICE | |
500 | %patch10 -p1 | |
501 | %endif | |
502 | %patch5 -p1 | |
503 | %patch6 -p1 | |
504 | %patch7 -p1 | |
505 | %patch8 -p1 | |
506 | %patch9 -p1 | |
507 | %patch11 -p1 | |
508 | %patch12 -p1 | |
e140e412 | 509 | %patch13 -p1 |
f22fdf33 | 510 | %patch14 -p1 |
f2227d5a | 511 | %patch15 -p1 |
ef89fb87 | 512 | %patch16 -p1 |
aede9ad7 | 513 | %patch17 -p1 |
fd2b4d8b ER |
514 | %patch18 -p1 |
515 | %patch19 -p1 | |
adfe9493 | 516 | %patch20 -p1 |
fd2b4d8b ER |
517 | %patch21 -p1 |
518 | %patch22 -p1 | |
adfe9493 | 519 | %patch23 -p1 |
2644efb8 ER |
520 | %patch24 -p1 |
521 | %patch25 -p1 | |
522 | %patch26 -p1 | |
523 | %patch27 -p1 | |
524 | %patch28 -p1 | |
525 | %patch29 -p1 | |
526 | %ifarch alpha | |
527 | %patch30 -p1 | |
890f8bfd | 528 | %endif |
f8f6f421 | 529 | %{?with_xtrabackup:%patch31 -p1} |
529deea8 | 530 | %patch32 -p1 |
13ce82d8 | 531 | |
532 | %build | |
533 | %{__libtoolize} | |
534 | %{__aclocal} | |
535 | %{__automake} | |
536 | %{__autoconf} | |
537 | ||
538 | # The compiler flags are as per their "official" spec ;) | |
539 | CXXFLAGS="%{rpmcflags} -felide-constructors -fno-rtti -fno-exceptions %{!?debug:-fomit-frame-pointer}" | |
540 | CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}" | |
541 | ||
542 | # NOTE: the PS, FIND_PROC, KILL, CHECK_PID are not used by PLD Linux | |
543 | # and therefore do not add BR on these. These are here just to satisfy | |
544 | # configure. | |
545 | ||
546 | %configure \ | |
547 | PS='/bin/ps' \ | |
548 | FIND_PROC='/bin/ps p $$PID' \ | |
549 | KILL='/bin/kill' \ | |
550 | CHECK_PID='/bin/kill -0 $$PID' \ | |
551 | --enable-assembler \ | |
552 | --enable-largefile=yes \ | |
553 | --enable-shared \ | |
554 | --enable-static \ | |
555 | --enable-thread-safe-client \ | |
556 | --with%{!?with_bdb:out}-berkeley-db \ | |
557 | --with%{!?with_innodb:out}-innodb \ | |
558 | --with%{!?with_raid:out}-raid \ | |
559 | --with%{!?with_ssl:out}-openssl \ | |
560 | --with%{!?with_tcpd:out}-libwrap \ | |
561 | %{?with_big_tables:--with-big-tables} \ | |
562 | --with-comment="PLD Linux Distribution MySQL RPM" \ | |
563 | --with%{!?debug:out}-debug \ | |
564 | --with%{!?debug:out}-ndb-debug \ | |
565 | --with-embedded-server \ | |
566 | --with-extra-charsets=all \ | |
567 | --with-low-memory \ | |
568 | --with-mysqld-user=mysql \ | |
569 | --with-named-curses-libs="-lncurses" \ | |
570 | --with-named-thread-libs="-lpthread" \ | |
571 | --with-unix-socket-path=/var/lib/mysql/mysql.sock \ | |
572 | --with-archive-storage-engine \ | |
a78a22c1 | 573 | %{?with_sphinx:--with-sphinx-storage-engine} \ |
f3b912d8 | 574 | %{?with_federated:--with-federated-storage-engine} \ |
13ce82d8 | 575 | --with-vio \ |
576 | --with-ndbcluster \ | |
577 | --without-readline \ | |
578 | --without-libedit \ | |
579 | --without-docs | |
580 | # --with-mysqlfs | |
581 | # --with-ndb-test --with-ndb-docs | |
582 | ||
583 | # NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file | |
584 | # (it defaults to first cluster but user may change it to whatever | |
585 | # cluster it wants) | |
586 | ||
587 | echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile | |
588 | ||
589 | %{__make} \ | |
590 | benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench | |
591 | ||
f8f6f421 ER |
592 | %if %{with xtrabackup} |
593 | %{__make} -C innobase/xtrabackup \ | |
594 | CC="%{__cc}" | |
595 | %endif | |
596 | ||
13ce82d8 | 597 | %{__make} -C Docs mysql.info |
598 | ||
599 | %install | |
600 | rm -rf $RPM_BUILD_ROOT | |
a8c2b192 | 601 | install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,ssl/certs/mysql} \ |
37400e9a | 602 | $RPM_BUILD_ROOT/var/{log/{archive,}/mysql,lib/mysql} \ |
13ce82d8 | 603 | $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}} |
604 | ||
605 | %if %{with bdb} | |
606 | install -d $RPM_BUILD_ROOT/var/lib/mysql/bdb/{log,tmp} | |
607 | %endif | |
608 | ||
609 | # Make install | |
610 | %{__make} install \ | |
611 | DESTDIR=$RPM_BUILD_ROOT \ | |
612 | benchdir=%{_datadir}/sql-bench \ | |
613 | libsdir=/tmp | |
614 | # libsdir is to avoid installing innodb static libs in $RPM_BUILD_ROOT../libs | |
615 | ||
616 | install Docs/mysql.info $RPM_BUILD_ROOT%{_infodir} | |
617 | ||
618 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql | |
619 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql | |
620 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql | |
621 | # This is template for configuration file which is created after 'service mysql init' | |
622 | install %{SOURCE4} mysqld.conf | |
623 | install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/clusters.conf | |
624 | touch $RPM_BUILD_ROOT/var/log/mysql/{err,log,update} | |
625 | ||
626 | # remove innodb directives from mysqld.conf if mysqld is configured without | |
37400e9a | 627 | %if %{without innodb} |
13ce82d8 | 628 | cp mysqld.conf mysqld.tmp |
629 | awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf | |
630 | %endif | |
631 | ||
632 | # remove berkeley-db directives from mysqld.conf if mysqld is configured without | |
37400e9a | 633 | %if %{without bdb} |
13ce82d8 | 634 | cp mysqld.conf mysqld.tmp |
635 | awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf | |
636 | %endif | |
637 | ||
638 | install mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf | |
37400e9a | 639 | cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/mysql-client.conf |
13ce82d8 | 640 | |
641 | # NDB | |
642 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb | |
643 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb | |
644 | install %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm | |
645 | install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm | |
646 | install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc | |
647 | install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc | |
13ce82d8 | 648 | |
649 | mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir} | |
650 | sed -i -e 's,%{_libdir}/mysql,%{_libdir},' $RPM_BUILD_ROOT{%{_libdir}/libmysqlclient{,_r}.la,%{_bindir}/mysql_config} | |
37400e9a | 651 | sed -i -e '/libs/s/$ldflags//' $RPM_BUILD_ROOT%{_bindir}/mysql_config |
13ce82d8 | 652 | |
653 | # remove known unpackaged files | |
654 | rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test | |
655 | ||
37400e9a ER |
656 | # remove .txt variants for .sys messages |
657 | rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt | |
658 | ||
13ce82d8 | 659 | # rename not to be so generic name |
13ce82d8 | 660 | mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump |
448811bf | 661 | mv $RPM_BUILD_ROOT%{_mandir}/man1/{,mysql_}resolve_stack_dump.1 |
13ce82d8 | 662 | |
663 | # not useful without -debug build | |
664 | %{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump} | |
448811bf | 665 | %{!?debug:rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mysql_resolve_stack_dump.1} |
13ce82d8 | 666 | # generate symbols file, so one can generate backtrace using it |
667 | # mysql_resolve_stack_dump -s %{_datadir}/mysql/mysqld.sym -n mysqld.stack. | |
668 | # http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html | |
669 | %{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.sym} | |
670 | ||
37400e9a ER |
671 | # do not clobber users $PATH |
672 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_upgrade | |
673 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/innochecksum | |
674 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamchk | |
675 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisamlog | |
676 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/myisampack | |
677 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysql_fix_privilege_tables | |
678 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/my_print_defaults | |
679 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/mysqlcheck | |
680 | ||
681 | # functionality in initscript / rpm | |
13ce82d8 | 682 | rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db |
37400e9a | 683 | rm $RPM_BUILD_ROOT%{_bindir}/mysql_upgrade_shell |
13ce82d8 | 684 | rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe |
685 | rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi | |
686 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}* | |
687 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate | |
688 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server | |
689 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure | |
690 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt | |
691 | rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid | |
692 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server* | |
693 | rm $RPM_BUILD_ROOT%{_mandir}/man1/safe_mysqld* | |
694 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1* | |
37400e9a ER |
695 | rm $RPM_BUILD_ROOT%{_bindir}/resolveip |
696 | rm $RPM_BUILD_ROOT%{_mandir}/man1/resolveip.1* | |
a78a22c1 | 697 | rm $RPM_BUILD_ROOT%{_mandir}/man1/make_win_bin_dist.1 |
37400e9a ER |
698 | rm $RPM_BUILD_ROOT%{_bindir}/comp_err |
699 | rm $RPM_BUILD_ROOT%{_mandir}/man1/comp_err.1 | |
a78a22c1 | 700 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_install_db.1 |
2cc8e9c5 | 701 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_waitpid.1 |
448811bf | 702 | rm $RPM_BUILD_ROOT%{_mandir}/man1/make_win_src_distribution.1 |
e32f1a7b | 703 | rm $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld_multi.server |
448811bf ER |
704 | |
705 | # no package for tests | |
706 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-stress-test.pl.1 | |
707 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql-test-run.pl.1 | |
708 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql_client_test_embedded.1 | |
37400e9a ER |
709 | # orphaned manuals |
710 | rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_backup_file.1 | |
711 | rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_schema_file.1 | |
712 | rm $RPM_BUILD_ROOT%{_mandir}/man1/ndb_print_sys_file.1 | |
37400e9a | 713 | rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqltest_embedded.1 |
13ce82d8 | 714 | |
715 | # in %doc | |
716 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf} | |
717 | ||
718 | %clean | |
719 | rm -rf $RPM_BUILD_ROOT | |
720 | ||
721 | %pre | |
722 | %groupadd -g 89 mysql | |
723 | %useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql | |
724 | ||
725 | %post | |
726 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
727 | /sbin/chkconfig --add mysql | |
728 | %service mysql restart | |
729 | ||
730 | %preun | |
731 | if [ "$1" = "0" ]; then | |
732 | %service -q mysql stop | |
733 | /sbin/chkconfig --del mysql | |
734 | fi | |
735 | ||
736 | %postun | |
737 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
738 | if [ "$1" = "0" ]; then | |
739 | %userremove mysql | |
740 | %groupremove mysql | |
741 | fi | |
742 | ||
743 | %post ndb | |
744 | /sbin/chkconfig --add mysql-ndb | |
745 | %service mysql-ndb restart "mysql NDB engine" | |
746 | ||
747 | %preun ndb | |
748 | if [ "$1" = "0" ]; then | |
749 | %service mysql-ndb stop | |
750 | /sbin/chkconfig --del mysql-ndb | |
751 | fi | |
752 | ||
753 | %post ndb-mgm | |
754 | /sbin/chkconfig --add mysql-ndb-mgm | |
755 | %service mysql-ndb-mgm restart "mysql NDB management node" | |
756 | ||
757 | %preun ndb-mgm | |
758 | if [ "$1" = "0" ]; then | |
759 | %service mysql-ndb-mgm stop | |
760 | /sbin/chkconfig --del mysql-ndb-mgm | |
761 | fi | |
762 | ||
763 | %post ndb-cpc | |
764 | /sbin/chkconfig --add mysql-ndb-cpc | |
765 | %service mysql-ndb-cpc restart "mysql NDB CPC" | |
766 | ||
767 | %preun ndb-cpc | |
768 | if [ "$1" = "0" ]; then | |
769 | %service mysql-ndb-cpc stop | |
770 | /sbin/chkconfig --del mysql-ndb-cpc | |
771 | fi | |
772 | ||
773 | %post libs -p /sbin/ldconfig | |
774 | %postun libs -p /sbin/ldconfig | |
775 | ||
885918e3 | 776 | %triggerpostun -- mysql < 4.0.20-2.4 |
13ce82d8 | 777 | # For clusters in /etc/mysql/clusters.conf |
885918e3 | 778 | if [ -f /etc/sysconfig/mysql ]; then |
13ce82d8 | 779 | . /etc/sysconfig/mysql |
780 | if [ -n "$MYSQL_DB_CLUSTERS" ]; then | |
781 | for i in "$MYSQL_DB_CLUSTERS"; do | |
782 | echo "$i/mysqld.conf=$i" >> /etc/mysql/clusters.conf | |
783 | done | |
784 | echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql | |
785 | echo "# USE /etc/mysql/clusters.conf instead" >> /etc/sysconfig/mysql | |
786 | echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/mysql/clusters.conf." | |
787 | echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/mysql/clusters.conf." | |
788 | fi | |
789 | fi | |
790 | ||
885918e3 | 791 | %triggerpostun -- mysql < 4.1.1 |
13ce82d8 | 792 | # For better compatibility with prevoius versions: |
793 | for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/mysql/clusters.conf); do | |
794 | if echo "$config" | grep -q '^/'; then | |
795 | config_file="$config" | |
796 | elif [ -f "/etc/mysql/$config" ]; then | |
797 | config_file=/etc/mysql/$config | |
798 | else | |
799 | clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/mysql/clusters.conf) | |
800 | if [ -z "$clusterdir" ]; then | |
801 | echo >&2 "Can't find cluster dir for $config!" | |
802 | echo >&2 "Please remove extra (leading) spaces from /etc/mysql/clusters.conf" | |
803 | exit 1 | |
804 | fi | |
805 | config_file="$clusterdir/mysqld.conf" | |
806 | fi | |
807 | ||
808 | if [ ! -f "$config_file" ]; then | |
809 | echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/" | |
810 | exit 1 | |
811 | fi | |
812 | echo "Adding option old-passwords to config: $config_file" | |
813 | echo "If you want to use new, better passwords - remove it" | |
814 | ||
815 | # sed magic to add 'old-passwords' to [mysqld] section | |
816 | sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{ | |
817 | a | |
818 | a; Compatibility options: | |
819 | aold-passwords | |
820 | } | |
821 | ' $config_file | |
822 | done | |
823 | ||
824 | %banner -e %{name}-4.1.x <<-EOF | |
825 | If you want to use new help tables in MySQL 4.1.x then You'll need to import the help data: | |
826 | mysql -u mysql mysql < %{_datadir}/%{name}/fill_help_tables.sql | |
827 | EOF | |
828 | #' | |
829 | ||
830 | %files | |
831 | %defattr(644,root,root,755) | |
d5eb4b14 | 832 | %doc support-files/*.cnf support-files/*.ini ChangeLog |
13ce82d8 | 833 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/mysql |
834 | %attr(754,root,root) /etc/rc.d/init.d/mysql | |
835 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql | |
a8c2b192 | 836 | %dir /etc/ssl/certs/mysql |
13ce82d8 | 837 | %attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/clusters.conf |
37400e9a ER |
838 | %attr(755,root,root) %{_sbindir}/innochecksum |
839 | %attr(755,root,root) %{_sbindir}/my_print_defaults | |
840 | %attr(755,root,root) %{_sbindir}/myisamchk | |
841 | %attr(755,root,root) %{_sbindir}/myisamlog | |
842 | %attr(755,root,root) %{_sbindir}/myisampack | |
843 | %attr(755,root,root) %{_sbindir}/mysql_fix_privilege_tables | |
844 | %attr(755,root,root) %{_sbindir}/mysql_upgrade | |
845 | %attr(755,root,root) %{_sbindir}/mysqlcheck | |
13ce82d8 | 846 | %attr(755,root,root) %{_sbindir}/mysqld |
37400e9a | 847 | %{_mandir}/man1/innochecksum.1* |
540a650f | 848 | %{_mandir}/man1/my_print_defaults.1* |
13ce82d8 | 849 | %{_mandir}/man1/myisamchk.1* |
850 | %{_mandir}/man1/myisamlog.1* | |
851 | %{_mandir}/man1/myisampack.1* | |
37400e9a | 852 | %{_mandir}/man1/mysql_fix_privilege_tables.1* |
13ce82d8 | 853 | %{_mandir}/man1/mysql_upgrade.1* |
37400e9a | 854 | %{_mandir}/man1/mysqlcheck.1* |
13ce82d8 | 855 | %{_mandir}/man8/mysqld.8* |
856 | ||
a397d2f1 ER |
857 | %if %{?debug:1}0 |
858 | %attr(755,root,root) %{_bindir}/*resolve_stack_dump | |
859 | %{_datadir}/mysql/mysqld.sym | |
860 | %{_mandir}/man1/*resolve_stack_dump.1* | |
861 | %endif | |
862 | ||
13ce82d8 | 863 | %attr(700,mysql,mysql) %{_mysqlhome} |
37400e9a | 864 | # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole |
13ce82d8 | 865 | %attr(751,root,root) /var/lib/mysql |
866 | %attr(750,mysql,mysql) %dir /var/log/mysql | |
37400e9a | 867 | %attr(750,mysql,mysql) %dir /var/log/archive/mysql |
13ce82d8 | 868 | %attr(640,mysql,mysql) %ghost /var/log/mysql/* |
869 | ||
870 | %{_infodir}/mysql.info* | |
871 | # This is template for configuration file which is created after 'service mysql init' | |
872 | %{_datadir}/mysql/mysqld.conf | |
448811bf ER |
873 | %{_datadir}/mysql/mysql_system_tables.sql |
874 | %{_datadir}/mysql/mysql_system_tables_data.sql | |
875 | %{_datadir}/mysql/mysql_test_data_timezone.sql | |
876 | ||
877 | %{_datadir}/mysql/english | |
37400e9a ER |
878 | %{_datadir}/mysql/fill_help_tables.sql |
879 | %{_datadir}/mysql/mysql_fix_privilege_tables.sql | |
13ce82d8 | 880 | %lang(cs) %{_datadir}/mysql/czech |
881 | %lang(da) %{_datadir}/mysql/danish | |
882 | %lang(de) %{_datadir}/mysql/german | |
883 | %lang(el) %{_datadir}/mysql/greek | |
884 | %lang(es) %{_datadir}/mysql/spanish | |
885 | %lang(et) %{_datadir}/mysql/estonian | |
886 | %lang(fr) %{_datadir}/mysql/french | |
887 | %lang(hu) %{_datadir}/mysql/hungarian | |
888 | %lang(it) %{_datadir}/mysql/italian | |
889 | %lang(ja) %{_datadir}/mysql/japanese | |
890 | %lang(ko) %{_datadir}/mysql/korean | |
891 | %lang(nl) %{_datadir}/mysql/dutch | |
892 | %lang(nb) %{_datadir}/mysql/norwegian | |
893 | %lang(nn) %{_datadir}/mysql/norwegian-ny | |
894 | %lang(pl) %{_datadir}/mysql/polish | |
895 | %lang(pt) %{_datadir}/mysql/portuguese | |
896 | %lang(ro) %{_datadir}/mysql/romanian | |
897 | %lang(ru) %{_datadir}/mysql/russian | |
898 | %lang(sr) %{_datadir}/mysql/serbian | |
899 | %lang(sk) %{_datadir}/mysql/slovak | |
900 | %lang(sv) %{_datadir}/mysql/swedish | |
901 | %lang(uk) %{_datadir}/mysql/ukrainian | |
902 | ||
903 | %files charsets | |
904 | %defattr(644,root,root,755) | |
905 | %dir %{_datadir}/mysql | |
906 | %{_datadir}/mysql/charsets | |
907 | ||
908 | %files extras | |
909 | %defattr(644,root,root,755) | |
910 | %attr(755,root,root) %{_bindir}/msql2mysql | |
911 | %attr(755,root,root) %{_bindir}/myisam_ftdump | |
912 | %attr(755,root,root) %{_bindir}/mysql_secure_installation | |
913 | %attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql | |
13ce82d8 | 914 | %attr(755,root,root) %{_bindir}/perror |
915 | %attr(755,root,root) %{_bindir}/replace | |
13ce82d8 | 916 | %{_mandir}/man1/msql2mysql.1* |
917 | %{_mandir}/man1/myisam_ftdump.1* | |
448811bf | 918 | %{_mandir}/man1/mysql_secure_installation.1* |
540a650f | 919 | %{_mandir}/man1/mysql_tzinfo_to_sql.1* |
13ce82d8 | 920 | %{_mandir}/man1/perror.1* |
921 | %{_mandir}/man1/replace.1* | |
922 | ||
4ea87158 ER |
923 | %files -n mysqlhotcopy |
924 | %defattr(644,root,root,755) | |
925 | %attr(755,root,root) %{_bindir}/mysqlhotcopy | |
926 | %{_mandir}/man1/mysqlhotcopy.1* | |
927 | ||
13ce82d8 | 928 | %files extras-perl |
929 | %defattr(644,root,root,755) | |
930 | %attr(755,root,root) %{_bindir}/mysql_convert_table_format | |
931 | %attr(755,root,root) %{_bindir}/mysql_explain_log | |
932 | %attr(755,root,root) %{_bindir}/mysql_find_rows | |
933 | %attr(755,root,root) %{_bindir}/mysql_fix_extensions | |
934 | %attr(755,root,root) %{_bindir}/mysql_setpermission | |
935 | %attr(755,root,root) %{_bindir}/mysql_tableinfo | |
936 | %attr(755,root,root) %{_bindir}/mysql_zap | |
937 | %attr(755,root,root) %{_bindir}/mysqlaccess | |
938 | %attr(755,root,root) %{_bindir}/mysqldumpslow | |
37400e9a | 939 | %{_mandir}/man1/mysql_convert_table_format.1* |
13ce82d8 | 940 | %{_mandir}/man1/mysql_explain_log.1* |
37400e9a ER |
941 | %{_mandir}/man1/mysql_find_rows.1* |
942 | %{_mandir}/man1/mysql_fix_extensions.1* | |
943 | %{_mandir}/man1/mysql_setpermission.1* | |
944 | %{_mandir}/man1/mysql_tableinfo.1* | |
13ce82d8 | 945 | %{_mandir}/man1/mysql_zap.1* |
946 | %{_mandir}/man1/mysqlaccess.1* | |
309acf82 | 947 | %{_mandir}/man1/mysqldumpslow.1* |
13ce82d8 | 948 | |
949 | %files client | |
950 | %defattr(644,root,root,755) | |
951 | %attr(755,root,root) %{_bindir}/mysql | |
37400e9a ER |
952 | %attr(755,root,root) %{_bindir}/mysqladmin |
953 | %attr(755,root,root) %{_bindir}/mysqlbinlog | |
13ce82d8 | 954 | %attr(755,root,root) %{_bindir}/mysqlbug |
955 | %attr(755,root,root) %{_bindir}/mysqldump | |
956 | %attr(755,root,root) %{_bindir}/mysqlimport | |
13ce82d8 | 957 | %attr(755,root,root) %{_bindir}/mysqlshow |
37400e9a | 958 | %attr(755,root,root) %{_sbindir}/mysqlmanager |
13ce82d8 | 959 | %{_mandir}/man1/mysql.1* |
960 | %{_mandir}/man1/mysqladmin.1* | |
13ce82d8 | 961 | %{_mandir}/man1/mysqlbinlog.1* |
37400e9a ER |
962 | %{_mandir}/man1/mysqlbug.1* |
963 | %{_mandir}/man1/mysqldump.1* | |
13ce82d8 | 964 | %{_mandir}/man1/mysqlimport.1* |
37400e9a | 965 | %{_mandir}/man1/mysqlshow.1* |
13ce82d8 | 966 | %{_mandir}/man8/mysqlmanager.8* |
967 | ||
968 | %files libs | |
969 | %defattr(644,root,root,755) | |
970 | %doc EXCEPTIONS-CLIENT | |
37400e9a ER |
971 | %attr(751,root,root) %dir %{_sysconfdir}/mysql |
972 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/mysql-client.conf | |
e32f1a7b | 973 | %attr(755,root,root) %{_libdir}/libmysqlclient.so.*.* |
e32f1a7b | 974 | %attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.15 |
37400e9a | 975 | %attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.* |
e32f1a7b | 976 | %attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.15 |
37400e9a | 977 | %attr(755,root,root) %{_libdir}/libndbclient.so.*.* |
e32f1a7b | 978 | %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.2 |
13ce82d8 | 979 | |
980 | %files devel | |
981 | %defattr(644,root,root,755) | |
982 | %attr(755,root,root) %{_bindir}/mysql_config | |
37400e9a ER |
983 | %attr(755,root,root) %{_libdir}/libmysqlclient.so |
984 | %attr(755,root,root) %{_libdir}/libmysqlclient_r.so | |
985 | %attr(755,root,root) %{_libdir}/libndbclient.so | |
986 | %{_libdir}/libmysqlclient.la | |
987 | %{_libdir}/libmysqlclient_r.la | |
988 | %{_libdir}/libndbclient.la | |
989 | # static-only | |
990 | %{_libdir}/libdbug.a | |
991 | %{_libdir}/libheap.a | |
992 | %{_libdir}/libmyisam.a | |
993 | %{_libdir}/libmyisammrg.a | |
994 | %{_libdir}/libmysqld.a | |
995 | %{_libdir}/libmystrings.a | |
996 | %{_libdir}/libmysys.a | |
997 | %{_libdir}/libvio.a | |
13ce82d8 | 998 | %{_includedir}/mysql |
999 | %{_mandir}/man1/mysql_config.1* | |
1000 | ||
1001 | %files static | |
1002 | %defattr(644,root,root,755) | |
37400e9a ER |
1003 | %{_libdir}/libmysqlclient.a |
1004 | %{_libdir}/libmysqlclient_r.a | |
1005 | %{_libdir}/libndbclient.a | |
13ce82d8 | 1006 | |
1007 | %files bench | |
1008 | %defattr(644,root,root,755) | |
13ce82d8 | 1009 | %attr(755,root,root) %{_bindir}/mysql_client_test |
e32f1a7b ER |
1010 | %attr(755,root,root) %{_bindir}/mysqltest |
1011 | %attr(755,root,root) %{_bindir}/mysqltestmanager | |
1012 | %attr(755,root,root) %{_bindir}/mysqltestmanager-pwgen | |
1013 | %attr(755,root,root) %{_bindir}/mysqltestmanagerc | |
13ce82d8 | 1014 | %dir %{_datadir}/sql-bench |
1015 | %{_datadir}/sql-bench/[CDRl]* | |
1016 | %attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]* | |
1017 | # wrong dir? | |
1018 | %{_datadir}/mysql/mi_test_all.res | |
1019 | %attr(755,root,root) %{_datadir}/mysql/mi_test_all | |
2cc8e9c5 | 1020 | %{_mandir}/man1/mysql_client_test.1* |
37400e9a | 1021 | %{_mandir}/man1/mysqltest.1* |
13ce82d8 | 1022 | |
1023 | #%files doc | |
1024 | #%defattr(644,root,root,755) | |
1025 | #%doc Docs/manual.html Docs/manual_toc.html | |
1026 | ||
1027 | %files ndb | |
1028 | %defattr(644,root,root,755) | |
1029 | %attr(755,root,root) %{_sbindir}/ndbd | |
1030 | %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb | |
1031 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb | |
8ecd9b33 | 1032 | %{_mandir}/man8/ndbd.8* |
13ce82d8 | 1033 | |
1034 | %files ndb-client | |
1035 | %defattr(644,root,root,755) | |
37400e9a ER |
1036 | %attr(755,root,root) %{_bindir}/ndb_config |
1037 | %attr(755,root,root) %{_bindir}/ndb_delete_all | |
1038 | %attr(755,root,root) %{_bindir}/ndb_desc | |
1039 | %attr(755,root,root) %{_bindir}/ndb_drop_index | |
1040 | %attr(755,root,root) %{_bindir}/ndb_drop_table | |
1041 | %attr(755,root,root) %{_bindir}/ndb_error_reporter | |
1042 | %attr(755,root,root) %{_bindir}/ndb_mgm | |
1043 | %attr(755,root,root) %{_bindir}/ndb_restore | |
1044 | %attr(755,root,root) %{_bindir}/ndb_select_all | |
1045 | %attr(755,root,root) %{_bindir}/ndb_select_count | |
1046 | %attr(755,root,root) %{_bindir}/ndb_show_tables | |
1047 | %attr(755,root,root) %{_bindir}/ndb_size.pl | |
1048 | %attr(755,root,root) %{_bindir}/ndb_test_platform | |
1049 | %attr(755,root,root) %{_bindir}/ndb_waiter | |
13ce82d8 | 1050 | %attr(755,root,root) %{_datadir}/mysql/ndb_size.tmpl |
37400e9a ER |
1051 | %{_mandir}/man1/ndb_config.1* |
1052 | %{_mandir}/man1/ndb_delete_all.1* | |
1053 | %{_mandir}/man1/ndb_desc.1* | |
1054 | %{_mandir}/man1/ndb_drop_index.1* | |
1055 | %{_mandir}/man1/ndb_drop_table.1* | |
1056 | %{_mandir}/man1/ndb_error_reporter.1* | |
1057 | %{_mandir}/man1/ndb_mgm.1* | |
1058 | %{_mandir}/man1/ndb_restore.1* | |
1059 | %{_mandir}/man1/ndb_select_all.1* | |
1060 | %{_mandir}/man1/ndb_select_count.1* | |
1061 | %{_mandir}/man1/ndb_show_tables.1* | |
1062 | %{_mandir}/man1/ndb_size.pl.1* | |
1063 | %{_mandir}/man1/ndb_waiter.1* | |
13ce82d8 | 1064 | |
1065 | %files ndb-mgm | |
1066 | %defattr(644,root,root,755) | |
1067 | %attr(755,root,root) %{_sbindir}/ndb_mgmd | |
1068 | %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm | |
1069 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm | |
8ecd9b33 | 1070 | %{_mandir}/man8/ndb_mgmd.8* |
13ce82d8 | 1071 | |
1072 | %files ndb-cpc | |
1073 | %defattr(644,root,root,755) | |
1074 | %attr(755,root,root) %{_sbindir}/ndb_cpcd | |
1075 | %attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc | |
1076 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc | |
fae2e159 | 1077 | %{_mandir}/man1/ndb_cpcd.1* |