.gear/dbsake.spec | 80 ++++++++++++++++++++++ .gear/rules | 3 + .../tags/d376583ea1b5a051c1e1fe1ee3e184260e73b046 | 6 ++ .gear/tags/list | 1 + MANIFEST.in | 2 +- 5 files changed, 91 insertions(+), 1 deletion(-) diff --git a/.gear/dbsake.spec b/.gear/dbsake.spec new file mode 100644 index 0000000..420f720 --- /dev/null +++ b/.gear/dbsake.spec @@ -0,0 +1,80 @@ +Name: dbsake +Version: 2.1.0 +Release: alt3 + +Summary: A DBA's (s)wiss-(a)rmy-(k)nif(e) for mysql +License: GPLv2 +Group: Databases +Url: https://github.com/abg/dbsake +BuildArch: noarch + +Source0: %name-%version.tar +Patch0: %name-%version-%release.patch + +BuildRequires(pre): rpm-build-python3 +BuildRequires: python3-module-sphinx python-tools-2to3 + + +%description +dbsake (pronounced "dee-bee sah-kay") is a set of commands to assist with: + +- Parsing MySQL .frm files and output DDL +- Splitting mysqldump output into a file per object +- Patching a my.cnf to remove or convert deprecated options +- Deploying a new standalone MySQL "sandbox" instance +- Decoding/encoding MySQL filenames +- Managing OS caching for a set of files + +Read the documentation at: http://docs.dbsake.net + +%prep +%setup +%patch0 -p1 + +sed -i 's|sphinx-build|sphinx-build-3|' docs/Makefile + +find -type f -name '*.py' -exec 2to3 -w -n '{}' + + +sed -i 's|#!.*/usr/bin/env python|#!/usr/bin/env python3|' \ + $(find ./ -name '*.py') + +%build +%python3_build + +pushd docs +make html +popd + +%install +%python3_install + +# remove pkg_resources dependency from setup.py console_scripts +cat <| %buildroot%_bindir/%name +#!%{__python3} +import sys + +import dbsake.cli + +if __name__ == '__main__': + sys.exit(dbsake.cli.main()) +EOF +chmod 0755 %buildroot%_bindir/%name + +# Drop builtin bundler: +find %buildroot%python3_sitelibdir/%name -type f -name '*distutils_ext.py*' -delete + +%files +%_bindir/%name +%python3_sitelibdir/%{name}* +%doc docs/_build/html HISTORY.rst README.rst AUTHORS.rst CONTRIBUTING.rst + + +%changelog +* Fri Nov 15 2019 Andrey Bychkov 2.1.0-alt3 +- python2 -> python3 + +* Mon Dec 21 2015 Terechkov Evgenii 2.1.0-alt2 +- Add missed submodules + +* Sun Dec 20 2015 Terechkov Evgenii 2.1.0-alt1 +- Initial build for ALT Linux Sisyphus diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..8e00d13 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +tar: @version@:. +diff: @version@:. . +spec: .gear/dbsake.spec diff --git a/.gear/tags/d376583ea1b5a051c1e1fe1ee3e184260e73b046 b/.gear/tags/d376583ea1b5a051c1e1fe1ee3e184260e73b046 new file mode 100644 index 0000000..df39a8e --- /dev/null +++ b/.gear/tags/d376583ea1b5a051c1e1fe1ee3e184260e73b046 @@ -0,0 +1,6 @@ +object 952589692f5ca3743eb2dffe79d9b977be2da03e +type commit +tag 2.1.0 +tagger Andrew Garner 1422509233 +0000 + +dbsake v2.1.0 diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..5a98751 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +d376583ea1b5a051c1e1fe1ee3e184260e73b046 2.1.0 diff --git a/MANIFEST.in b/MANIFEST.in index 4e1b0d1..d519ef4 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -11,4 +11,4 @@ recursive-exclude * __pycache__ recursive-exclude * *.py[co] recursive-include docs *.rst conf.py Makefile make.bat -recursive-include dbsake templates/* +recursive-include dbsake *