MySQL-vl.spec 34 KB

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