diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 8d7609113394ca27f3ba111df12d4b8668d958c3..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# mysql - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index da21f94f43f926b42a49b6a5fe5b1b840a66144a..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# mysql - -#### 介绍 -{**以下是码云平台说明,您可以替换此简介** -码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/mysql-boost-8.0.17.tar.gz b/mysql-boost-8.0.17.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..52db36242890ddf42d9dd18ab76b12e789093918 Binary files /dev/null and b/mysql-boost-8.0.17.tar.gz differ diff --git a/mysql.spec b/mysql.spec new file mode 100644 index 0000000000000000000000000000000000000000..377c44e2d13e6b66c4da328d6f4143a76e61a487 --- /dev/null +++ b/mysql.spec @@ -0,0 +1,83 @@ +%define debug_package %{nil} +%define __os_install_post %{nil} +%define __debug_install_post \ +%{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"\ +%{nil} + +Name: mysql +Version: 8.0.17 +Release: 2 +License: GPLv2 +Summary: The world's most popular open source database +URL: http://www.mysql.com/ +Source0: https://cdn.mysql.com/archives/%{name}-8.0/%{name}-boost-%{version}.tar.gz + +BuildRequires: cmake openssl-devel ncurses-devel libtirpc-devel rpcgen +Requires: libatomic >= 1.2.0 libstdc++ >= 7.3.0 ncurses libtirpc openssl + +%description +The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, +and robust SQL (Structured Query Language) database server. MySQL Server +is intended for mission-critical, heavy-load production systems as well +as for embedding into mass-deployed software. MySQL is a trademark of +Oracle and/or its affiliates + +The MySQL software has Dual Licensing, which means you can use the MySQL +software free of charge under the GNU General Public License +(http://www.gnu.org/licenses/). You can also purchase commercial MySQL +licenses from Oracle and/or its affiliates if you do not wish to be bound by the terms of +the GPL. See the chapter "Licensing and Support" in the manual for +further info. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql/data -DSYSCONFDIR=/etc \ + -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 \ + -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 \ + -DENABLED_LOCAL_INFILE=1 -DENABLE_DTRACE=0 -DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_COLLATION=utf8mb4_general_ci \ + -DWITH_EMBEDDED_SERVER=1 -DCMAKE_C_COMPILER=/usr/bin/gcc -DDOWNLOAD_BOOST=1 -DWITH_BOOST=./boost -DFORCE_INSOURCE_BUILD=1 +%make_build + +%install +%make_install + +#rm -rf %{buildroot}/usr/lib/debug +#rm -rf %{buildroot}/usr/src/debug + +%clean +rm -rf %{buildroot} + +%pre +if ! id %{name} > /dev/null 2>&1;then + useradd -M -s /sbin/nologin %{name} +fi + +%post +if [ -f %{_prefix}/local/%{name}/support-files/mysql.server > /dev/null 2>&1 ] && [ ! -f %{_initddir}/mysql > /dev/null 2>&1 ];then + cp %{_prefix}/local/%{name}/support-files/mysql.server %{_initddir}/mysql + chmod +x %{_initddir}/mysql + chkconfig --level 2345 mysql on +fi + +%preun +if [ -f %{_sysconfdir}/my.cnf ];then + mv %{_sysconfdir}/my.cnf %{_sysconfdir}/my.cnf.rpmold +fi +if [ -f %{_initddir}/mysql ];then + mv %{_initddir}/mysql %{_initddir}/mysql.rpmold +fi + +%postun +rm -rf %{_prefix}/local/%{name} +userdel -r %{name} &>/dev/null + +%files +%attr(755, %{name}, %{name}) %{_prefix}/local/%{name}/* +%exclude /usr/src/debug +%exclude /usr/lib/debug + +%changelog +* Fri Feb 28 2020 catastrowings 8.0.17-2 +- openEuler package init.