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

Revision 2087, 38.8 KB checked in by inagaki, 14 years ago (diff)

updated: MySQL, libmtp, taglib
NEW: taglib-extras

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