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