mariadb-vl.spec 46 KB

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