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