2016-06-30 13:45:40 +00:00
|
|
|
#
|
2024-05-20 18:12:28 +00:00
|
|
|
# spec file for package python-python-sql
|
2016-06-30 13:45:40 +00:00
|
|
|
#
|
2025-05-04 07:35:36 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2016-06-30 13:45:40 +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.
|
|
|
|
|
2018-10-03 08:42:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-30 13:45:40 +00:00
|
|
|
#
|
|
|
|
|
2018-10-03 08:42:26 +00:00
|
|
|
|
2024-01-16 14:52:26 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2024-05-20 18:19:52 +00:00
|
|
|
Name: python-python-sql
|
2025-05-04 07:35:36 +00:00
|
|
|
Version: 1.6.0
|
2016-06-30 13:45:40 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to write SQL queries
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
2018-10-03 08:46:16 +00:00
|
|
|
URL: https://pypi.io/project/python-sql
|
2024-05-20 18:19:52 +00:00
|
|
|
## Source: https://pypi.io/packages/source/p/python-sql/python-sql-%%{version}.tar.gz
|
2024-05-20 18:12:28 +00:00
|
|
|
## Naming scheme broken upsream
|
2024-05-20 18:19:52 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/python_sql/python_sql-%{version}.tar.gz
|
2024-01-09 22:05:09 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-10-03 08:46:16 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-01-09 22:05:09 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2024-05-20 18:19:52 +00:00
|
|
|
BuildRequires: fdupes
|
2018-10-03 08:46:16 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildArch: noarch
|
2017-04-24 13:32:40 +00:00
|
|
|
%python_subpackages
|
2016-06-30 13:45:40 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
python-sql is a library to write SQL queries in a pythonic way.
|
|
|
|
|
|
|
|
%prep
|
2024-05-20 18:12:28 +00:00
|
|
|
%autosetup -n python_sql-%{version}
|
2016-06-30 13:45:40 +00:00
|
|
|
|
|
|
|
%build
|
2024-01-09 22:05:09 +00:00
|
|
|
%pyproject_wheel
|
2016-06-30 13:45:40 +00:00
|
|
|
|
|
|
|
%install
|
2024-01-09 22:05:09 +00:00
|
|
|
%pyproject_install
|
2024-05-20 18:19:52 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-06-30 13:45:40 +00:00
|
|
|
|
2018-10-03 08:42:26 +00:00
|
|
|
%check
|
2021-09-10 09:02:32 +00:00
|
|
|
mv sql sql_hide
|
|
|
|
%pyunittest discover -v
|
|
|
|
mv sql_hide sql
|
2018-10-03 08:42:26 +00:00
|
|
|
|
2017-04-24 13:32:40 +00:00
|
|
|
%files %{python_files}
|
2024-01-09 22:05:09 +00:00
|
|
|
%license COPYRIGHT
|
|
|
|
%doc README.rst
|
2024-05-20 18:19:52 +00:00
|
|
|
%{python_sitelib}/sql
|
|
|
|
%{python_sitelib}/python_sql-%{version}.dist-info
|
2016-06-30 13:45:40 +00:00
|
|
|
|
|
|
|
%changelog
|