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