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