diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 53a6ec066c06176ac4b1d3d7d59d0953ca39a410..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# percona-toolkit - -#### Description -Percona Toolkit is a collection of advanced open source command-line tools, developed and used by the Percona technical staff. - -#### 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 2d9d9ceb81c35d45e51854fa88da6790d3a9919d..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# percona-toolkit - -#### 介绍 -Percona Toolkit is a collection of advanced open source command-line tools, developed and used by the Percona technical staff. - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -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. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/percona-toolkit-3.3.1.tar.gz b/percona-toolkit-3.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bf8e2bb1e3b69a198f751098c97e0b503243fef3 Binary files /dev/null and b/percona-toolkit-3.3.1.tar.gz differ diff --git a/percona-toolkit.spec b/percona-toolkit.spec new file mode 100644 index 0000000000000000000000000000000000000000..80d0ec93b568c53f00c78d3ecb0dcc4ff859a943 --- /dev/null +++ b/percona-toolkit.spec @@ -0,0 +1,75 @@ +%define debug_package %{nil} +%undefine _missing_build_ids_terminate_build +%undefine _missing_build_ids_terminate_build +%define debug_package %{nil} + +%global version 3.3.1 +%global release 1 + +Name: percona-toolkit +Summary: Advanced MySQL and system command-line tools +Version: %{version} +Release: %{release} +Group: Applications/Databases +License: GPLv2 +Vendor: Percona +URL: http://www.percona.com/software/percona-toolkit/ +Source0: percona-toolkit-%{version}.tar.gz + +BuildRequires: perl(ExtUtils::MakeMaker) make +Requires: perl(DBI) >= 1.13, perl(DBD::mysql) >= 1.0, perl(Time::HiRes), perl(IO::Socket::SSL), perl(Digest::MD5), perl(Term::ReadKey) +AutoReq: no + +%description +Percona Toolkit is a collection of advanced command-line tools used by +Percona (http://www.percona.com/) support staff to perform a variety of +MySQL and system tasks that are too difficult or complex to perform manually. + +These tools are ideal alternatives to private or "one-off" scripts because +they are professionally developed, formally tested, and fully documented. +They are also fully self-contained, so installation is quick and easy and +no libraries are installed. + +Percona Toolkit is developed and supported by Percona. For more +information and other free, open-source software developed by Percona, +visit http://www.percona.com/software/. + +%prep +%setup -q + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +find $RPM_BUILD_ROOT -type f -name 'percona-toolkit.pod' -exec rm -f {} ';' +rm -rf $RPM_BUILD_ROOT/usr/share/perl5 +chmod -R u+w $RPM_BUILD_ROOT/* + +%post +if [ ! -e /etc/percona-toolkit/.percona.toolkit.uuid ]; then + mkdir -p /etc/percona-toolkit + if [ -r /sys/class/dmi/id/product_uuid ]; then + cat /sys/class/dmi/id/product_uuid > /etc/percona-toolkit/.percona.toolkit.uuid + else + perl -e 'printf+($}="%04x")."$}-$}-$}-$}-".$}x3,map rand 65537,0..7;' > /etc/percona-toolkit/.percona.toolkit.uuid + fi +fi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc COPYING INSTALL README.md Changelog +%{_bindir}/* +%{_mandir}/man1/*.1* + +%changelog +* Mon Nov 29 2021 bzhaoop - 3.3.1-1 +- Init package 3.3.1-1 for openEuler + diff --git a/percona-toolkit.yaml b/percona-toolkit.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2ac1e335a803ba96d3e1a3c6af60491807a2bed9 --- /dev/null +++ b/percona-toolkit.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://github.com/percona/percona-toolkit +tag_prefix: "" +separator: "."