mariadb-vl.spec 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401
  1. %bcond_with systemd
  2. %bcond_with source
  3. %bcond_without onigmo
  4. %bcond_with tokudb
  5. %global daemon_name mariadb
  6. %define mysqld_user mysql
  7. %define mysqld_group mysql
  8. %define mysqldatadir /var/lib/mysql
  9. # Working around perl dependency problem
  10. %global __perl_requires %{SOURCE998}
  11. %global __perllib_requires %{SOURCE998}
  12. %define _unpackaged_files_terminate_build 1
  13. %define mariadb_version 10.5.10
  14. %define mariadb_base_version 10.5
  15. %define mroonga_version 11.01
  16. %define groonga_version 11.0.1
  17. %define client_version 18
  18. %define galera_api_version 26.4
  19. Name: mariadb
  20. Summary: MariaDB: a very fast and robust SQL database server
  21. Version: %{mariadb_version}
  22. Release: 1%{_dist_release}%{?with_systemd:.systemd}
  23. Group: servers
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: tomop
  27. License: GPL2
  28. URL: https://mariadb.org/
  29. Source: https://downloads.mariadb.com/MariaDB/mariadb-%{version}/source/mariadb-%{version}.tar.gz
  30. # for systemd
  31. Source10: mysql.tmpfiles.d.in
  32. Source11: mysql.service.in
  33. Source12: mysql-prepare-db-dir.sh
  34. Source14: mysql-check-socket.sh
  35. Source15: mysql-scripts-common.sh
  36. Source16: mysql-check-upgrade.sh
  37. Source18: mysql@.service.in
  38. # Don't depend on lib::mtr*
  39. Source998: perl-requires.sh
  40. Source1000: macros.mariadb.in
  41. Patch0: mariadb-scripts.patch
  42. # replace mroonga to the newest version.
  43. Patch1000: 0001-MariaDB-%{mariadb_version}-Mroonga-v%{mroonga_version}-Groonga-v%{groonga_version}.patch
  44. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  45. BuildRequires: bison, cmake, gcc-c++, groff, git
  46. BuildRequires: libaio-devel, libboost-devel, libevent-devel, libxml2-devel
  47. BuildRequires: ncurses-devel, perl, openssl-devel, readline-devel
  48. BuildRequires: jemalloc-devel
  49. BuildRequires: pam-devel
  50. BuildRequires: unixODBC-devel
  51. BuildRequires: mecab-devel
  52. BuildRequires: pcre2-devel
  53. BuildRequires: zlib-devel
  54. BuildRequires: libzstd-devel
  55. BuildRequires: lz4-devel
  56. Requires: fileutils sh-utils
  57. Provides: msqlormysql MySQL mysql
  58. Obsoletes: mysql MySQL5
  59. %if %{with systemd}
  60. BuildRequires: systemd
  61. BuildRequires: systemd-devel
  62. %{?systemd_requires}
  63. %else
  64. Requires(post): chkconfig
  65. Requires(preun): chkconfig
  66. %endif
  67. # From the manual
  68. %description
  69. MariaDB: a very fast and robust SQL database server
  70. It is GPL v2 licensed, which means you can use the it free of charge under the
  71. conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).
  72. MariaDB documentation can be found at http://kb.askmonty.org/
  73. MariaDB bug reports should be submitted through https://mariadb.atlassian.net/
  74. %package server
  75. Summary: MariaDB: a very fast and robust SQL database server
  76. Version: %{mariadb_version}
  77. Release: %{release}
  78. Group: servers
  79. Requires: fileutils sh-utils net-tools mariadb-common which
  80. Requires(post): mariadb-common
  81. Provides: mysql-server mysql MySQL MySQL-server mariadbserver-%{mariadb_base_version}
  82. Obsoletes: MySQL mysql mysql-server
  83. Obsoletes: MySQL-server < 5.6.0
  84. Obsoletes: mariadb-tokudb < 10.5.5
  85. %description server
  86. MariaDB: a very fast and robust SQL database server
  87. It is GPL v2 licensed, which means you can use the it free of charge under the
  88. conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).
  89. MariaDB documentation can be found at http://kb.askmonty.org/
  90. MariaDB bug reports should be submitted through https://mariadb.atlassian.net/
  91. %package mroonga
  92. ##Version: %{mroonga_version}
  93. Summary: A fast fulltext searchable storage engine for MariaDB.
  94. Version: %{mariadb_version}
  95. Group: servers
  96. Requires(pre): mariadb-server = %{mariadb_version}-%{release}
  97. Requires: mariadb-server = %{mariadb_version}-%{release}
  98. Obsoletes: MySQL-mroonga < 4.02
  99. Obsoletes: mariadb-mroonga < 4.07
  100. Obsoletes: mariadb-mroonga-doc < 4.07
  101. %description mroonga
  102. Mroonga is a fast fulltext searchable storage plugin for MariaDB.
  103. It is based on groonga that is a fast fulltext search engine and
  104. column store. Groonga is good at real-time update.
  105. %package connect
  106. Summary: CONNECT storage engine for MariaDB.
  107. Version: %{mariadb_version}
  108. Group: servers
  109. Requires(pre): mariadb-server = %{mariadb_version}-%{release}
  110. Requires: mariadb-server = %{mariadb_version}-%{release}
  111. %description connect
  112. The CONNECT storage engine enables MariaDB to access external
  113. local or remote data (MED). This is done by defining tables
  114. based on different data types, in particular files in various
  115. formats, data extracted from other DBMS or products (such as Excel)
  116. via ODBC, or data retrieved from the environment (for example
  117. DIR, WMI, and MAC tables).
  118. This storage engine supports table partitioning, MariaDB virtual
  119. columns and also permits defining special columns such as ROWID,
  120. FILEID, and SERVID.
  121. %package galera
  122. Summary: The configuration files and scripts for galera replication
  123. Version: %{mariadb_version}
  124. Group: servers
  125. Provides: mariadb-server-galera = %{mariadb_version}-%{release}
  126. Requires(pre): mariadb-server = %{mariadb_version}-%{release}
  127. Requires: mariadb-server = %{mariadb_version}-%{release}
  128. Requires: galera(%{galera_api_version})
  129. %description galera
  130. This package contains the files for MariaDB Galera Cluster.
  131. %ifarch x86_64
  132. %if %{with tokudb}
  133. %package tokudb
  134. Summary: TokuDB storage engine for MariaDB.
  135. Version: %{mariadb_version}
  136. Group: servers
  137. Requires(pre): mariadb-server = %{mariadb_version}-%{release}
  138. Requires: mariadb-server = %{mariadb_version}-%{release}
  139. %description tokudb
  140. The TokuDB storage engine is for use in high-performance and
  141. write-intensive environments, offering increased compression and
  142. better performance.
  143. %endif
  144. %endif
  145. %package client
  146. Summary: MariaDB - Client
  147. Version: %{mariadb_version}
  148. Group: office
  149. Obsoletes: mysql-client MySQL-client < 5.6.0
  150. Provides: mysql-client MySQL-client mariadbclient-%{mariadb_base_version}
  151. %description client
  152. This package contains the standard MariaDB clients and administration tools.
  153. %package devel
  154. Summary: MariaDB - Development libraries and headers
  155. Version: %{mariadb_version}
  156. Group: programming
  157. Requires: %{name}-static, openssl-devel, zlib-devel
  158. Conflicts: MySQL-devel < 5.6.0
  159. Conflicts: libmysqlclient-devel
  160. Conflicts: libmariadb-devel
  161. %description devel
  162. This package contains the development libraries and headers to develop
  163. MariaDB server components (e.g. plugins or embedded applications).
  164. %package static
  165. Summary: MariaDB - static libraries
  166. Version: %{mariadb_version}
  167. Group: programming
  168. Requires: %{name}-devel
  169. %description static
  170. This package provides static libraries of MariaDB.
  171. %if %{with source}
  172. %package source
  173. Summary: MariaDB - Source
  174. Version: %{mariadb_version}
  175. Group: programming
  176. Requires: mariadb-devel = %{version}-%{release}
  177. Obsoletes: MySQL-source < 5.6.0
  178. AutoReqProv: no
  179. %description source
  180. This package contains the sources files of MariaDB.
  181. %endif
  182. %package test
  183. Summary: MariaDB - Test suite
  184. Version: %{mariadb_version}
  185. Group: admin-tools
  186. Requires: %{name}-client = %{version}-%{release} perl-DBI perl
  187. Obsoletes: mysql-bench MySQL5-bench MySQL-bench MySQL-test < 5.6.0
  188. Provides: perl(mtr_misc.pl)
  189. %description test
  190. This package contains the MariaDB regression test suite.
  191. %package embedded
  192. Summary: MariaDB as an embeddable library
  193. Version: %{mariadb_version}
  194. Group: system
  195. Obsoletes: mysql-embedded MySQL-embedded
  196. Provides: mysql-embedded MySQL-embedded
  197. %description embedded
  198. This package contains a version of the MariaDB server that can be embedded
  199. into a client application instead of running as a separate process.
  200. %debug_package
  201. %prep
  202. %setup -q
  203. %if %{with systemd}
  204. %patch0 -p1
  205. %endif
  206. git --git-dir= apply -p1 %{PATCH1000}
  207. cp -f \
  208. %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE14} \
  209. %{SOURCE15} %{SOURCE16} %{SOURCE18} \
  210. scripts/
  211. %build
  212. # Be strict about variables, bail at earliest opportunity, etc.
  213. set -eu
  214. # Optional package files
  215. touch optional-files-devel
  216. export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
  217. export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS}}
  218. # Build full release
  219. # workaround: force TOKUDB_OK=1
  220. # https://jira.mariadb.org/browse/MDEV-14524?workflowName=MariaDB+v3&stepId=1
  221. mkdir release
  222. (
  223. cd release
  224. cmake ../ \
  225. -DINSTALL_LAYOUT=RPM \
  226. -DBUILD_CONFIG=mysql_release \
  227. -DCMAKE_BUILD_TYPE=Release \
  228. -DINSTALL_UNIX_ADDRDIR="/var/lib/mysql/mysql.sock" \
  229. -DCOMPILATION_COMMENT="Vine Linux MariaDB RPM" \
  230. -DWITH_PIC="ON" \
  231. -DWITH_EMBEDDED_SERVER="ON" \
  232. -DWITH_ZLIB="system" \
  233. -DWITH_LOCALES="yes" \
  234. -DWITH_SSL="system" \
  235. -DWITH_UNIT_TESTS="no" \
  236. -DWITH_SEQUENCE_STORAGE_ENGINE="ON" \
  237. -DWITH_XTRADB_STORAGE_ENGINE="ON" \
  238. -DWITH_JEMALLOC="yes" \
  239. %ifarch x86_64
  240. %if %{with tokudb}
  241. -DTOKUDB_OK=1 \
  242. -DPLUGIN_TOKUDB="DYNAMIC" \
  243. %else
  244. -DTOKUDB_OK=0 \
  245. -DPLUGIN_TOKUDB="NO" \
  246. %endif
  247. %endif
  248. -DGRN_WITH_MECAB="yes" \
  249. %if %{without onigmo}
  250. -DGRN_WITH_ONIGMO="no"
  251. %endif
  252. -DWITH_PCRE="system"
  253. # -DWITHOUT_TOKUDB="yes"
  254. ln -sf ../../../../../../release/storage/mroonga/vendor/groonga/include/groonga/version.h ../storage/mroonga/vendor/groonga/include/groonga/version.h
  255. echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
  256. make %{?_smp_mflags} VERBOSE=1
  257. )
  258. %install
  259. rm -rf %{buildroot}
  260. install -d %{buildroot}%{mysqldatadir}/mysql
  261. install -d %{buildroot}%{_infodir}
  262. # Install all binaries
  263. (
  264. cd release
  265. make DESTDIR=%{buildroot} install
  266. )
  267. %if %{with systemd}
  268. install -d %{buildroot}%{_libexecdir}
  269. pushd release
  270. rm -rf %{buildroot}/usr/lib/systemd/system
  271. # install systemd unit files and scripts for handling server startup
  272. install -D -p -m 644 scripts/mysql.service %{buildroot}%{_unitdir}/%{daemon_name}.service
  273. install -D -p -m 644 scripts/mysql@.service %{buildroot}%{_unitdir}/%{daemon_name}.service
  274. # Remove the upstream version
  275. rm -f %{buildroot}%{_tmpfilesdir}/tmpfiles.conf
  276. # Install downstream version
  277. install -D -p -m 0644 scripts/mysql.tmpfiles.d %{buildroot}%{_tmpfilesdir}/%{name}.conf
  278. # helper scripts for service starting
  279. install -p -m 755 scripts/mysql-prepare-db-dir %{buildroot}%{_libexecdir}/mysql-prepare-db-dir
  280. install -p -m 755 scripts/mysql-check-socket %{buildroot}%{_libexecdir}/mysql-check-socket
  281. install -p -m 755 scripts/mysql-check-upgrade %{buildroot}%{_libexecdir}/mysql-check-upgrade
  282. install -p -m 644 scripts/mysql-scripts-common %{buildroot}%{_libexecdir}/mysql-scripts-common
  283. popd
  284. mkdir -p %{buildroot}%{_unitdir}/mariadb.service.d
  285. %else
  286. # drop systemd files.
  287. rm -rf %{buildroot}%{_sysconfdir}/systemd
  288. %endif
  289. install -m 0644 Docs/mysql.info %{buildroot}%{_infodir}
  290. rm -rf ./doc
  291. mv -f %{buildroot}%{_docdir} ./
  292. rm doc/README-wsrep
  293. rm -rf ./groonga ./groonga-normalizer-mysql
  294. mv -f %{buildroot}%{_datadir}/groonga ./
  295. mv -f %{buildroot}%{_datadir}/groonga-normalizer-mysql ./
  296. %if %{with source}
  297. mkdir -p %{buildroot}%{_datadir}/%{name}-source
  298. pushd %{buildroot}%{_datadir}/%{name}-source
  299. tar zxf %{SOURCE0}
  300. find %{buildroot}%{_datadir}/%{name}-source -type f -exec chmod ugo-x {} \;
  301. popd
  302. %endif
  303. install -d %{buildroot}%{_sysconfdir}/rpm
  304. sed -e 's/@BASEVERSION@/%{mariadb_base_version}/' -e 's/@VERSION@/%{version}/' -e 's/@RELEASE@/%{release}/' < %{SOURCE1000} > %{buildroot}%{_sysconfdir}/rpm/macros.mariadb
  305. rm -f %{buildroot}%{_mandir}/man1/mysql_fix_privilege_tables.1*
  306. rm -f %{buildroot}%{_mandir}/man8/mysqlmanager.8*
  307. rm -f %{buildroot}%{_sysconfdir}/my.cnf
  308. rm -f %{buildroot}%{_sysconfdir}/my.cnf.d/client.cnf
  309. rm -f %{buildroot}%{_libdir}/libmysqlclient*.so*
  310. rm -f %{buildroot}%{_libdir}/mysql/plugin/daemon_example.ini
  311. %ifarch x86_64
  312. %if %{with tokudb}
  313. pushd release
  314. install -m644 ./storage/tokudb/tokudb.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/
  315. popd
  316. %if %{with systemd}
  317. mv %{buildroot}/etc/systemd/system/mariadb.service.d/tokudb.conf %{buildroot}%{_unitdir}/mariadb.service.d/tokudb.conf
  318. %endif
  319. %endif
  320. %else
  321. rm -f %{buildroot}%{_mandir}/man1/tokuft*
  322. %endif
  323. # install files for galera cluster.
  324. install -m755 ./scripts/galera_new_cluster.sh %{buildroot}%{_bindir}/galera_new_cluster
  325. install -m755 ./scripts/galera_recovery.sh %{buildroot}%{_bindir}/galera_recovery
  326. perl -pi -e 's|^wsrep_provider=.*$|wsrep_provider=%{_libdir}/galera/libgalera_smm.so|' %{buildroot}%{_datadir}/mysql/wsrep.cnf
  327. perl -pi -e 's|^wsrep_notify_cmd=.*$|#wsrep_notify_cmd=%{_datadir}/mysql/wsrep_notify|' %{buildroot}%{_datadir}/mysql/wsrep.cnf
  328. install -m644 %{buildroot}%{_datadir}/mysql/wsrep.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/galera.cnf
  329. # force linking statically.
  330. perl -pi -e 's,-lmariadb,%{_libdir}/libmariadbclient.a,' %{buildroot}%{_bindir}/mysql_config
  331. perl -pi -e 's,-lmariadb,%{_libdir}/libmariadbclient.a,' %{buildroot}%{_datadir}/pkgconfig/mariadb.pc
  332. # install pam_user_map.so to /lib64/security for 64bit architectures
  333. %ifarch x86_64
  334. if [ ! -e %{buildroot}/%{_lib}/security/pam_user_map.so ]; then
  335. mkdir -p %{buildroot}/%{_lib}/security
  336. mv %{buildroot}/lib/security/pam_user_map.so %{buildroot}/%{_lib}/security/
  337. fi
  338. %endif
  339. # drop client library
  340. rm -f %{buildroot}%{_libdir}/libmariadb.so*
  341. rm -f %{buildroot}%{_prefix}/lib/pkgconfig/libmariadb.pc
  342. ##############################################################################
  343. %pre server
  344. # Create a MySQL user and group. Do not report any problems if it already
  345. # exists.
  346. datadir=/var/lib/mysql
  347. groupadd -r mysql 2> /dev/null || true
  348. useradd -M -r -d $datadir -s /bin/bash -c "MySQL server" -g mysql mysql 2> /dev/null || true
  349. # The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
  350. usermod -g mysql mysql 2> /dev/null || true
  351. %post server
  352. # Make MySQL start/shutdown automatically when the machine does it.
  353. if [ $1 = 1 ] ; then
  354. %if %{with systemd}
  355. %systemd_post %{daemon_name}.service
  356. %else
  357. if [ -x /sbin/chkconfig ] ; then
  358. /sbin/chkconfig --add mysql
  359. fi
  360. %endif
  361. basedir=`/usr/bin/my_print_defaults --mysqld|sed -ne 's/^--basedir=//p'|tail -1`
  362. if [ -z "$basedir" ] ; then
  363. basedir=/usr
  364. fi
  365. datadir=`/usr/bin/my_print_defaults --mysqld|sed -ne 's/^--datadir=//p'|tail -1`
  366. if [ -z "$datadir" ] ; then
  367. datadir=/var/lib/mysql
  368. else
  369. # datadir may be relative to a basedir!
  370. if ! expr $datadir : / > /dev/null; then
  371. datadir=$basedir/$datadir
  372. fi
  373. fi
  374. tmpdir=`/usr/bin/my_print_defaults --mysqld|sed -ne 's/^--datadir=//p'|tail -1`
  375. if [ -z "$datadir" ] ; then
  376. datadir=/var/lib/mysql
  377. else
  378. # datadir may be relative to a basedir!
  379. if ! expr $datadir : / > /dev/null; then
  380. datadir=$basedir/$datadir
  381. fi
  382. fi
  383. # Change permissions so that the user that will run the MySQL daemon
  384. # owns all database files.
  385. chown -R mysql:mysql $datadir
  386. if [ ! -e $datadir/mysql ]; then
  387. # Create data directory
  388. mkdir -p $datadir/{mysql,test}
  389. chown -R mysql:mysql $datadir
  390. # Initiate databases
  391. /usr/bin/mysql_install_db --rpm --user=mysql
  392. fi
  393. # Change permissions again to fix any new files.
  394. chown -R mysql:mysql $datadir
  395. # Fix permissions for the permission database so that only the user
  396. # can read them.
  397. chmod -R og-rw $datadir/mysql
  398. fi
  399. %preun server
  400. %if %{with systemd}
  401. %systemd_preun %{daemon_name}.service
  402. %else
  403. %endif
  404. if [ $1 = 0 ] ; then
  405. # Stop MySQL before uninstalling it
  406. if [ -x /etc/init.d/mysql ] ; then
  407. /etc/init.d/mysql stop > /dev/null
  408. fi
  409. # Don't start it automatically anymore
  410. if [ -x /sbin/chkconfig ] ; then
  411. /sbin/chkconfig --del mysql
  412. fi
  413. fi
  414. %postun server
  415. %if %{with systemd}
  416. %systemd_postun_with_restart %{daemon_name}.service
  417. %else
  418. if [ $1 -ge 1 ]; then
  419. if [ -x /etc/init.d/mysql ] ; then
  420. # only restart the server if it was alredy running
  421. /etc/init.d/mysql status > /dev/null 2>&1 && \
  422. /etc/init.d/mysql restart
  423. fi
  424. fi
  425. %endif
  426. %pre mroonga
  427. if [ $1 -gt 1 ]; then
  428. /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/uninstall.sql || cat <<EOF
  429. An error occured when to unregister plugin.
  430. Please run a command below:
  431. /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/uninstall.sql
  432. EOF
  433. fi
  434. %post mroonga
  435. if [ $1 -eq 1 ] ; then
  436. /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/install.sql || cat <<EOF
  437. An error occured when to register plugin.
  438. Please run a command below:
  439. /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/install.sql
  440. EOF
  441. fi
  442. %postun mroonga
  443. if [ $1 -gt 0 ] ; then
  444. /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/install.sql || cat <<EOF
  445. An error occured when to register plugin.
  446. Please run a command below:
  447. /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/install.sql
  448. EOF
  449. fi
  450. # Clean up the BuildRoot
  451. %clean
  452. [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
  453. %files server
  454. %defattr(-,root,root)
  455. %{!?_licensedir:%global license %%doc}
  456. %license COPYING*
  457. %doc CREDITS README.md doc/*
  458. %doc support-files/rpm/*.cnf
  459. %doc release/support-files/*.cnf
  460. %doc %{_infodir}/mysql.info*
  461. %doc %{_mandir}/man1/aria_*.1*
  462. %doc %{_mandir}/man1/innochecksum.1*
  463. %doc %{_mandir}/man1/mariabackup.1*
  464. %doc %{_mandir}/man1/mariadb-backup.1*
  465. %doc %{_mandir}/man1/mariadb-convert-table-format.1*
  466. %doc %{_mandir}/man1/mariadb-conv.1*
  467. %doc %{_mandir}/man1/mariadb-dumpslow.1*
  468. %doc %{_mandir}/man1/mariadb-fix-extensions.1*
  469. %doc %{_mandir}/man1/mariadb-hotcopy.1*
  470. %doc %{_mandir}/man1/mariadb-install-db.1*
  471. %doc %{_mandir}/man1/mariadb-ldb.1*
  472. %doc %{_mandir}/man1/mariadb-secure-installation.1*
  473. %doc %{_mandir}/man1/mariadb-service-convert.1*
  474. %doc %{_mandir}/man1/mariadb-setpermission.1*
  475. %doc %{_mandir}/man1/mariadb-tzinfo-to-sql.1*
  476. %doc %{_mandir}/man1/mariadb-upgrade.1*
  477. %doc %{_mandir}/man1/mariadbd-multi.1*
  478. %doc %{_mandir}/man1/mariadbd-safe-helper.1*
  479. %doc %{_mandir}/man1/mariadbd-safe.1*
  480. %doc %{_mandir}/man1/mbstream.1*
  481. %doc %{_mandir}/man1/my_print_defaults.1*
  482. %doc %{_mandir}/man1/my_safe_process.1*
  483. %doc %{_mandir}/man1/myisam_ftdump.1*
  484. %doc %{_mandir}/man1/myisamchk.1*
  485. %doc %{_mandir}/man1/myisamlog.1*
  486. %doc %{_mandir}/man1/myisampack.1*
  487. %doc %{_mandir}/man1/myrocks_hotbackup.1*
  488. %doc %{_mandir}/man1/mysql_convert_table_format.1*
  489. %doc %{_mandir}/man1/mysql_fix_extensions.1*
  490. %doc %{_mandir}/man1/mysqld_multi.1*
  491. %doc %{_mandir}/man1/mysqld_safe.1*
  492. %doc %{_mandir}/man1/mysqld_safe_helper.1*
  493. %doc %{_mandir}/man1/mysqldumpslow.1*
  494. %doc %{_mandir}/man1/mysql_install_db.1*
  495. %doc %{_mandir}/man1/mysql_ldb.1*
  496. %doc %{_mandir}/man1/mysql_secure_installation.1*
  497. %doc %{_mandir}/man1/mysql_setpermission.1*
  498. %doc %{_mandir}/man1/mysql_upgrade.1*
  499. %doc %{_mandir}/man1/mysqlhotcopy.1*
  500. %doc %{_mandir}/man1/mysql.server.1*
  501. %doc %{_mandir}/man1/mysqltest.1*
  502. %doc %{_mandir}/man1/mysql_tzinfo_to_sql.1*
  503. %doc %{_mandir}/man1/perror.1*
  504. %doc %{_mandir}/man1/replace.1*
  505. %doc %{_mandir}/man1/resolve_stack_dump.1*
  506. %doc %{_mandir}/man1/resolveip.1*
  507. %doc %{_mandir}/man1/wsrep_sst_*.1*
  508. %doc %{_mandir}/man8/mysqld.8*
  509. %doc %{_mandir}/man8/mariadbd.8*
  510. %{_bindir}/aria_*
  511. %{_bindir}/innochecksum
  512. %{_bindir}/mariabackup
  513. %{_bindir}/mariadb-backup
  514. %{_bindir}/mariadb-conv
  515. %{_bindir}/mariadb-convert-table-format
  516. %{_bindir}/mariadb-dumpslow
  517. %{_bindir}/mariadb-fix-extensions
  518. %{_bindir}/mariadb-hotcopy
  519. %{_bindir}/mariadb-install-db
  520. %{_bindir}/mariadb-secure-installation
  521. %{_bindir}/mariadb-setpermission
  522. %{_bindir}/mariadb-tzinfo-to-sql
  523. %{_bindir}/mariadb-upgrade
  524. %{_bindir}/mariadbd-multi
  525. %{_bindir}/mariadbd-safe
  526. %{_bindir}/mariadbd-safe-helper
  527. %{_bindir}/mbstream
  528. %{_bindir}/my_print_defaults
  529. %{_bindir}/myisam_ftdump
  530. %{_bindir}/myisamchk
  531. %{_bindir}/myisamlog
  532. %{_bindir}/myisampack
  533. %{_bindir}/mysql_convert_table_format
  534. %{_bindir}/mysql_fix_extensions
  535. %{_bindir}/mysql_install_db
  536. %{_bindir}/mysql_secure_installation
  537. %{_bindir}/mysql_setpermission
  538. %{_bindir}/mysql_tzinfo_to_sql
  539. %{_bindir}/mysql_upgrade
  540. %{_bindir}/mysqld_multi
  541. %{_bindir}/mysqld_safe
  542. %{_bindir}/mysqld_safe_helper
  543. %{_bindir}/mysqldumpslow
  544. %{_bindir}/mysqlhotcopy
  545. %{_bindir}/mysqltest
  546. %{_bindir}/perror
  547. %{_bindir}/replace
  548. %{_bindir}/resolve_stack_dump
  549. %{_bindir}/resolveip
  550. %{_bindir}/wsrep*
  551. %{_sbindir}/mariadbd
  552. %{_sbindir}/mysqld
  553. %{_sbindir}/rcmysql
  554. %dir %{_libdir}/mysql
  555. %dir %{_libdir}/mysql/plugin
  556. %attr(0700,mysql,root) %dir %{_libdir}/mysql/plugin/auth_pam_tool_dir
  557. %attr(4755,root,root) %{_libdir}/mysql/plugin/auth_pam_tool_dir/auth_pam_tool
  558. %{_libdir}/mysql/plugin/*.so
  559. /%{_lib}/security/pam_user_map.so
  560. %exclude %{_libdir}/mysql/plugin/ha_connect.so
  561. %exclude %{_libdir}/mysql/plugin/ha_mroonga.so
  562. %exclude %{_datadir}/mysql/mroonga
  563. #exclude %{_datadir}/mysql/systemd/use_galera_new_cluster.conf
  564. %dir %{_sysconfdir}/my.cnf.d
  565. %config(noreplace) %{_sysconfdir}/my.cnf.d/enable_encryption.preset
  566. %config(noreplace) %{_sysconfdir}/my.cnf.d/server.cnf
  567. %config(noreplace) %{_sysconfdir}/my.cnf.d/spider.cnf
  568. %config(noreplace) %{_sysconfdir}/security/user_map.conf
  569. %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
  570. %if %{with systemd}
  571. %{_bindir}/mariadb-service-convert
  572. %{_unitdir}/*.service
  573. %{_tmpfilesdir}/%{name}.conf
  574. %dir %{_unitdir}/mariadb.service.d
  575. %{_libexecdir}/*
  576. %{_sysusersdir}/%{name}.conf
  577. %else
  578. %{_sysconfdir}/init.d/mysql
  579. %endif
  580. %{_datadir}/mysql
  581. %attr(755, mysql, mysql) %dir %{mysqldatadir}
  582. %ifarch x86_64
  583. %{_bindir}/mariadb-ldb
  584. %{_bindir}/myrocks_hotbackup
  585. %{_bindir}/mysql_ldb
  586. %{_bindir}/sst_dump
  587. %if %{with tokudb}
  588. %exclude %{_libdir}/mysql/plugin/ha_tokudb.so
  589. %endif
  590. %endif
  591. %files mroonga
  592. %defattr(-, root, root)
  593. %{!?_licensedir:%global license %%doc}
  594. %license groonga groonga-normalizer-mysql
  595. %{_libdir}/mysql/plugin/ha_mroonga.so
  596. %{_datadir}/mysql/mroonga
  597. %files connect
  598. %defattr(-, root, root)
  599. %{_libdir}/mysql/plugin/ha_connect.so
  600. %files galera
  601. %defattr(-, root, root)
  602. %doc Docs/README-wsrep
  603. %doc %{_mandir}/man1/galera_new_cluster.1*
  604. %doc %{_mandir}/man1/galera_recovery.1*
  605. %dir %{_sysconfdir}/my.cnf.d
  606. %config(noreplace) %{_sysconfdir}/my.cnf.d/galera.cnf
  607. %{_bindir}/galera_new_cluster
  608. %{_bindir}/galera_recovery
  609. %if %{with systemd}
  610. %{_datadir}/mysql/systemd/use_galera_new_cluster.conf
  611. %endif
  612. %ifarch x86_64
  613. %if %{with tokudb}
  614. %files tokudb
  615. %defattr(-, root, root)
  616. %dir %{_sysconfdir}/my.cnf.d
  617. %config(noreplace) %{_sysconfdir}/my.cnf.d/tokudb.cnf
  618. %{_libdir}/mysql/plugin/ha_tokudb.so
  619. %{_bindir}/tokuft*
  620. %doc %{_mandir}/man1/tokuft*
  621. %if %{with systemd}
  622. %{_unitdir}/mariadb.service.d/tokudb.conf
  623. %endif
  624. %endif
  625. %endif
  626. %files client
  627. %defattr(-, root, root)
  628. %{!?_licensedir:%global license %%doc}
  629. %license COPYING*
  630. %config(noreplace) %{_sysconfdir}/my.cnf.d/mysql-clients.cnf
  631. %{_bindir}/mariadb
  632. %{_bindir}/mariadb-access
  633. %{_bindir}/mariadb-admin
  634. %{_bindir}/mariadb-binlog
  635. %{_bindir}/mariadb-check
  636. %{_bindir}/mariadb-dump
  637. %{_bindir}/mariadb-find-rows
  638. %{_bindir}/mariadb-import
  639. %{_bindir}/mariadb-plugin
  640. %{_bindir}/mariadb-show
  641. %{_bindir}/mariadb-slap
  642. %{_bindir}/mariadb-waitpid
  643. %{_bindir}/msql2mysql
  644. %{_bindir}/mysql
  645. %{_bindir}/mysql_find_rows
  646. %{_bindir}/mysql_plugin
  647. %{_bindir}/mysql_waitpid
  648. %{_bindir}/mysqlaccess
  649. %{_bindir}/mysqladmin
  650. %{_bindir}/mysqlbinlog
  651. %{_bindir}/mysqlcheck
  652. %{_bindir}/mysqldump
  653. %{_bindir}/mysqlimport
  654. %{_bindir}/mysqlshow
  655. %{_bindir}/mysqlslap
  656. %{_bindir}/mytop
  657. %doc %{_mandir}/man1/mariadb.1*
  658. %doc %{_mandir}/man1/mariadb-access.1*
  659. %doc %{_mandir}/man1/mariadb-admin.1*
  660. %doc %{_mandir}/man1/mariadb-binlog.1*
  661. %doc %{_mandir}/man1/mariadb-check.1*
  662. %doc %{_mandir}/man1/mariadb-dump.1*
  663. %doc %{_mandir}/man1/mariadb-find-rows.1*
  664. %doc %{_mandir}/man1/mariadb-import.1*
  665. %doc %{_mandir}/man1/mariadb-plugin.1*
  666. %doc %{_mandir}/man1/mariadb-show.1*
  667. %doc %{_mandir}/man1/mariadb-slap.1*
  668. %doc %{_mandir}/man1/mariadb-waitpid.1*
  669. %doc %{_mandir}/man1/msql2mysql.1*
  670. %doc %{_mandir}/man1/mysql.1*
  671. %doc %{_mandir}/man1/mysql_find_rows.1*
  672. %doc %{_mandir}/man1/mysql_waitpid.1*
  673. %doc %{_mandir}/man1/mysqlaccess.1*
  674. %doc %{_mandir}/man1/mysqladmin.1*
  675. %doc %{_mandir}/man1/mysqlbinlog.1*
  676. %doc %{_mandir}/man1/mysqlcheck.1*
  677. %doc %{_mandir}/man1/mysqldump.1*
  678. %doc %{_mandir}/man1/mysqlimport.1*
  679. %doc %{_mandir}/man1/mysql_plugin.1*
  680. %doc %{_mandir}/man1/mysqlshow.1*
  681. %doc %{_mandir}/man1/mysqlslap.1*
  682. %doc %{_mandir}/man1/mytop.1*
  683. %files devel
  684. %defattr(-, root, root)
  685. %doc %{_mandir}/man1/mysql_config.1*
  686. %{_bindir}/mariadb-config
  687. %{_bindir}/mariadb_config
  688. %{_bindir}/mysql_config
  689. %{_includedir}/mysql
  690. %{_datadir}/aclocal/mysql.m4
  691. %{_libdir}/pkgconfig/mariadb.pc
  692. %exclude %{_libdir}/pkgconfig/libmariadb.pc
  693. %{_libdir}/*.so
  694. %{_sysconfdir}/rpm/*
  695. %{_bindir}/mariadb-embedded
  696. %{_bindir}/mysql_embedded
  697. %doc %{_mandir}/man1/mariadb_config.1*
  698. %doc %{_mandir}/man1/mariadb-embedded.1*
  699. %doc %{_mandir}/man1/mysql_embedded.1*
  700. %files static
  701. %defattr(-,root,root)
  702. %{_libdir}/lib*.a
  703. %if %{with source}
  704. %files source
  705. %defattr(-, root, root)
  706. %{_datadir}/mariadb-source
  707. %endif
  708. %files test
  709. %defattr(-, root, root)
  710. %attr(-, root, root) %{_datadir}/mysql-test
  711. %{_bindir}/mariadb-client-test
  712. %{_bindir}/mariadb-client-test-embedded
  713. %{_bindir}/mariadb-test
  714. %{_bindir}/mariadb-test-embedded
  715. %{_bindir}/mysql_client_test
  716. %{_bindir}/mysql_client_test_embedded
  717. %{_bindir}/mysqltest_embedded
  718. %{_bindir}/test-connect-t
  719. %doc %{_mandir}/man1/mariadb-client-test-embedded.1*
  720. %doc %{_mandir}/man1/mariadb-client-test.1*
  721. %doc %{_mandir}/man1/mariadb-test-embedded.1*
  722. %doc %{_mandir}/man1/mariadb-test.1*
  723. %doc %{_mandir}/man1/mysql_client_test.1*
  724. %doc %{_mandir}/man1/mysql-stress-test.pl.1*
  725. %doc %{_mandir}/man1/mysql-test-run.pl.1*
  726. %doc %{_mandir}/man1/mysql_client_test_embedded.1*
  727. %doc %{_mandir}/man1/mysqltest_embedded.1*
  728. %files embedded
  729. %defattr(-,root,root)
  730. %{_libdir}/libmariadbd.so.*
  731. %changelog
  732. * Sat May 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.5.10-1
  733. - new upstream release.
  734. - updated patch1000.
  735. - dropped Patch1001: fixed in upstream.
  736. * Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.5.9-1
  737. - new upstream release.
  738. - updated patch1000.
  739. - dropped Patch2000: fixed in upstream.
  740. - added Patch1001 to fix FTBFS.
  741. * Thu Nov 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.5.8-1
  742. - new upstream release.
  743. - updated patch1000.
  744. - added Patch2000 to fix failure on starting mariadbd.
  745. * Wed Nov 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.5.7-1
  746. - new upstream release.
  747. - replaced patch1000 to update Groonga to v10.0.8.
  748. * Thu Oct 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.5.6-1
  749. - new upstream release.
  750. - replaced patch1000 to update Groonga to v10.0.7.
  751. - dropped Patch1001: fixed in upstream.
  752. * Wed Aug 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.5.5-1
  753. - new upstream release.
  754. - replaced patch1000 to update Groonga to v10.0.5.
  755. - added Patch1001 to fix FTBFS.
  756. - disabled tokudb as default.
  757. * Thu May 14 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.4.13-1
  758. - new upstream release.
  759. - replaced patch1000 to update Groonga to v10.0.2.
  760. - added systemd support (disabled as default).
  761. * Mon Feb 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.4.12-1
  762. - new upstream release.
  763. - replaced patch1000 to update Groonga to v9.1.2.
  764. * Wed Dec 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.4.11-1
  765. - new upstream release.
  766. - replaced patch1000 to update Groonga to v9.1.0.
  767. * Sat Nov 09 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.4.10-1
  768. - new upstream release.
  769. * Wed Nov 06 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.4.9-1
  770. - new upstream release.
  771. - replaced patch1000 to update Groonga to v9.0.9.
  772. * Fri Aug 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.4.7-1
  773. - new upstream release.
  774. - replaced patch1000 to update Groonga to v9.0.7.
  775. * Fri May 31 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.15-1
  776. - new upstream release.
  777. - replaced patch1000 to update Groonga to v9.0.3.
  778. - added BR:lz4-devel.
  779. * Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.14-1
  780. - new upstream release.
  781. - replaced patch1000 to update Groonga to v9.0.2.
  782. - added a subpackage for galera cluster.
  783. - enabled regexp with groonga.
  784. * Thu Jan 31 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.12-1
  785. - new upstream release.
  786. - replaced patch1000 to update Groonga to v8.1.1.
  787. * Fri Nov 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.11-1
  788. - new upstream release.
  789. - replaced patch1000 to update Mroonga to v8.09.
  790. * Mon Nov 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.10-2
  791. - drop shared client library.
  792. * Mon Nov 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.10-1
  793. - new upstream release.
  794. - replaced patch1000 to update Mroonga to v8.07.
  795. * Fri Mar 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.2.14-1
  796. - new upstream release.
  797. - replaced patch1000 to update Mroonga to v8.01.
  798. * Sat Dec 02 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.2.11-1
  799. - new upstream release.
  800. - replaced patch1000 to update Mroonga to v7.09.
  801. * Sun Jul 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.2.7-1
  802. - new upstream release.
  803. - replaced patch1000 to update Mroonga to v7.04.
  804. * Thu May 4 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.23-1
  805. - new upstream release.
  806. - replaced patch1000 to update Mroonga to v7.02.
  807. * Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.22-1
  808. - new upstream release.
  809. - replaced patch1000 to update Mroonga to v7.00.
  810. * Wed Dec 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.20-1
  811. - new upstream release.
  812. - replaced patch1000 to update Mroonga to v6.11.
  813. * Tue Jul 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.16-1
  814. - new upstream release.
  815. - replaced patch1000 to update Mroonga to v6.06.
  816. * Wed May 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.14-1
  817. - new upstream release.
  818. - replaced patch1000 to update Mroonga to v6.02.
  819. * Fri Apr 1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.13-1
  820. - new upstream release.
  821. - replaced patch1000 to update Mroonga to v6.01.
  822. * Tue Mar 15 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.12-1
  823. - new upstream release.
  824. - replaced patch1000 to update Mroonga to git HEAD.
  825. * Sat Jan 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.11-1
  826. - new upstream release.
  827. - replaced patch1000 to update Mroonga to v5.12.
  828. * Fri Jan 8 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.10-1
  829. - new upstream release.
  830. - replaced patch1000 to update Mroonga to v5.11.
  831. - moved CONNECT and TokuDB storage engines to subpackages.
  832. * Sun Nov 29 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.9-4
  833. - replaced patch1000 to update Mroonga to git HEAD.
  834. * Sat Nov 28 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.9-3
  835. - replaced patch1000 to update Mroonga to git HEAD.
  836. * Thu Nov 26 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.9-2
  837. - replaced patch1000 to update Mroonga to git HEAD.
  838. * Tue Nov 24 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.9-1
  839. - new upstream release.
  840. - replaced patch1000 to update Mroonga to git HEAD.
  841. * Fri Oct 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.8-3
  842. - added BR:jemalloc-devel.
  843. * Thu Oct 29 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.8-2
  844. - replaced patch1000 to update Mroonga to 5.09.
  845. * Wed Oct 21 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.8-1
  846. - new upstream release.
  847. - replaced patch1000 for MariaDB 10.1.8.
  848. * Fri Oct 9 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.21-3
  849. - replaced patch1000 to update Mroonga to 5.08.
  850. * Mon Aug 31 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.21-2
  851. - replaced patch1000 to update Mroonga to 5.06.
  852. * Mon Aug 10 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.21-1
  853. - new upstream release.
  854. - added patch1000 to update Mroonga from 5.02 to 5.05.
  855. * Tue Jun 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.20-2
  856. - fixed dependencies.
  857. * Fri Jun 19 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.20-1
  858. - new upstream release.
  859. * Sun May 10 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.19-1
  860. - new upstream release.
  861. * Fri May 8 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.18-1
  862. - new upstream release.
  863. * Tue Mar 3 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.17-1
  864. - new upstream release.
  865. * Wed Jan 28 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.16-1
  866. - new upstream release.
  867. * Wed Nov 26 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.15-1
  868. - new upstream release.
  869. - enabled bundled Mroonga.
  870. * Mon Sep 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.14-1
  871. - new upstream release.
  872. * Sat May 31 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.11-1
  873. - new upstream release.
  874. * Sun Apr 13 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.10-2
  875. - fixed Conflicts: and Obsoletes:.
  876. * Mon Mar 31 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.10-1
  877. - new upstream release.
  878. * Mon Mar 24 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.9-1
  879. - new upstream release.
  880. * Tue Feb 11 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.8-1
  881. - new upstream release.
  882. * Sat Dec 07 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.6-2
  883. - removed duplicated files.
  884. * Wed Dec 04 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.6-1
  885. - switched to MariaDB.
  886. * Wed Feb 20 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.30-1
  887. - new upstream release.
  888. * Fri Nov 16 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.28-1
  889. - new upstream release.
  890. * Sat Sep 15 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.27-1
  891. - new upstream release.
  892. - added a sub-package "MySQL-source".
  893. - added some macros for rpm.
  894. * Thu Jun 21 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.25-1
  895. - new upstream release.
  896. * Thu May 10 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.24-1
  897. - new upstream release.
  898. * Tue May 01 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.23-1
  899. - new upstream release.
  900. - added "Vendor:" and "Distribution:" tag.
  901. * Tue Aug 23 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.15-1
  902. - new upstream release.
  903. - removed NDB cluster support.
  904. * Mon Apr 18 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-3
  905. - Added "BR: zlib-devel" to MySQL-devel.
  906. * Sun Apr 03 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-2
  907. - Added "BR: openssl-devel" to MySQL-devel.
  908. * Fri Mar 11 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.56-1
  909. - new upstream release.
  910. * Mon Jan 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.54-1
  911. - new upstream release.
  912. - updated jp-patch.
  913. - added ssl support.
  914. * Sat Nov 06 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.52-1
  915. - new upstream release.
  916. - replaced '%%__find_requires' to '%%__perl_requires'.
  917. - updated jp-patch.
  918. * Fri Oct 29 2010 Shu KONNO <owa@bg.wakwak.com> 5.1.44-3
  919. - added mysql-5.1.44-lib64.patch (on x86_64)
  920. - added -fPIC (on x86_64)
  921. * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.44-2
  922. - made embedded package again
  923. * Fri Mar 05 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.44-1
  924. - new upstream release.
  925. - updated jp-patch.
  926. * Thu Feb 04 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.43-2
  927. - VineSeed: rebuilt with new toolchain.
  928. * Wed Feb 03 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.43-1
  929. - new upstream release.
  930. - fixed CVE-2009-4484.
  931. * Fri Nov 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.41-1
  932. - new upstream release.
  933. * Thu Nov 19 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-2
  934. - added net-tools to 'Requires'.
  935. - added groff to 'BuildRequires'.
  936. - renamed subpackage 'MySQL-shared' to 'libmysqlclient16' (VineSeed only).
  937. * Tue Nov 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.40-1
  938. - new upstream release.
  939. * Sat Sep 26 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.39-1
  940. - new upstream release.
  941. * Sun Jul 5 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.36-1
  942. - new upstream release.
  943. - dropped %%Patch100 (fixed in upstream).
  944. * Sat Jun 6 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.35-1
  945. - new upstream release.
  946. - add %%Patch100 (no longer needed for MySQL-5.1.36 or later).
  947. * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.34-1
  948. - new upstream release.
  949. - rename 'MySQL-bench' to 'MySQL-test'.
  950. - update Patch0.
  951. - change default charset to 'utf8'.
  952. * Sat Apr 12 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.51a-1
  953. - new upstream release.
  954. - update Patch0.
  955. - add "--with-client-charset=ujis".
  956. - sync %%files to official RPM.
  957. - remove MySQL-Max.
  958. * Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl7
  959. - for VineSeed
  960. * Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.0.27-0vl6
  961. - move shared library from /usr/lib/ to /usr/lib/mysql/
  962. - add /etc/ld.so.conf.d/*.conf
  963. - fix broken libmysqlcient*.la files (or should we remove them permanently?)
  964. * Sat Jun 16 2007 IWAI, Masaharu <iwai@alib.jp> 5.0.27-0vl5
  965. - rebuild <BTS:VineLinux:534>
  966. * Mon Nov 13 2006 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.27-0vl4
  967. - added -fPIC
  968. * Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl3
  969. - fixed dependency. <BTS:338>
  970. * Mon Oct 30 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl2
  971. - add %%Patch1. <BTS:320>
  972. * Sat Oct 28 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.27-0vl1
  973. - new upstream release.
  974. * Fri Oct 27 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.26-0vl1
  975. - new upstream release.
  976. * Sat Jun 3 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.22-0vl1
  977. - new upstream release.
  978. * Sat May 13 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl1
  979. - release++.
  980. * Wed May 10 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.0.21-0vl0
  981. - new upstream release.
  982. - for VineSeed.
  983. * Wed Feb 8 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.16-0vl0
  984. - new upstream release.
  985. - replace Patch0 for MySQL-4.1.16.
  986. * Thu Oct 6 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.1.14-0vl0
  987. - new upstream release.
  988. - add Patch0.
  989. * Tue Sep 6 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.25-0vl0
  990. - new upstream version
  991. -- mysql-4.0.25
  992. * Fri Jan 21 2005 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.23-0vl0
  993. - new upstream version
  994. -- mysql-4.0.23
  995. * Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.22-0vl0
  996. - new upstream version
  997. -- mysql-4.0.22
  998. * Tue Sep 28 2004 Takeyuki FUJIOKA <fuji@ftserve.net> 4.0.21-0vl1
  999. - new upstream version
  1000. -- mysql-4.0.21
  1001. * Fri May 21 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.20-0vl1
  1002. - new upstream version
  1003. -- mysql-4.0.20
  1004. * Tue May 04 2004 Tomoya TAKA <taka@vinelinux.org> 4.0.18-0vl2
  1005. - modify CFLAGS, CXXFLAGS and configure options for alpha
  1006. * Tue Mar 23 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.18-0vl1
  1007. - Upgraded to MySQL-4
  1008. - added "with-charset=ujis" and "without-readline" to configure (vineseed-plus-02150)
  1009. - merged to MySQL Official packages
  1010. -- renamed package "MySQL" to "MySQL-server"
  1011. -- when using gcc, _always_ use CXX=gcc
  1012. -- replaced Copyright with License field (Copyright is obsolete)
  1013. -- added myisam_ftdump to the Server package
  1014. -- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
  1015. -- fixed file permissions (BUG 1672)
  1016. -- removed dependency on MySQL-client from the MySQL-devel subpackage
  1017. -- as it is not really required. (BUG 1610)
  1018. -- Fixed BUG 1162 (removed macro names from the changelog)
  1019. -- Really fixed BUG 998 (disable the checking for installed but
  1020. -- unpackaged files)
  1021. -- Fixed BUG 959 (libmysqld not being compiled properly)
  1022. -- Fixed BUG 998 (RPM build errors): added missing files to the
  1023. -- distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
  1024. -- mysql_fix_privilege_tables.1), removed "-n" from install section.
  1025. -- removed the GIF Icon (file was not included in the sources anyway)
  1026. -- removed unused variable shared_lib_version
  1027. -- do not run automake before building the standard binary
  1028. -- (should not be necessary)
  1029. -- add server suffix '-standard' to standard binary (to be in line
  1030. -- with the binary tarball distributions)
  1031. -- allow overriding CC and CXX (required when building
  1032. -- with other compilers)
  1033. * Mon Apr 14 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.23.56-0vl5
  1034. - added BuildRequires: automake16
  1035. * Thu Apr 03 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl3
  1036. - add '-fPIC -DPIC' to CFLAGS on alpha
  1037. - little fix of spec file
  1038. * Thu Mar 27 2003 Tomoya TAKA <taka@vinelinux.org> 3.23.56-0vl2
  1039. - enable MySQL-shared subpackage for alpha
  1040. - delete 'BuildPrereq: kernel24-headers' for alpha
  1041. - fix shared %files (exclude sparc)
  1042. * Tue Mar 18 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.56-0vl1
  1043. - new upstream version
  1044. * Sun Mar 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.23.55-0vl2
  1045. - fixed devel %files (dropped *.la files)
  1046. * Tue Jan 28 2003 Satoshi MACHINO <machino@vinelinux.org> 3.23.55-0vl1
  1047. - new upstream version
  1048. - fixed document permission
  1049. * Sat Dec 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.54a-0vl1
  1050. - new upstream version
  1051. * Sat Oct 19 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl2
  1052. - dropped MySQL-Max sub-pakage for sparc/sparc64/alpha
  1053. -- don't work
  1054. * Wed Oct 16 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.53-0vl1
  1055. - new upstream version
  1056. - diseble-assembler in configure on sparc,sparc64,alpha
  1057. * Wed Aug 21 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.52-0vl1
  1058. - new upstream version
  1059. - moved some man files to main package
  1060. - added enable-local-infile in configure
  1061. - changed --with-extra-charsets=all in configure
  1062. * Fri Jun 14 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl2
  1063. - fixed changelog
  1064. * Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.51-0vl1
  1065. - updated to mysql-3.23.51
  1066. * Fri Mar 15 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl2
  1067. - rebuild on zlib-1.1.4(security fix.)
  1068. * Mon Feb 18 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.49-0vl1
  1069. - updated to mysql-2.23.49
  1070. * Tue Feb 12 2002 Tomoya TAKA <taka@vinelinux.org> 3.23.48-0vl2
  1071. - add 'BuildPrereq: kernel24-headers' on alpha
  1072. - remove shared library and max on alpha
  1073. * Tue Feb 12 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.48-0vl1
  1074. - updated to mysql-3.23.48
  1075. * Thu Jan 03 2002 Satoshi MACHINO <machino@vinelinux.org> 3.23.47-0vl1
  1076. - updated to mysql-3.23.47
  1077. * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.46-0vl1
  1078. - updated to mysql-3.23.46
  1079. * Thu Nov 29 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.45-0vl1
  1080. - updated to mysql-3.23.45
  1081. * Mon Nov 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.44-0vl1
  1082. - updated to mysql-3.23.44
  1083. * Sat Oct 13 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.43-0vl1
  1084. - updated to mysql-3.23.43
  1085. - removed shared library and max on sparc
  1086. * Wed Sep 12 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.42-0vl1
  1087. - updated to mysql-3.23.42
  1088. - changed MYSQL_BUILD_CC: and MYSQL_BUILD_XCC: to -gcc
  1089. * Thu Aug 30 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.41-0vl1
  1090. - updated to mysql-3.23.41
  1091. * Wed Aug 22 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.40-0vl1
  1092. - updated to mysql-3.23.40
  1093. * Tue Jul 10 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.39-0vl1
  1094. - updated to mysql-3.23.39
  1095. * Fri Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2
  1096. - added configure --with-charset=ujis
  1097. * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl2
  1098. - used some rpmmacro
  1099. * Fri May 25 2001 Satoshi MACHINO <machino@vinelinux.org> 3.23.38-1vl1
  1100. - updated to MySQL-3.23.38
  1101. * Thu Dec 07 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl2
  1102. - removed Bench pakages
  1103. * Tue Dec 05 2000 Satoshi MACHINO <machino@vinelinux.org> 3.23.28-1vl1
  1104. - removed pt_BR locale
  1105. - build on Vine Linux
  1106. - partially used rpmmacros
  1107. - added %clean tag
  1108. * Fri Aug 18 2000 Tim Smith <tim@mysql.com>
  1109. - Added separate libmysql_r directory; now both a threaded
  1110. and non-threaded library is shipped.
  1111. * Tue Sep 28 1999 David Axmark <davida@mysql.com>
  1112. - Added the support-files/my-example.cnf to the docs directory.
  1113. - Removed devel dependency on base since it is about client
  1114. development.
  1115. * Wed Sep 8 1999 David Axmark <davida@mysql.com>
  1116. - Cleaned up some for 3.23.
  1117. * Thu Jul 1 1999 David Axmark <davida@mysql.com>
  1118. - Added support for shared libraries in a separate sub
  1119. package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
  1120. - The --enable-assembler switch is now automatically disables on
  1121. platforms there assembler code is unavailable. This should allow
  1122. building this RPM on non i386 systems.
  1123. * Mon Feb 22 1999 David Axmark <david@detron.se>
  1124. - Removed unportable cc switches from the spec file. The defaults can
  1125. now be overridden with environment variables. This feature is used
  1126. to compile the official RPM with optimal (but compiler version
  1127. specific) switches.
  1128. - Removed the repetitive description parts for the sub rpms. Maybe add
  1129. again if RPM gets a multiline macro capability.
  1130. - Added support for a pt_BR translation. Translation contributed by
  1131. Jorge Godoy <jorge@bestway.com.br>.
  1132. * Wed Nov 4 1998 David Axmark <david@detron.se>
  1133. - A lot of changes in all the rpm and install scripts. This may even
  1134. be a working RPM :-)
  1135. * Sun Aug 16 1998 David Axmark <david@detron.se>
  1136. - A developers changelog for MySQL is available in the source RPM. And
  1137. there is a history of major user visible changed in the Reference
  1138. Manual. Only RPM specific changes will be documented here.