2021-01-05 13:39:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sqlite3-to-mysql
|
|
|
|
#
|
2024-01-23 10:38:18 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-01-05 13:39:29 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-01-23 10:38:18 +00:00
|
|
|
%define short_name sqlite3-to-mysql
|
2021-06-20 16:10:08 +00:00
|
|
|
%define skip_python2 1
|
2021-01-05 13:39:29 +00:00
|
|
|
Name: python-sqlite3-to-mysql
|
2024-01-23 10:38:18 +00:00
|
|
|
Version: 2.1.7
|
2021-01-05 13:39:29 +00:00
|
|
|
Release: 0
|
2021-06-24 11:58:31 +00:00
|
|
|
Summary: A Python tool to transfer data from SQLite 3 to MySQL
|
2021-01-05 13:39:29 +00:00
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/techouse/sqlite3-to-mysql
|
2024-01-23 10:38:18 +00:00
|
|
|
Source: %{short_name}-%{version}.tar.gz
|
2023-10-24 07:58:23 +00:00
|
|
|
BuildRequires: %{python_module SQLAlchemy-Utils}
|
|
|
|
BuildRequires: %{python_module SQLAlchemy}
|
|
|
|
BuildRequires: %{python_module docker}
|
|
|
|
BuildRequires: %{python_module factory_boy}
|
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2021-01-05 13:39:29 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-06-20 16:10:08 +00:00
|
|
|
BuildRequires: docker
|
2022-12-05 17:23:26 +00:00
|
|
|
BuildRequires: fdupes
|
2021-06-20 16:10:08 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-10-24 07:58:23 +00:00
|
|
|
Requires: python-Unidecode >= 1.3.6
|
|
|
|
Requires: python-click >= 8.1.3
|
2024-01-23 10:38:18 +00:00
|
|
|
Requires: python-mysql-connector-python >= 8.2.0
|
|
|
|
Requires: python-packaging
|
|
|
|
Requires: python-pytimeparse2
|
2023-10-24 07:58:23 +00:00
|
|
|
Requires: python-simplejson >= 3.19.1
|
2022-12-05 17:23:26 +00:00
|
|
|
Requires: python-tabulate
|
2023-10-24 07:58:23 +00:00
|
|
|
Requires: python-tqdm >= 4.65.0
|
|
|
|
Requires: python-typing_extensions
|
2024-01-23 10:38:18 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-01-29 14:15:49 +00:00
|
|
|
Requires(postun): update-alternatives
|
2022-12-05 17:23:26 +00:00
|
|
|
BuildArch: noarch
|
2021-01-05 13:39:29 +00:00
|
|
|
# SECTION test requirements
|
2021-06-20 16:10:08 +00:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
2022-12-05 17:23:26 +00:00
|
|
|
BuildRequires: %{python_module click >= 7.0}
|
2021-06-20 16:10:08 +00:00
|
|
|
BuildRequires: %{python_module coverage}
|
|
|
|
BuildRequires: %{python_module ddt}
|
|
|
|
BuildRequires: %{python_module flake8}
|
2021-01-05 13:39:29 +00:00
|
|
|
BuildRequires: %{python_module mysql-connector-python >= 8.0.18}
|
|
|
|
BuildRequires: %{python_module packaging >= 20.3}
|
2021-06-20 16:10:08 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2021-01-05 13:39:29 +00:00
|
|
|
BuildRequires: %{python_module pytimeparse >= 1.1.8}
|
|
|
|
BuildRequires: %{python_module simplejson >= 3.16.0}
|
2021-06-20 16:10:08 +00:00
|
|
|
BuildRequires: %{python_module sphinxcontrib-programoutput}
|
2021-01-05 13:39:29 +00:00
|
|
|
BuildRequires: %{python_module tabulate}
|
|
|
|
BuildRequires: %{python_module tqdm >= 4.35.0}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2021-06-24 11:58:31 +00:00
|
|
|
A Python tool to transfer data from SQLite 3 to MySQL
|
2021-01-05 13:39:29 +00:00
|
|
|
|
|
|
|
%prep
|
2021-06-24 11:58:31 +00:00
|
|
|
%autosetup -p1 -n sqlite3-to-mysql-%{version}
|
2021-01-05 13:39:29 +00:00
|
|
|
|
|
|
|
%build
|
2023-10-24 07:58:23 +00:00
|
|
|
%pyproject_wheel
|
2021-01-05 13:39:29 +00:00
|
|
|
|
|
|
|
%install
|
2023-10-24 07:58:23 +00:00
|
|
|
%pyproject_install
|
2021-01-05 13:39:29 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sqlite3mysql
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative sqlite3mysql
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative sqlite3mysql
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%python_alternative %{_bindir}/sqlite3mysql
|
2022-12-05 17:23:26 +00:00
|
|
|
%{python_sitelib}/sqlite3_to_mysql-%{version}*-info
|
|
|
|
%{python_sitelib}/sqlite3_to_mysql
|
2021-01-05 13:39:29 +00:00
|
|
|
|
|
|
|
%changelog
|