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