mariadb-vl.spec 46 KB

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