diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:58:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:58:10 +0000 |
commit | c646393d131ea17b73dc1dad24dd7642507f93f6 (patch) | |
tree | e42964bf020a19e4e6352d7e2d93ce3b295b106e | |
parent | 22fe2715f5094e1239accb3aeb3e2bc4c5c5c019 (diff) |
automatic import of python-testing-mysqldopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-testing-mysqld.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/testing.mysqld-1.4.0.tar.gz diff --git a/python-testing-mysqld.spec b/python-testing-mysqld.spec new file mode 100644 index 0000000..af8fec1 --- /dev/null +++ b/python-testing-mysqld.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-testing.mysqld +Version: 1.4.0 +Release: 1 +Summary: automatically setups a mysqld instance in a temporary directory, and destroys it after testing +License: Apache License 2.0 +URL: https://github.com/tk0miya/testing.mysqld +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b2/f6/db025f2e45282c9bbb61d06ac2c7380bb32063fa05540751a68b0a203893/testing.mysqld-1.4.0.tar.gz +BuildArch: noarch + + +%description +Use easy_install (or pip):: + $ easy_install testing.mysqld +And ``testing.mysqld`` requires MySQL server in your PATH. + +%package -n python3-testing.mysqld +Summary: automatically setups a mysqld instance in a temporary directory, and destroys it after testing +Provides: python-testing.mysqld +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-testing.mysqld +Use easy_install (or pip):: + $ easy_install testing.mysqld +And ``testing.mysqld`` requires MySQL server in your PATH. + +%package help +Summary: Development documents and examples for testing.mysqld +Provides: python3-testing.mysqld-doc +%description help +Use easy_install (or pip):: + $ easy_install testing.mysqld +And ``testing.mysqld`` requires MySQL server in your PATH. + +%prep +%autosetup -n testing.mysqld-1.4.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-testing.mysqld -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +44a07ddc742cd333f93cccb29179b26b testing.mysqld-1.4.0.tar.gz |