MySQL-vl.spec 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. %define mysqld_user mysql
  2. %define mysqld_group mysql
  3. %define server_suffix -community
  4. %define mysqldatadir /var/lib/mysql
  5. %{?_with_static:%define STATIC_BUILD 1}
  6. %{!?_with_static:%define STATIC_BUILD 0}
  7. # Working around perl dependency problem
  8. %global __perl_requires %{SOURCE998}
  9. %global __perllib_requires %{SOURCE998}
  10. # We don't package all files installed into the build root by intention -
  11. # See BUG#998 for details.
  12. %define _unpackaged_files_terminate_build 0
  13. %define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
  14. %define mysql_base_version 5.5
  15. %define mysql_version 5.5.30
  16. %define client_version 18
  17. %if %{?_dist_release}!="vl5"
  18. %define libpkgname libmysqlclient%{client_version}
  19. %else
  20. %define libpkgname MySQL-shared
  21. %endif
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: tomop
  25. Name: MySQL
  26. Summary: MySQL: a very fast and reliable SQL database server
  27. Version: %{mysql_version}
  28. Release: 1%{_dist_release}
  29. Group: Applications/Databases
  30. # exceptions allow client libraries to be linked with most open source SW,
  31. # not only GPL code.
  32. License: GPLv2 with exceptions
  33. URL: http://www.mysql.com/
  34. Source: mysql-%{version}.tar.gz
  35. # Don't depend on lib::mtr*
  36. Source998: perl-requires-%{name}.sh
  37. Source1000: macros.mysql.in
  38. Patch0: mysql-5.5.15-jp-all.patch
  39. # lib64 patch for vine
  40. Patch200: pysql-5.1.44-lib64.patch
  41. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  42. BuildRequires: perl, readline-devel, libaio-devel
  43. BuildRequires: gcc-c++, ncurses-devel, zlib-devel, openssl-devel
  44. BuildRequires: groff, cmake, bison
  45. Requires: fileutils sh-utils
  46. Provides: msqlormysql MySQL-server mysql
  47. Obsoletes: mysql MySQL5
  48. # From the manual
  49. %description
  50. The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
  51. and robust SQL (Structured Query Language) database server. MySQL Server
  52. is intended for mission-critical, heavy-load production systems as well
  53. as for embedding into mass-deployed software. MySQL is a trademark of
  54. Sun Microsystems, Inc.
  55. Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc. All rights reserved.
  56. Use is subject to license terms.
  57. This software comes with ABSOLUTELY NO WARRANTY. This is free software,
  58. and you are welcome to modify and redistribute it under the GPL license.
  59. The MySQL web site (http://www.mysql.com/) provides the latest
  60. news and information about the MySQL software. Also please see the
  61. documentation and the manual for more information.
  62. %package server
  63. Release: %{release}
  64. Summary: MySQL: a very fast and reliable SQL database server
  65. Group: Applications/Databases
  66. Requires: fileutils sh-utils net-tools
  67. Provides: mysql-server mysql MySQL MySQL5-server mysqlserver-%{mysql_base_version}
  68. Obsoletes: MySQL mysql mysql-server MySQL5-server
  69. %description server
  70. The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
  71. and robust SQL (Structured Query Language) database server. MySQL Server
  72. is intended for mission-critical, heavy-load production systems as well
  73. as for embedding into mass-deployed software. MySQL is a trademark of
  74. Sun Microsystems, Inc.
  75. Copyright 2000-2008 MySQL AB, 2009 Sun Microsystems, Inc. All rights reserved.
  76. Use is subject to license terms.
  77. This software comes with ABSOLUTELY NO WARRANTY. This is free software,
  78. and you are welcome to modify and redistribute it under the GPL license.
  79. The MySQL web site (http://www.mysql.com/) provides the latest
  80. news and information about the MySQL software. Also please see the
  81. documentation and the manual for more information.
  82. This package includes the MySQL server binary (incl. InnoDB) as well
  83. as related utilities to run and administrate a MySQL server.
  84. If you want to access and work with the database, you have to install
  85. package "MySQL-client" as well!
  86. %package client
  87. Summary: MySQL - Client
  88. Group: Applications/Databases
  89. Obsoletes: mysql-client MySQL5-client
  90. Provides: mysql-client MySQL5-client mysqlclient-%{mysql_base_version}
  91. %description client
  92. This package contains the standard MySQL clients and administration tools.
  93. %{see_base}
  94. %package source
  95. Summary: MySQL - Source
  96. Group: Development/Libraries
  97. Requires: MySQL-devel = %{version}-%{release}
  98. AutoReqProv: no
  99. %description source
  100. This package contains the sources files of MySQL.
  101. %{see_base}
  102. %package test
  103. Requires: %{name}-client = %{version}-%{release} perl-DBI perl
  104. Summary: MySQL - Test suite
  105. Group: Applications/Databases
  106. Obsoletes: mysql-bench MySQL5-bench MySQL-bench
  107. Provides: perl(mtr_misc.pl)
  108. %description test
  109. This package contains the MySQL regression test suite.
  110. %{see_base}
  111. %package devel
  112. Summary: MySQL - Development header files and libraries
  113. Group: Development/Libraries
  114. Requires: %{libpkgname} = %{version}-%{release}
  115. Requires: openssl-devel, zlib-devel
  116. Provides: mysql-devel MySQL5-devel
  117. Obsoletes: mysql-devel MySQL5-devel
  118. %description devel
  119. This package contains the development header files and libraries
  120. necessary to develop MySQL client applications.
  121. %{see_base}
  122. %package -n %{libpkgname}
  123. Summary: The shared libraries required for MySQL clients
  124. Group: System Environment/Libraries
  125. %if %{?_dist_release}!="vl5"
  126. Obsoletes: MySQL-shared < %{version}
  127. %endif
  128. %description -n %{libpkgname}
  129. This package contains the shared libraries (*.so*) which certain
  130. languages and applications need to dynamically load and use MySQL.
  131. #%package embedded
  132. #Summary: MySQL as an embeddable library
  133. #Group: System Environment/Libraries
  134. #Obsoletes: mysql-embedded MySQL5-embedded
  135. #Provides: mysql-embedded MySQL5-embedded
  136. #%description embedded
  137. #MySQL is a multi-user, multi-threaded SQL database server. This
  138. #package contains a version of the MySQL server that can be embedded
  139. #into a client application instead of running as a separate process.
  140. #%{see_base}
  141. %package embedded-devel
  142. Summary: Development files for MySQL as an embeddable library
  143. Group: Development/Libraries
  144. Requires: %{name}-devel = %{version}-%{release}
  145. %description embedded-devel
  146. MySQL is a multi-user, multi-threaded SQL database server. This
  147. package contains files needed for developing and testing with
  148. the embedded version of the MySQL server.
  149. %{see_base}
  150. %prep
  151. %setup -q -n mysql-%{version}
  152. %patch0 -p1 -b .jp
  153. #%if %{_lib} == lib64
  154. #%patch200 -p0 -b .lib64
  155. #%endif
  156. #aclocal
  157. #autoheader
  158. #libtoolize --automake --force
  159. #automake --add-missing --copy
  160. #autoconf
  161. #perl -pi -e 's/-Werror"/"/' configure
  162. %build
  163. # Be strict about variables, bail at earliest opportunity, etc.
  164. set -eu
  165. # Optional package files
  166. touch optional-files-devel
  167. export PATH=${MYSQL_BUILD_PATH:-$PATH}
  168. export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
  169. export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
  170. export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
  171. export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
  172. export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
  173. export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
  174. export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-}
  175. # Build full release
  176. mkdir release
  177. (
  178. cd release
  179. # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
  180. # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
  181. ${CMAKE} ../ -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
  182. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  183. -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
  184. -DFEATURE_SET="community" \
  185. -DCOMPILATION_COMMENT="VineLinux MySQL RPM" \
  186. -DMYSQL_SERVER_SUFFIX="%{server_suffix}" \
  187. -DWITH_PIC="ON" \
  188. -DWITH_ZLIB="system" \
  189. -DWITH_EMBEDDED_SERVER="ON" \
  190. -DWITH_SSL="yes"
  191. echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
  192. make %{?_smp_mflags} VERBOSE=1
  193. )
  194. # Use the build root for temporary storage of the shared libraries.
  195. RBR=$RPM_BUILD_ROOT
  196. # Clean up the BuildRoot first
  197. [ "$RBR" != "/" ] && [ -d "$RBR" ] && rm -rf "$RBR";
  198. # For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). This
  199. # needs to be during build phase as $CC is not set during install.
  200. if "$CC" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1
  201. then
  202. libgcc=`$CC $CFLAGS --print-libgcc-file`
  203. if [ -f $libgcc ]
  204. then
  205. mkdir -p $RBR%{_libdir}/mysql
  206. # install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
  207. # echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
  208. fi
  209. fi
  210. ##############################################################################
  211. %install
  212. RBR=$RPM_BUILD_ROOT
  213. MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}
  214. rm -rf $RBR
  215. # Ensure that needed directories exists
  216. install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
  217. install -d $RBR%{mysqldatadir}/mysql
  218. install -d $RBR%{_datadir}/mysql-test
  219. install -d $RBR%{_includedir}
  220. install -d $RBR%{_libdir}
  221. install -d $RBR%{_mandir}
  222. install -d $RBR%{_sbindir}
  223. # Install all binaries
  224. # Install all binaries
  225. (
  226. cd $MBD/release
  227. make DESTDIR=$RBR install
  228. )
  229. # Install logrotate and autostart
  230. install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
  231. install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
  232. # Create a symlink "rcmysql", pointing to the init.script. SuSE users
  233. # will appreciate that, as all services usually offer this.
  234. ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
  235. # Touch the place where the my.cnf config file might be located
  236. # Just to make sure it's in the file list and marked as a config file
  237. touch $RBR%{_sysconfdir}/my.cnf
  238. # Remove man pages we explicitly do not want to package, avoids 'unpackaged
  239. # files' warning.
  240. rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
  241. mkdir -p $RBR%{_datadir}/%{name}-source
  242. pushd $RBR%{_datadir}/%{name}-source
  243. tar zxf %{SOURCE0}
  244. find $RBR%{_datadir}/%{name}-source -type f -exec chmod ugo-x {} \;
  245. popd
  246. mkdir -p $RBR%{_sysconfdir}/rpm
  247. sed -e 's/@BASEVERSION@/%{mysql_base_version}/' -e 's/@VERSION@/%{version}/' -e 's/@RELEASE@/%{release}/' < %{SOURCE1000} > $RBR%{_sysconfdir}/rpm/macros.mysql
  248. rm -f $RBR%{_libdir}/mysql/plugin/daemon_example.ini
  249. ##############################################################################
  250. %pre server
  251. # Shut down a previously installed server first
  252. if test -x %{_sysconfdir}/init.d/mysql
  253. then
  254. %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
  255. echo "Giving mysqld a couple of seconds to exit nicely"
  256. sleep 5
  257. elif test -x %{_sysconfdir}/rc.d/init.d/mysql
  258. then
  259. %{_sysconfdir}/rc.d/init.d/mysql stop > /dev/null 2>&1
  260. echo "Giving mysqld a couple of seconds to exit nicely"
  261. sleep 5
  262. fi
  263. %post server
  264. mysql_datadir=%{mysqldatadir}
  265. # Create data directory if needed
  266. if test ! -d $mysql_datadir; then mkdir -m 755 $mysql_datadir; fi
  267. if test ! -d $mysql_datadir/mysql; then mkdir $mysql_datadir/mysql; fi
  268. if test ! -d $mysql_datadir/test; then mkdir $mysql_datadir/test; fi
  269. # Make MySQL start/shutdown automatically when the machine does it.
  270. # use insserv for older SuSE Linux versions
  271. if test -x /sbin/insserv
  272. then
  273. /sbin/insserv %{_sysconfdir}/init.d/mysql
  274. # use chkconfig on Red Hat and newer SuSE releases
  275. elif test -x /sbin/chkconfig
  276. then
  277. /sbin/chkconfig --add mysql
  278. fi
  279. # Create a MySQL user and group. Do not report any problems if it already
  280. # exists.
  281. groupadd -r %{mysqld_group} 2> /dev/null || true
  282. useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
  283. # The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
  284. usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
  285. # Change permissions so that the user that will run the MySQL daemon
  286. # owns all database files.
  287. chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
  288. # Initiate databases if needed
  289. %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
  290. # Upgrade databases if needed would go here - but it cannot be automated yet
  291. # Change permissions again to fix any new files.
  292. chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
  293. # Fix permissions for the permission database so that only the user
  294. # can read them.
  295. chmod -R og-rw $mysql_datadir/mysql
  296. # Restart in the same way that mysqld will be started normally.
  297. %{_sysconfdir}/init.d/mysql start
  298. # Allow mysqld_safe to start mysqld and print a message before we exit
  299. sleep 2
  300. #echo "Thank you for installing the MySQL Community Server! For Production
  301. #systems, we recommend MySQL Enterprise, which contains enterprise-ready
  302. #software, intelligent advisory services, and full production support with
  303. #scheduled service packs and more. Visit www.mysql.com/enterprise for more
  304. #information."
  305. %preun server
  306. if test $1 = 0
  307. then
  308. # Stop MySQL before uninstalling it
  309. if test -x %{_sysconfdir}/init.d/mysql
  310. then
  311. %{_sysconfdir}/init.d/mysql stop > /dev/null
  312. # Remove autostart of mysql
  313. # for older SuSE Linux versions
  314. if test -x /sbin/insserv
  315. then
  316. /sbin/insserv -r %{_sysconfdir}/init.d/mysql
  317. # use chkconfig on Red Hat and newer SuSE releases
  318. elif test -x /sbin/chkconfig
  319. then
  320. /sbin/chkconfig --del mysql
  321. fi
  322. fi
  323. fi
  324. # We do not remove the mysql user since it may still own a lot of
  325. # database files.
  326. %post -n %{libpkgname}
  327. /sbin/ldconfig
  328. %postun -n %{libpkgname}
  329. /sbin/ldconfig
  330. # Clean up the BuildRoot
  331. %clean
  332. [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
  333. %files server
  334. %defattr(-,root,root,0755)
  335. %doc COPYING README
  336. %doc Docs/ChangeLog
  337. %doc Docs/INFO_SRC*
  338. %doc release/Docs/INFO_BIN*
  339. %doc release/support-files/my-*.cnf
  340. %doc %attr(644, root, root) %{_infodir}/mysql.info*
  341. %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
  342. %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
  343. %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
  344. %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
  345. %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
  346. %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
  347. %doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
  348. %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
  349. %doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
  350. %doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
  351. %doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
  352. %doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
  353. %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
  354. %doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1*
  355. %doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
  356. %doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
  357. %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
  358. %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
  359. %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
  360. %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
  361. %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
  362. %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
  363. %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
  364. %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
  365. %doc %attr(644, root, man) %{_mandir}/man1/perror.1*
  366. %doc %attr(644, root, man) %{_mandir}/man1/replace.1*
  367. %doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
  368. %doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
  369. %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
  370. %attr(755, root, root) %{_bindir}/innochecksum
  371. %attr(755, root, root) %{_bindir}/my_print_defaults
  372. %attr(755, root, root) %{_bindir}/myisam_ftdump
  373. %attr(755, root, root) %{_bindir}/myisamchk
  374. %attr(755, root, root) %{_bindir}/myisamlog
  375. %attr(755, root, root) %{_bindir}/myisampack
  376. %attr(755, root, root) %{_bindir}/mysql_convert_table_format
  377. %attr(755, root, root) %{_bindir}/mysql_fix_extensions
  378. %attr(755, root, root) %{_bindir}/mysql_install_db
  379. %attr(755, root, root) %{_bindir}/mysql_plugin
  380. %attr(755, root, root) %{_bindir}/mysql_secure_installation
  381. %attr(755, root, root) %{_bindir}/mysql_setpermission
  382. %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
  383. %attr(755, root, root) %{_bindir}/mysql_upgrade
  384. %attr(755, root, root) %{_bindir}/mysql_zap
  385. %attr(755, root, root) %{_bindir}/mysqlbug
  386. %attr(755, root, root) %{_bindir}/mysqld_multi
  387. %attr(755, root, root) %{_bindir}/mysqld_safe
  388. %attr(755, root, root) %{_bindir}/mysqldumpslow
  389. %attr(755, root, root) %{_bindir}/mysqlhotcopy
  390. %attr(755, root, root) %{_bindir}/mysqltest
  391. %attr(755, root, root) %{_bindir}/perror
  392. %attr(755, root, root) %{_bindir}/replace
  393. %attr(755, root, root) %{_bindir}/resolve_stack_dump
  394. %attr(755, root, root) %{_bindir}/resolveip
  395. %attr(755, root, root) %{_sbindir}/mysqld
  396. %attr(755, root, root) %{_sbindir}/rcmysql
  397. %attr(755, root, root) %{_libdir}/mysql/plugin/*.so
  398. %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
  399. %attr(755, root, root) %{_sysconfdir}/init.d/mysql
  400. %attr(755, root, root) %{_datadir}/mysql/
  401. %files client
  402. %defattr(-, root, root, 0755)
  403. %attr(755, root, root) %{_bindir}/msql2mysql
  404. %attr(755, root, root) %{_bindir}/mysql
  405. %attr(755, root, root) %{_bindir}/mysql_find_rows
  406. %attr(755, root, root) %{_bindir}/mysql_waitpid
  407. %attr(755, root, root) %{_bindir}/mysqlaccess
  408. # XXX: This should be moved to %{_sysconfdir}
  409. %attr(644, root, root) %{_bindir}/mysqlaccess.conf
  410. %attr(755, root, root) %{_bindir}/mysqladmin
  411. %attr(755, root, root) %{_bindir}/mysqlbinlog
  412. %attr(755, root, root) %{_bindir}/mysqlcheck
  413. %attr(755, root, root) %{_bindir}/mysqldump
  414. %attr(755, root, root) %{_bindir}/mysqlimport
  415. %attr(755, root, root) %{_bindir}/mysqlshow
  416. %attr(755, root, root) %{_bindir}/mysqlslap
  417. %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
  418. %doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
  419. %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
  420. %doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
  421. %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
  422. %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
  423. %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
  424. %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
  425. %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
  426. %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
  427. %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
  428. %doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
  429. %files source
  430. %defattr(-, root, root, 0755)
  431. %{_datadir}/MySQL-source
  432. %files devel -f optional-files-devel
  433. %defattr(-, root, root, 0755)
  434. %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
  435. %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
  436. %attr(755, root, root) %{_bindir}/mysql_config
  437. %dir %attr(755, root, root) %{_includedir}/mysql
  438. %dir %attr(755, root, root) %{_libdir}/mysql
  439. %{_includedir}/mysql/*
  440. %{_datadir}/aclocal/mysql.m4
  441. %{_libdir}/*.so
  442. %{_sysconfdir}/rpm/*
  443. %exclude %{_libdir}/*.a
  444. %files -n %{libpkgname}
  445. %defattr(-, root, root, 0755)
  446. # Shared libraries (omit for architectures that don't support them)
  447. %{_libdir}/libmysql*.so.*
  448. #/etc/ld.so.conf.d/*
  449. %files test
  450. %defattr(-, root, root, 0755)
  451. %attr(-, root, root) %{_datadir}/mysql-test
  452. %attr(755, root, root) %{_bindir}/mysql_client_test
  453. %attr(755, root, root) %{_bindir}/mysql_client_test_embedded
  454. %attr(755, root, root) %{_bindir}/mysqltest_embedded
  455. %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
  456. %doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
  457. %doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
  458. %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
  459. %doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
  460. %files embedded-devel
  461. %defattr(-,root,root)
  462. #{_libdir}/libmysqld.a
  463. %{_bindir}/mysql_embedded
  464. %{_bindir}/mysql_client_test_embedded
  465. %{_bindir}/mysqltest_embedded
  466. %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
  467. %doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
  468. %changelog
  469. * Wed Feb 20 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.30-1
  470. - new upstream release.
  471. * Fri Nov 16 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.28-1
  472. - new upstream release.
  473. * Sat Sep 15 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.27-1
  474. - new upstream release.
  475. - added a sub-package 'MySQL-source".
  476. - added some macros for rpm.
  477. * Thu Jun 21 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.25-1
  478. - new upstream release.
  479. * Thu May 10 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.24-1
  480. - new upstream release.
  481. * Tue May 01 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.23-1
  482. - new upstream release.
  483. - added "Vendor:" and "Distribution:" tag.
  484. * Tue Aug 23 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.15-1
  485. - new upstream release.
  486. - removed NDB cluster support.
  487. * Mon Apr 18 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-3
  488. - Added "BR: zlib-devel" to MySQL-devel.
  489. * Sun Apr 03 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-2
  490. - Added "BR: openssl-devel" to MySQL-devel.
  491. * Fri Mar 11 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-1
  492. - new upstream release.
  493. * Mon Jan 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.54-1
  494. - new upstream release.
  495. - updated jp-patch.
  496. - added ssl support.
  497. * Sat Nov 06 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.52-1
  498. - new upstream release.
  499. - replaced '%%__find_requires' to '%%__perl_requires'.
  500. - updated jp-patch.
  501. * Fri Oct 29 2010 Shu KONNO <owa@bg.wakwak.com> 5.1.44-3
  502. - added mysql-5.1.44-lib64.patch (on x86_64)
  503. - added -fPIC (on x86_64)
  504. * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.44-2
  505. - made embedded package again
  506. * Fri Mar 05 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.44-1
  507. - new upstream release.
  508. - updated jp-patch.
  509. * Thu Feb 04 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.43-2
  510. - VineSeed: rebuilt with new toolchain.
  511. * Wed Feb 03 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.43-1
  512. - new upstream release.
  513. - fixed CVE-2009-4484.
  514. * Fri Nov 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.41-1
  515. - new upstream release.
  516. * Thu Nov 19 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-2
  517. - added net-tools to 'Requires'.
  518. - added groff to 'BuildRequires'.
  519. - renamed subpackage 'MySQL-shared' to 'libmysqlclient16' (VineSeed only).
  520. * Tue Nov 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-1
  521. - new upstream release.
  522. * Sat Sep 26 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.39-1
  523. - new upstream release.
  524. * Sun Jul 5 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.36-1
  525. - new upstream release.
  526. - dropped %%Patch100 (fixed in upstream).
  527. * Sat Jun 6 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.35-1
  528. - new upstream release.
  529. - add %%Patch100 (no longer needed for MySQL-5.1.36 or later).
  530. * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.34-1
  531. - new upstream release.
  532. - rename 'MySQL-bench' to 'MySQL-test'.
  533. - update Patch0.
  534. - change default charset to 'utf8'.
  535. * Sat Apr 12 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.51a-1
  536. - new upstream release.
  537. - update Patch0.
  538. - add "--with-client-charset=ujis".
  539. - sync %%files to official RPM.
  540. - remove MySQL-Max.
  541. * Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl7
  542. - for VineSeed
  543. * Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl6
  544. - move shared library from /usr/lib/ to /usr/lib/mysql/
  545. - add /etc/ld.so.conf.d/*.conf
  546. - fix broken libmysqlcient*.la files (or should we remove them permanently?)
  547. * Sat Jun 16 2007 IWAI, Masaharu <iwai@alib.jp> 5.0.27-0vl5
  548. - rebuild <BTS:VineLinux:534>
  549. * Mon Nov 13 2006 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.27-0vl4
  550. - added -fPIC
  551. * Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl3
  552. - fixed dependency. <BTS:338>
  553. * Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl2
  554. - add %%Patch1. <BTS:320>
  555. * Sat Oct 28 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl1
  556. - new upstream release.
  557. * Fri Oct 27 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.26-0vl1
  558. - new upstream release.
  559. * Sat Jun 3 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.22-0vl1
  560. - new upstream release.
  561. * Sat May 13 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl1
  562. - release++.
  563. * Wed May 10 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl0
  564. - new upstream release.
  565. - for VineSeed.
  566. * Wed Feb 8 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.16-0vl0
  567. - new upstream release.
  568. - replace Patch0 for MySQL-4.1.16.
  569. * Thu Oct 6 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.14-0vl0
  570. - new upstream release.
  571. - add Patch0.
  572. * Tue Sep 6 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.25-0vl0
  573. - new upstream version
  574. -- mysql-4.0.25
  575. * Fri Jan 21 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.23-0vl0
  576. - new upstream version
  577. -- mysql-4.0.23
  578. * Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.22-0vl0
  579. - new upstream version
  580. -- mysql-4.0.22
  581. * Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.21-0vl1
  582. - new upstream version
  583. -- mysql-4.0.21
  584. * Fri May 21 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.20-0vl1
  585. - new upstream version
  586. -- mysql-4.0.20
  587. * Tue May 04 2004 Tomoya TAKA <taka@vinelinux.org> 4.0.18-0vl2
  588. - modify CFLAGS, CXXFLAGS and configure options for alpha
  589. * Tue Mar 23 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.18-0vl1
  590. - Upgraded to MySQL-4
  591. - added "with-charset=ujis" and "without-readline" to configure (vineseed-plus-02150)
  592. - merged to MySQL Official packages
  593. -- renamed package "MySQL" to "MySQL-server"
  594. -- when using gcc, _always_ use CXX=gcc
  595. -- replaced Copyright with License field (Copyright is obsolete)
  596. -- added myisam_ftdump to the Server package
  597. -- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
  598. -- fixed file permissions (BUG 1672)
  599. -- removed dependency on MySQL-client from the MySQL-devel subpackage
  600. -- as it is not really required. (BUG 1610)
  601. -- Fixed BUG 1162 (removed macro names from the changelog)
  602. -- Really fixed BUG 998 (disable the checking for installed but
  603. -- unpackaged files)
  604. -- Fixed BUG 959 (libmysqld not being compiled properly)
  605. -- Fixed BUG 998 (RPM build errors): added missing files to the
  606. -- distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
  607. -- mysql_fix_privilege_tables.1), removed "-n" from install section.
  608. -- removed the GIF Icon (file was not included in the sources anyway)
  609. -- removed unused variable shared_lib_version
  610. -- do not run automake before building the standard binary
  611. -- (should not be necessary)
  612. -- add server suffix '-standard' to standard binary (to be in line
  613. -- with the binary tarball distributions)
  614. -- allow overriding CC and CXX (required when building
  615. -- with other compilers)
  616. * Thu Apr 14 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.23.56-0vl5
  617. - added BuildRequires: automake16
  618. * Thu Apr 03 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl3
  619. - add '-fPIC -DPIC' to CFLAGS on alpha
  620. - little fix of spec file
  621. * Thu Mar 27 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl2
  622. - enable MySQL-shared subpackage for alpha
  623. - delete 'BuildPrereq: kernel24-headers' for alpha
  624. - fix shared %files (exclude sparc)
  625. * Tue Mar 18 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.56-0vl1
  626. - new upstream version
  627. * Sun Mar 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.23.55-0vl2
  628. - fixed devel %files (dropped *.la files)
  629. * Tue Jan 28 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.55-0vl1
  630. - new upstream version
  631. - fixed document permission
  632. * Sat Dec 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.54a-0vl1
  633. - new upstream version
  634. * Sat Oct 19 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl2
  635. - dropped MySQL-Max sub-pakage for sparc/sparc64/alpha
  636. -- don't work
  637. * Wed Oct 16 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl1
  638. - new upstream version
  639. - diseble-assembler in configure on sparc,sparc64,alpha
  640. * Wed Aug 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.52-0vl1
  641. - new upstream version
  642. - moved some man files to main package
  643. - added enable-local-infile in configure
  644. - changed --with-extra-charsets=all in configure
  645. * Fri Jun 14 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl2
  646. - fixed changelog
  647. * Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl1
  648. - updated to mysql-3.23.51
  649. * Fri Mar 15 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl2
  650. - rebuild on zlib-1.1.4(security fix.)
  651. * Mon Feb 18 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl1
  652. - updated to mysql-2.23.49
  653. * Tue Feb 12 2002 Tomoya TAKA <taka@vinelinux.org> 3.23.48-0vl2
  654. - add 'BuildPrereq: kernel24-headers' on alpha
  655. - remove shared library and max on alpha
  656. * Tue Feb 12 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.48-0vl1
  657. - updated to mysql-3.23.48
  658. * Thu Jan 03 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.47-0vl1
  659. - updated to mysql-3.23.47
  660. * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.46-0vl1
  661. - updated to mysql-3.23.46
  662. * Thu Nov 29 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.45-0vl1
  663. - updated to mysql-3.23.45
  664. * Tue Nov 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.44-0vl1
  665. - updated to mysql-3.23.44
  666. * Sat Oct 13 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.43-0vl1
  667. - updated to mysql-3.23.43
  668. - removed shared library and max on sparc
  669. * Wed Sep 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.42-0vl1
  670. - updated to mysql-3.23.42
  671. - changed MYSQL_BUILD_CC: and MYSQL_BUILD_XCC: to -gcc
  672. * Thu Aug 30 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.41-0vl1
  673. - updated to mysql-3.23.41
  674. * Wed Aug 22 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.40-0vl1
  675. - updated to mysql-3.23.40
  676. * Tue Jul 10 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.39-0vl1
  677. - updated to mysql-3.23.39
  678. * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2
  679. - added configure --with-charset=ujis
  680. * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2
  681. - used some rpmmacro
  682. * Fri May 25 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl1
  683. - updated to MySQL-3.23.38
  684. * Thu Dec 07 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl2
  685. - removed Bench pakages
  686. * Tue Dec 05 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl1
  687. - removed pt_BR locale
  688. - build on Vine Linux
  689. - partially used rpmmacros
  690. - added %clean tag
  691. * Fri Aug 18 2000 Tim Smith <tim@mysql.com>
  692. - Added separate libmysql_r directory; now both a threaded
  693. and non-threaded library is shipped.
  694. * Wed Sep 28 1999 David Axmark <davida@mysql.com>
  695. - Added the support-files/my-example.cnf to the docs directory.
  696. - Removed devel dependency on base since it is about client
  697. development.
  698. * Wed Sep 8 1999 David Axmark <davida@mysql.com>
  699. - Cleaned up some for 3.23.
  700. * Thu Jul 1 1999 David Axmark <davida@mysql.com>
  701. - Added support for shared libraries in a separate sub
  702. package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
  703. - The --enable-assembler switch is now automatically disables on
  704. platforms there assembler code is unavailable. This should allow
  705. building this RPM on non i386 systems.
  706. * Mon Feb 22 1999 David Axmark <david@detron.se>
  707. - Removed unportable cc switches from the spec file. The defaults can
  708. now be overridden with environment variables. This feature is used
  709. to compile the official RPM with optimal (but compiler version
  710. specific) switches.
  711. - Removed the repetitive description parts for the sub rpms. Maybe add
  712. again if RPM gets a multiline macro capability.
  713. - Added support for a pt_BR translation. Translation contributed by
  714. Jorge Godoy <jorge@bestway.com.br>.
  715. * Wed Nov 4 1998 David Axmark <david@detron.se>
  716. - A lot of changes in all the rpm and install scripts. This may even
  717. be a working RPM :-)
  718. * Sun Aug 16 1998 David Axmark <david@detron.se>
  719. - A developers changelog for MySQL is available in the source RPM. And
  720. there is a history of major user visible changed in the Reference
  721. Manual. Only RPM specific changes will be documented here.