source: projects/specs/trunk/M/MySQL/MySQL-vl.spec @ 521

Revision 521, 37.3 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1%define mysqld_user             mysql
2%define mysqld_group            mysql
3%define server_suffix -community
4%define mysqldatadir /var/lib/mysql
5
6%{?_with_static:%define STATIC_BUILD 1}
7%{!?_with_static:%define STATIC_BUILD 0}
8
9# Working around perl dependency problem
10%define __find_requires %{SOURCE999}
11
12# We don't package all files installed into the build root by intention -
13# See BUG#998 for details.
14%define _unpackaged_files_terminate_build 0
15
16%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
17
18%define mysql_version           5.1.41
19%define client_version          16
20
21%if %{?_dist_release}!="vl5"
22%define libpkgname libmysqlclient%{client_version}
23%else
24%define libpkgname MySQL-shared
25%endif
26
27Packager:       tomop
28Name: MySQL
29Summary:        MySQL: a very fast and reliable SQL database server
30Group:          Applications/Databases
31Version:        %{mysql_version}
32Release:        1%{_dist_release}
33License:        GPL
34Source:         mysql-%{version}.tar.gz
35# Don't depend on lib::mtr*
36Source999:      filter-requires-%{name}.sh
37Patch0:         mysql-5.1.34-jp-all.patch
38URL:            http://www.mysql.com/
39Requires:       fileutils sh-utils
40Provides:       msqlormysql MySQL-server mysql
41Obsoletes:      mysql MySQL5
42BuildRequires:  perl, readline-devel
43BuildRequires:  gcc-c++, ncurses-devel, zlib-devel
44BuildRequires:  groff, libtool, automake
45BuildRoot:      %{_tmppath}/%{name}-%{version}-root
46
47# From the manual
48%description
49The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
50and robust SQL (Structured Query Language) database server. MySQL Server
51is intended for mission-critical, heavy-load production systems as well
52as for embedding into mass-deployed software. MySQL is a trademark of
53Sun Microsystems, Inc.
54
55Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc.  All rights reserved.
56Use is subject to license terms.
57
58This software comes with ABSOLUTELY NO WARRANTY. This is free software,
59and you are welcome to modify and redistribute it under the GPL license.
60
61The MySQL web site (http://www.mysql.com/) provides the latest
62news and information about the MySQL software. Also please see the
63documentation and the manual for more information.
64
65%package server
66Release: %{release}
67Summary:        MySQL: a very fast and reliable SQL database server
68Group:          Applications/Databases
69Requires:       fileutils sh-utils net-tools
70Provides:       msqlormysql mysql-server mysql MySQL MySQL5-server
71Obsoletes:      MySQL mysql mysql-server MySQL5-server MySQL-Max
72
73%description server
74The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
75and robust SQL (Structured Query Language) database server. MySQL Server
76is intended for mission-critical, heavy-load production systems as well
77as for embedding into mass-deployed software. MySQL is a trademark of
78Sun Microsystems, Inc.
79
80Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc.  All rights reserved.
81Use is subject to license terms.
82
83This software comes with ABSOLUTELY NO WARRANTY. This is free software,
84and you are welcome to modify and redistribute it under the GPL license.
85
86The MySQL web site (http://www.mysql.com/) provides the latest
87news and information about the MySQL software. Also please see the
88documentation and the manual for more information.
89
90This package includes the MySQL server binary (incl. InnoDB) as well
91as related utilities to run and administrate a MySQL server.
92
93If you want to access and work with the database, you have to install
94package "MySQL-client" as well!
95
96%package client
97Summary: MySQL - Client
98Group: Applications/Databases
99Obsoletes: mysql-client MySQL5-client
100Provides: mysql-client MySQL5-client
101
102%description client
103This package contains the standard MySQL clients and administration tools.
104
105%{see_base}
106
107%package ndb-storage
108Summary:        MySQL - ndbcluster storage engine
109Group:          Applications/Databases
110
111%description ndb-storage
112This package contains the ndbcluster storage engine.
113It is necessary to have this package installed on all
114computers that should store ndbcluster table data.
115Note that this storage engine can only be used in conjunction
116with the MySQL Max server.
117
118%{see_base}
119
120%package ndb-management
121Summary:        MySQL - ndbcluster storage engine management
122Group:          Applications/Databases
123
124%description ndb-management
125This package contains ndbcluster storage engine management.
126It is necessary to have this package installed on at least
127one computer in the cluster.
128
129%{see_base}
130
131%package ndb-tools
132Summary:        MySQL - ndbcluster storage engine basic tools
133Group:          Applications/Databases
134
135%description ndb-tools
136This package contains ndbcluster storage engine basic tools.
137
138%{see_base}
139
140%package ndb-extra
141Summary:        MySQL - ndbcluster storage engine extra tools
142Group:          Applications/Databases
143
144%description ndb-extra
145This package contains some extra ndbcluster storage engine tools for the advanced user.
146They should be used with caution.
147
148%{see_base}
149
150%package test
151Requires: %{name}-client = %{version}-%{release} perl-DBI perl
152Summary: MySQL - Test suite
153Group: Applications/Databases
154Obsoletes: mysql-bench MySQL5-bench MySQL-bench
155
156%description test
157This package contains the MySQL regression test suite.
158
159%{see_base}
160
161
162%package devel
163Summary: MySQL - Development header files and libraries
164Group: Applications/Databases
165Requires: %{libpkgname} = %{version}-%{release}
166Provides: mysql-devel MySQL5-devel
167Obsoletes: mysql-devel MySQL5-devel
168
169%description devel
170This package contains the development header files and libraries
171necessary to develop MySQL client applications.
172
173%{see_base}
174
175%package -n %{libpkgname}
176Summary: MySQL - Shared libraries
177Group: Applications/Databases
178%if %{?_dist_release}!="vl5"
179Obsoletes: MySQL-shared < 5.1.41
180%endif
181
182%description -n %{libpkgname}
183This package contains the shared libraries (*.so*) which certain
184languages and applications need to dynamically load and use MySQL.
185
186
187#%package embedded
188#Requires: %{name}-devel = %{version}-%{release}
189#Summary: MySQL - embedded library
190#Group: Applications/Databases
191#Obsoletes: mysql-embedded MySQL5-embedded
192#Provides: mysql-embedded MySQL5-embedded
193
194#%description embedded
195#This package contains the MySQL server as an embedded library.
196
197#The embedded MySQL server library makes it possible to run a
198#full-featured MySQL server inside the client application.
199#The main benefits are increased speed and more simple management
200#for embedded applications.
201
202#The API is identical for the embedded MySQL version and the
203#client/server version.
204
205#%{see_base}
206
207%prep
208%setup -T -a 0 -c -n mysql-%{mysql_version}
209mv mysql-%{mysql_version} mysql-debug-%{mysql_version}
210
211pushd mysql-debug-%{mysql_version}
212%patch0 -p1 -b .jp
213aclocal
214autoheader
215libtoolize --automake --force
216automake --add-missing --copy
217autoconf
218popd
219
220%setup -D -T -a 0 -n mysql-%{mysql_version}
221mv mysql-%{mysql_version} mysql-release-%{mysql_version}
222
223pushd mysql-release-%{mysql_version}
224%patch0 -p1 -b .jp
225aclocal
226autoheader
227libtoolize --automake --force
228automake --add-missing --copy
229autoconf
230popd
231
232%build
233
234BuildMySQL() {
235# The --enable-assembler simply does nothing on systems that does not
236# support assembler speedups.
237sh -c  "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
238        CC=\"${CC:-$MYSQL_BUILD_CC}\" \
239        CXX=\"${CXX:-$MYSQL_BUILD_CXX}\" \
240        CFLAGS=\"$CFLAGS\" \
241        CXXFLAGS=\"$CXXFLAGS\" \
242        LDFLAGS=\"$MYSQL_BUILD_LDFLAGS\" \
243        ./configure \
244            $* \
245            --with-mysqld-ldflags='-static' \
246            --with-client-ldflags='-static' \
247            --with-zlib-dir=bundled \
248            --enable-assembler \
249            --enable-local-infile \
250            --with-fast-mutexes \
251            --with-mysqld-user=%{mysqld_user} \
252            --with-unix-socket-path=/var/lib/mysql/mysql.sock \
253            --with-pic \
254            --prefix=/ \
255            --with-extra-charsets=all \
256            --exec-prefix=%{_exec_prefix} \
257            --libexecdir=%{_sbindir} \
258            --libdir=%{_libdir} \
259            --sysconfdir=%{_sysconfdir} \
260            --datadir=%{_datadir} \
261            --localstatedir=%{mysqldatadir} \
262            --infodir=%{_infodir} \
263            --includedir=%{_includedir} \
264            --mandir=%{_mandir} \
265            --enable-thread-safe-client \
266            --with-readline \
267                --with-innodb \
268                --with-ndbcluster \
269                --with-archive-storage-engine \
270                --with-csv-storage-engine \
271                --with-blackhole-storage-engine \
272                --with-federated-storage-engine \
273                --with-partition \
274                --with-big-tables \
275                --enable-shared \
276                --with-comment=\"VineLinux MySQL RPM\" \
277                --with-charset=utf8 \
278                --with-client-charset=utf8 \
279                "
280 make %{?_smp_mflags}
281}
282# end of function definition "BuildMySQL"
283
284# Use the build root for temporary storage of the shared libraries.
285
286RBR=$RPM_BUILD_ROOT
287
288# Clean up the BuildRoot first
289[ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR;
290mkdir -p $RBR%{_libdir}/mysql
291
292#
293# Use MYSQL_BUILD_PATH so that we can use a dedicated version of gcc
294#
295PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
296export PATH
297
298# Build the Debug binary.
299
300# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
301# including exceptions into the code
302if [ -z "$CXX" -a -z "$CC" ]
303then
304        export CC="gcc"
305        export CXX="gcc"
306fi
307
308# Prepare compiler flags
309CFLAGS=${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS}
310CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti }
311
312##############################################################################
313#
314#  Build the debug version
315#
316##############################################################################
317
318(
319# We are in a subshell, so we can modify variables just for one run.
320CFLAGS=`echo   " $CFLAGS "   | \
321    sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
322        -e 's/^ //' -e 's/ $//'`
323CXXFLAGS=`echo " $CXXFLAGS " | \
324    sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
325        -e 's/^ //' -e 's/ $//'`
326
327# Add -g and --with-debug.
328cd mysql-debug-%{mysql_version} &&
329CFLAGS="$CFLAGS" \
330CXXFLAGS="$CXXFLAGS" \
331BuildMySQL --with-debug
332)
333
334# We might want to save the config log file
335if test -n "$MYSQL_DEBUGCONFLOG_DEST"
336then
337  cp -fp mysql-debug-%{mysql_version}/config.log "$MYSQL_DEBUGCONFLOG_DEST"
338fi
339
340#(cd mysql-debug-%{mysql_version} ; make test-bt-debug)
341
342##############################################################################
343#
344#  Build the release binary
345#
346##############################################################################
347
348(cd mysql-release-%{mysql_version} &&
349CFLAGS="$CFLAGS" \
350CXXFLAGS="$CXXFLAGS" \
351BuildMySQL --with-embedded-server
352)
353# We might want to save the config log file
354if test -n "$MYSQL_CONFLOG_DEST"
355then
356  cp -fp  mysql-release-%{mysql_version}/config.log "$MYSQL_CONFLOG_DEST"
357fi
358
359#(cd mysql-release-%{mysql_version} ; make test-bt)
360
361%install
362RBR=$RPM_BUILD_ROOT
363MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-release-%{mysql_version}
364
365rm -rf $RBR
366
367# Ensure that needed directories exists
368install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
369install -d $RBR%{mysqldatadir}/mysql
370install -d $RBR%{_datadir}/mysql-test
371install -d $RBR%{_includedir}
372install -d $RBR%{_libdir}
373install -d $RBR%{_mandir}
374install -d $RBR%{_sbindir}
375
376# Install all binaries
377(cd $MBD && make install DESTDIR=$RBR benchdir_root=%{_datadir})
378# Old packages put shared libs in %{_libdir}/ (not %{_libdir}/mysql), so do
379# the same here.
380#mv $RBR/%{_libdir}/mysql/*.so* $RBR/%{_libdir}/
381
382rm -rf $RBR/mysql-test
383
384##############################################################################
385# Include libgcc.a in the devel subpackage (BUG 4921)
386if [ -z "$CXX" -a -z "$CC" ]
387then
388        export CC="gcc"
389        export CXX="gcc"
390fi
391
392if expr "$CC" : ".*gcc.*" > /dev/null ;
393then
394  libgcc=`$CC $CFLAGS --print-libgcc-file`
395  if [ -f $libgcc ]
396  then
397    %define have_libgcc 1
398    install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
399  fi
400fi
401
402##############################################################################
403
404# install "mysqld-debug"
405$MBD/libtool --mode=execute install -m 755 \
406                 $RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/sql/mysqld \
407                 $RBR%{_sbindir}/mysqld-debug
408
409# install saved perror binary with NDB support (BUG#13740)
410install -m 755 $MBD/extra/perror $RBR%{_bindir}/perror
411
412# Install logrotate and autostart
413install -m 644 $MBD/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
414install -m 755 $MBD/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
415
416# in RPMs, it is unlikely that anybody should use "sql-bench"
417rm -fr $RBR%{_datadir}/sql-bench
418
419# Create a symlink "rcmysql", pointing to the init.script. SuSE users
420# will appreciate that, as all services usually offer this.
421ln -s %{_sysconfdir}/init.d/mysql $RPM_BUILD_ROOT%{_sbindir}/rcmysql
422
423# Touch the place where the my.cnf config file and mysqlmanager.passwd
424# (MySQL Instance Manager password file) might be located
425# Just to make sure it's in the file list and marked as a config file
426touch $RBR%{_sysconfdir}/my.cnf
427touch $RBR%{_sysconfdir}/mysqlmanager.passwd
428
429mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
430echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/libmysqlclient%{client_version}-%{_arch}.conf
431
432%pre server
433# Shut down a previously installed server first
434if test -x %{_sysconfdir}/init.d/mysql
435then
436  %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
437  echo "Giving mysqld a couple of seconds to exit nicely"
438  sleep 5
439elif test -x %{_sysconfdir}/rc.d/init.d/mysql
440then
441  %{_sysconfdir}/rc.d/init.d/mysql stop > /dev/null 2>&1
442  echo "Giving mysqld a couple of seconds to exit nicely"
443  sleep 5
444fi
445
446%post server
447mysql_datadir=%{mysqldatadir}
448
449# Create data directory if needed
450if test ! -d $mysql_datadir; then mkdir -m 755 $mysql_datadir; fi
451if test ! -d $mysql_datadir/mysql; then mkdir $mysql_datadir/mysql; fi
452if test ! -d $mysql_datadir/test; then mkdir $mysql_datadir/test; fi
453
454# Make MySQL start/shutdown automatically when the machine does it.
455# use insserv for older SuSE Linux versions
456if test -x /sbin/insserv
457then
458        /sbin/insserv %{_sysconfdir}/init.d/mysql
459# use chkconfig on Red Hat and newer SuSE releases
460elif test -x /sbin/chkconfig
461then
462        /sbin/chkconfig --add mysql
463fi
464
465# Create a MySQL user and group. Do not report any problems if it already
466# exists.
467groupadd -r %{mysqld_group} 2> /dev/null || true
468useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
469# The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
470usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
471
472# Change permissions so that the user that will run the MySQL daemon
473# owns all database files.
474chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
475
476# Initiate databases if needed
477%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
478
479# Upgrade databases if needed would go here - but it cannot be automated yet
480
481# Change permissions again to fix any new files.
482chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
483
484# Fix permissions for the permission database so that only the user
485# can read them.
486chmod -R og-rw $mysql_datadir/mysql
487
488# Restart in the same way that mysqld will be started normally.
489%{_sysconfdir}/init.d/mysql start
490
491# Allow mysqld_safe to start mysqld and print a message before we exit
492sleep 2
493
494#echo "Thank you for installing the MySQL Community Server! For Production
495#systems, we recommend MySQL Enterprise, which contains enterprise-ready
496#software, intelligent advisory services, and full production support with
497#scheduled service packs and more.  Visit www.mysql.com/enterprise for more
498#information."
499
500%post ndb-storage
501mysql_clusterdir=/var/lib/mysql-cluster
502
503# Create cluster directory if needed
504if test ! -d $mysql_clusterdir; then mkdir -m 755 $mysql_clusterdir; fi
505
506%preun server
507if test $1 = 0
508then
509  # Stop MySQL before uninstalling it
510  if test -x %{_sysconfdir}/init.d/mysql
511  then
512    %{_sysconfdir}/init.d/mysql stop > /dev/null
513
514    # Remove autostart of mysql
515    # for older SuSE Linux versions
516    if test -x /sbin/insserv
517    then
518      /sbin/insserv -r %{_sysconfdir}/init.d/mysql
519    # use chkconfig on Red Hat and newer SuSE releases
520    elif test -x /sbin/chkconfig
521    then
522      /sbin/chkconfig --del mysql
523    fi
524  fi
525fi
526
527# We do not remove the mysql user since it may still own a lot of
528# database files.
529
530# Clean up the BuildRoot
531%clean
532[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
533
534%files server
535%defattr(-,root,root,0755)
536
537%doc mysql-release-%{mysql_version}/COPYING mysql-release-%{mysql_version}/README
538%doc mysql-release-%{mysql_version}/support-files/my-*.cnf
539%doc mysql-release-%{mysql_version}/support-files/ndb-*.ini
540
541%doc %attr(644, root, root) %{_infodir}/mysql.info*
542
543%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
544%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
545%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
546%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
547%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
548%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
549%doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
550%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
551%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
552%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_privilege_tables.1*
553%doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
554%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
555%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
556%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
557%doc %attr(644, root, man) %{_mandir}/man8/mysqlmanager.8*
558%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
559%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
560%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
561%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
562%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
563%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
564%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
565
566%doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
567%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
568%doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
569%doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
570%doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
571%doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
572%doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
573
574%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
575%ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd
576
577%attr(755, root, root) %{_bindir}/innochecksum
578%attr(755, root, root) %{_bindir}/my_print_defaults
579%attr(755, root, root) %{_bindir}/myisam_ftdump
580%attr(755, root, root) %{_bindir}/myisamchk
581%attr(755, root, root) %{_bindir}/myisamlog
582%attr(755, root, root) %{_bindir}/myisampack
583%attr(755, root, root) %{_bindir}/mysql_convert_table_format
584%attr(755, root, root) %{_bindir}/mysql_fix_extensions
585%attr(755, root, root) %{_bindir}/mysql_fix_privilege_tables
586%attr(755, root, root) %{_bindir}/mysql_install_db
587%attr(755, root, root) %{_bindir}/mysql_secure_installation
588%attr(755, root, root) %{_bindir}/mysql_setpermission
589%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
590%attr(755, root, root) %{_bindir}/mysql_upgrade
591%attr(755, root, root) %{_bindir}/mysql_zap
592%attr(755, root, root) %{_bindir}/mysqlbug
593%attr(755, root, root) %{_bindir}/mysqld_multi
594%attr(755, root, root) %{_bindir}/mysqld_safe
595%attr(755, root, root) %{_bindir}/mysqldumpslow
596%attr(755, root, root) %{_bindir}/mysqlhotcopy
597%attr(755, root, root) %{_bindir}/mysqltest
598%attr(755, root, root) %{_bindir}/perror
599%attr(755, root, root) %{_bindir}/replace
600%attr(755, root, root) %{_bindir}/resolve_stack_dump
601%attr(755, root, root) %{_bindir}/resolveip
602
603%attr(755, root, root) %{_sbindir}/mysqld
604%attr(755, root, root) %{_sbindir}/mysqld-debug
605%attr(755, root, root) %{_sbindir}/mysqlmanager
606%attr(755, root, root) %{_sbindir}/rcmysql
607
608%dir %attr(755, root, root) %{_libdir}/mysql/plugin
609%attr(755, root, root) %{_libdir}/mysql/plugin/*.so*
610
611%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
612%attr(755, root, root) %{_sysconfdir}/init.d/mysql
613
614%attr(755, root, root) %{_datadir}/mysql/
615
616%files client
617%defattr(-, root, root, 0755)
618%attr(755, root, root) %{_bindir}/msql2mysql
619%attr(755, root, root) %{_bindir}/mysql
620%attr(755, root, root) %{_bindir}/mysql_find_rows
621%attr(755, root, root) %{_bindir}/mysql_waitpid
622%attr(755, root, root) %{_bindir}/mysqlaccess
623%attr(755, root, root) %{_bindir}/mysqladmin
624%attr(755, root, root) %{_bindir}/mysqlbinlog
625%attr(755, root, root) %{_bindir}/mysqlcheck
626%attr(755, root, root) %{_bindir}/mysqldump
627%attr(755, root, root) %{_bindir}/mysqlimport
628%attr(755, root, root) %{_bindir}/mysqlshow
629%attr(755, root, root) %{_bindir}/mysqlslap
630
631%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
632%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
633%doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
634%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
635%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
636%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
637%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
638%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
639%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
640%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
641%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
642
643%post -n %{libpkgname}
644/sbin/ldconfig
645
646%postun -n %{libpkgname}
647/sbin/ldconfig
648
649%files ndb-storage
650%defattr(-,root,root,0755)
651%attr(755, root, root) %{_sbindir}/ndbd
652%doc %attr(644, root, man) %{_mandir}/man8/ndbd.8*
653
654%files ndb-management
655%defattr(-,root,root,0755)
656%attr(755, root, root) %{_sbindir}/ndb_mgmd
657%doc %attr(644, root, man) %{_mandir}/man8/ndb_mgmd.8*
658
659%files ndb-tools
660%defattr(-,root,root,0755)
661%attr(755, root, root) %{_bindir}/ndb_config
662%attr(755, root, root) %{_bindir}/ndb_desc
663%attr(755, root, root) %{_bindir}/ndb_error_reporter
664%attr(755, root, root) %{_bindir}/ndb_mgm
665%attr(755, root, root) %{_bindir}/ndb_print_backup_file
666%attr(755, root, root) %{_bindir}/ndb_print_schema_file
667%attr(755, root, root) %{_bindir}/ndb_print_sys_file
668%attr(755, root, root) %{_bindir}/ndb_restore
669%attr(755, root, root) %{_bindir}/ndb_select_all
670%attr(755, root, root) %{_bindir}/ndb_select_count
671%attr(755, root, root) %{_bindir}/ndb_show_tables
672%attr(755, root, root) %{_bindir}/ndb_size.pl
673%attr(755, root, root) %{_bindir}/ndb_test_platform
674%attr(755, root, root) %{_bindir}/ndb_waiter
675%doc %attr(644, root, man) %{_mandir}/man1/ndb_config.1*
676%doc %attr(644, root, man) %{_mandir}/man1/ndb_desc.1*
677%doc %attr(644, root, man) %{_mandir}/man1/ndb_error_reporter.1*
678%doc %attr(644, root, man) %{_mandir}/man1/ndb_mgm.1*
679%doc %attr(644, root, man) %{_mandir}/man1/ndb_restore.1*
680%doc %attr(644, root, man) %{_mandir}/man1/ndb_print_backup_file.1*
681%doc %attr(644, root, man) %{_mandir}/man1/ndb_print_schema_file.1*
682%doc %attr(644, root, man) %{_mandir}/man1/ndb_print_sys_file.1*
683%doc %attr(644, root, man) %{_mandir}/man1/ndb_select_all.1*
684%doc %attr(644, root, man) %{_mandir}/man1/ndb_select_count.1*
685%doc %attr(644, root, man) %{_mandir}/man1/ndb_show_tables.1*
686%doc %attr(644, root, man) %{_mandir}/man1/ndb_size.pl.1*
687%doc %attr(644, root, man) %{_mandir}/man1/ndb_waiter.1*
688
689%files ndb-extra
690%defattr(-,root,root,0755)
691%attr(755, root, root) %{_bindir}/ndb_delete_all
692%attr(755, root, root) %{_bindir}/ndb_drop_index
693%attr(755, root, root) %{_bindir}/ndb_drop_table
694%attr(755, root, root) %{_sbindir}/ndb_cpcd
695%doc %attr(644, root, man) %{_mandir}/man1/ndb_delete_all.1*
696%doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_index.1*
697%doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_table.1*
698%doc %attr(644, root, man) %{_mandir}/man1/ndb_cpcd.1*
699
700%files devel
701%defattr(-, root, root, 0755)
702%doc mysql-release-%{mysql_version}/EXCEPTIONS-CLIENT
703%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
704%attr(755, root, root) %{_bindir}/mysql_config
705%dir %attr(755, root, root) %{_includedir}/mysql
706%dir %attr(755, root, root) %{_libdir}/mysql
707%{_includedir}/mysql/*
708%{_datadir}/aclocal/mysql.m4
709%{_libdir}/mysql/libmysql*.so
710%{_libdir}/mysql/libndb*.so
711
712#%{_libdir}/mysql/libdbug.a
713#%{_libdir}/mysql/libheap.a
714%if %{have_libgcc}
715%{_libdir}/mysql/libmygcc.a
716%endif
717#%{_libdir}/mysql/libmyisam.a
718#%{_libdir}/mysql/libmyisammrg.a
719#%{_libdir}/mysql/libmysqlclient.a
720#%{_libdir}/mysql/libmysqlclient_r.a
721#%{_libdir}/mysql/libmystrings.a
722#%{_libdir}/mysql/libmysys.a
723#%{_libdir}/mysql/libndbclient.a
724#%{_libdir}/mysql/libvio.a
725#%{_libdir}/mysql/libz.a
726
727%files -n %{libpkgname}
728%defattr(-, root, root, 0755)
729# Shared libraries (omit for architectures that don't support them)
730%{_libdir}/mysql/libmysql*.so.*
731%{_libdir}/mysql/libndb*.so.*
732/etc/ld.so.conf.d/*
733
734%files test
735%defattr(-, root, root, 0755)
736%attr(-, root, root) %{_datadir}/mysql-test
737%attr(755, root, root) %{_bindir}/mysql_client_test
738%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
739%attr(755, root, root) %{_bindir}/mysqltest_embedded
740%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
741%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
742%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
743%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
744%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
745
746#%files embedded
747#%defattr(-, root, root, 0755)
748#%attr(644, root, root) %{_libdir}/mysql/libmysqld.a
749
750%changelog
751* Fri Nov 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.41-1
752- new upstream release.
753
754* Thu Nov 19 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-2
755- added net-tools to 'Requires'.
756- added groff to 'BuildRequires'.
757- renamed subpackage 'MySQL-shared' to 'libmysqlclient16' (VineSeed only).
758
759* Tue Nov 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-1
760- new upstream release.
761
762* Sat Sep 26 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.39-1
763- new upstream release.
764
765* Sun Jul  5 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.36-1
766- new upstream release.
767- dropped %%Patch100 (fixed in upstream).
768
769* Sat Jun  6 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.35-1
770- new upstream release.
771- add %%Patch100 (no longer needed for MySQL-5.1.36 or later).
772
773* Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.34-1
774- new upstream release.
775- rename 'MySQL-bench' to 'MySQL-test'.
776- update Patch0.
777- change default charset to 'utf8'.
778
779* Sat Apr 12 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.51a-1
780- new upstream release.
781- update Patch0.
782- add "--with-client-charset=ujis".
783- sync %%files to official RPM.
784- remove MySQL-Max.
785
786* Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl7
787- for VineSeed
788
789* Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl6
790- move shared library from /usr/lib/ to /usr/lib/mysql/
791- add /etc/ld.so.conf.d/*.conf
792- fix broken libmysqlcient*.la files (or should we remove them permanently?)
793
794* Sat Jun 16 2007 IWAI, Masaharu <iwai@alib.jp> 5.0.27-0vl5
795- rebuild <BTS:VineLinux:534>
796
797* Mon Nov 13 2006 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.27-0vl4
798- added -fPIC
799
800* Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl3
801- fixed dependency. <BTS:338>
802
803* Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl2
804- add %%Patch1. <BTS:320>
805
806* Sat Oct 28 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl1
807- new upstream release.
808
809* Fri Oct 27 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.26-0vl1
810- new upstream release.
811
812* Sat Jun  3 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.22-0vl1
813- new upstream release.
814
815* Sat May 13 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl1
816- release++.
817
818* Wed May 10 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl0
819- new upstream release.
820- for VineSeed.
821
822* Wed Feb  8 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.16-0vl0
823- new upstream release.
824- replace Patch0 for MySQL-4.1.16.
825
826* Thu Oct  6 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.14-0vl0
827- new upstream release.
828- add Patch0.
829
830* Tue Sep 6 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.25-0vl0
831- new upstream version
832        -- mysql-4.0.25
833
834* Fri Jan 21 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.23-0vl0
835- new upstream version
836        -- mysql-4.0.23
837
838* Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.22-0vl0
839- new upstream version
840        -- mysql-4.0.22
841 
842* Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.21-0vl1
843- new upstream version
844        -- mysql-4.0.21
845 
846* Fri May 21 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.20-0vl1
847- new upstream version
848        -- mysql-4.0.20
849 
850* Tue May 04 2004 Tomoya TAKA <taka@vinelinux.org> 4.0.18-0vl2
851- modify CFLAGS, CXXFLAGS and configure options for alpha
852
853* Tue Mar 23 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.18-0vl1
854- Upgraded to MySQL-4
855- added "with-charset=ujis" and "without-readline" to configure (vineseed-plus-02150)
856- merged to MySQL Official packages
857        -- renamed package "MySQL" to "MySQL-server"
858        -- when using gcc, _always_ use CXX=gcc
859        -- replaced Copyright with License field (Copyright is obsolete)
860        -- added myisam_ftdump to the Server package
861        -- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
862        -- fixed file permissions (BUG 1672)
863        -- removed dependency on MySQL-client from the MySQL-devel subpackage
864        -- as it is not really required. (BUG 1610)
865        -- Fixed BUG 1162 (removed macro names from the changelog)
866        -- Really fixed BUG 998 (disable the checking for installed but
867        --  unpackaged files)
868        -- Fixed BUG 959 (libmysqld not being compiled properly)
869        -- Fixed BUG 998 (RPM build errors): added missing files to the
870        -- distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
871        -- mysql_fix_privilege_tables.1), removed "-n" from install section.
872        -- removed the GIF Icon (file was not included in the sources anyway)
873        -- removed unused variable shared_lib_version
874        -- do not run automake before building the standard binary
875        --  (should not be necessary)
876        -- add server suffix '-standard' to standard binary (to be in line
877        -- with the binary tarball distributions)
878        -- allow overriding CC and CXX (required when building
879        -- with other compilers)
880
881* Thu Apr 14 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.23.56-0vl5
882- added BuildRequires:  automake16
883                                                                               
884* Thu Apr 03 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl3
885- add '-fPIC -DPIC' to CFLAGS on alpha
886- little fix of spec file
887                                                                               
888* Thu Mar 27 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl2
889- enable MySQL-shared subpackage for alpha
890- delete 'BuildPrereq: kernel24-headers' for alpha
891- fix shared %files (exclude sparc)
892                                                                               
893* Tue Mar 18 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.56-0vl1
894- new upstream version
895                                                                               
896* Sun Mar  9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.23.55-0vl2
897- fixed devel %files (dropped *.la files)
898                                                                               
899* Tue Jan 28 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.55-0vl1
900- new upstream version
901- fixed document permission
902                                                                               
903* Sat Dec 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.54a-0vl1
904- new upstream version
905                                                                               
906* Sat Oct 19 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl2
907- dropped MySQL-Max sub-pakage for sparc/sparc64/alpha
908        -- don't work
909                                                                               
910* Wed Oct 16 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl1
911- new upstream version
912- diseble-assembler in configure on sparc,sparc64,alpha
913                                                                               
914* Wed Aug 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.52-0vl1
915- new upstream version
916- moved some man files to main package
917- added enable-local-infile in configure
918- changed --with-extra-charsets=all in configure
919                                                                               
920* Fri Jun 14 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl2
921- fixed changelog
922                                                                               
923* Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl1
924- updated to mysql-3.23.51
925                                                                               
926* Fri Mar 15 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl2
927- rebuild on zlib-1.1.4(security fix.)
928                                                                               
929* Mon Feb 18 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl1
930- updated to mysql-2.23.49
931                                                                               
932* Tue Feb 12 2002 Tomoya TAKA <taka@vinelinux.org> 3.23.48-0vl2
933- add 'BuildPrereq: kernel24-headers' on alpha
934- remove shared library and max on alpha
935                                                                               
936* Tue Feb 12 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.48-0vl1
937- updated to mysql-3.23.48
938                                                                               
939* Thu Jan 03 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.47-0vl1
940- updated to mysql-3.23.47
941                                                                               
942* Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.46-0vl1
943- updated to mysql-3.23.46
944                                                                               
945* Thu Nov 29 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.45-0vl1
946- updated to mysql-3.23.45
947                                                                               
948* Tue Nov 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.44-0vl1
949- updated to mysql-3.23.44
950                                                                               
951* Sat Oct 13 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.43-0vl1
952- updated to mysql-3.23.43
953- removed shared library and max on sparc
954                                                                               
955* Wed Sep 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.42-0vl1
956- updated to mysql-3.23.42
957- changed MYSQL_BUILD_CC: and MYSQL_BUILD_XCC: to -gcc
958                                                                               
959* Thu Aug 30 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.41-0vl1
960- updated to mysql-3.23.41
961                                                                               
962* Wed Aug 22 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.40-0vl1
963- updated to mysql-3.23.40
964                                                                               
965* Tue Jul 10 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.39-0vl1
966- updated to mysql-3.23.39
967
968* Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2
969- added configure --with-charset=ujis
970                                                                               
971* Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2
972- used some rpmmacro
973                                                                               
974* Fri May 25 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl1
975- updated to MySQL-3.23.38
976                                                                               
977* Thu Dec 07 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl2
978- removed Bench pakages
979                                                                               
980* Tue Dec 05 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl1
981- removed pt_BR locale
982- build on Vine Linux
983- partially used rpmmacros
984- added %clean tag
985                                                                               
986* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
987- Added separate libmysql_r directory; now both a threaded
988  and non-threaded library is shipped.
989                                                                               
990* Wed Sep 28 1999 David Axmark <davida@mysql.com>
991- Added the support-files/my-example.cnf to the docs directory.
992- Removed devel dependency on base since it is about client
993  development.
994                                                                               
995* Wed Sep 8 1999 David Axmark <davida@mysql.com>
996- Cleaned up some for 3.23.
997                                                                               
998* Thu Jul 1 1999 David Axmark <davida@mysql.com>
999- Added support for shared libraries in a separate sub
1000  package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
1001- The --enable-assembler switch is now automatically disables on
1002  platforms there assembler code is unavailable. This should allow
1003  building this RPM on non i386 systems.
1004                                                                               
1005* Mon Feb 22 1999 David Axmark <david@detron.se>
1006- Removed unportable cc switches from the spec file. The defaults can
1007  now be overridden with environment variables. This feature is used
1008  to compile the official RPM with optimal (but compiler version
1009  specific) switches.
1010- Removed the repetitive description parts for the sub rpms. Maybe add
1011  again if RPM gets a multiline macro capability.
1012- Added support for a pt_BR translation. Translation contributed by
1013  Jorge Godoy <jorge@bestway.com.br>.
1014                                                                               
1015* Wed Nov 4 1998 David Axmark <david@detron.se>
1016- A lot of changes in all the rpm and install scripts. This may even
1017  be a working RPM :-)
1018                                                                               
1019* Sun Aug 16 1998 David Axmark <david@detron.se>
1020- A developers changelog for MySQL is available in the source RPM. And
1021  there is a history of major user visible changed in the Reference
1022  Manual.  Only RPM specific changes will be documented here.
1023
Note: See TracBrowser for help on using the repository browser.