mariadb-vl.spec 48 KB

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