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