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