14
0
2024-05-20 18:19:52 +00:00
committed by Git OBS Bridge
parent d56de8b27e
commit 3513a618c6
2 changed files with 12 additions and 16 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 20 18:19:43 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file.
-------------------------------------------------------------------
Wed May 15 08:46:55 UTC 2024 - Axel Braun <axel.braun@gmx.de>

View File

@@ -16,30 +16,21 @@
#
%if 0%{?suse_version} >= 1550
%define pythons python3
%define mypython python3
%define mysitelib %python3_sitelib
%else
%{?sle15_python_module_pythons}
%define mypython %pythons
%define mysitelib %{expand:%%%{mypython}_sitelib}
%endif
%define base_name python-sql
Name: python-%{base_name}
Name: python-python-sql
Version: 1.5.0
Release: 0
Summary: Library to write SQL queries
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://pypi.io/project/python-sql
## Source: https://pypi.io/packages/source/p/%{base_name}/%{base_name}-%{version}.tar.gz
## Source: https://pypi.io/packages/source/p/python-sql/python-sql-%%{version}.tar.gz
## Naming scheme broken upsream
Source: https://pypi.io/packages/source/p/%{base_name}/python_sql-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/p/python_sql/python_sql-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
@@ -48,7 +39,6 @@ BuildArch: noarch
python-sql is a library to write SQL queries in a pythonic way.
%prep
## %setup -q -n %{base_name}-%{version}
%autosetup -n python_sql-%{version}
%build
@@ -56,6 +46,7 @@ python-sql is a library to write SQL queries in a pythonic way.
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
mv sql sql_hide
@@ -65,7 +56,7 @@ mv sql_hide sql
%files %{python_files}
%license COPYRIGHT
%doc README.rst
%{mysitelib}/sql
%{mysitelib}/python_sql-%{version}.dist-info
%{python_sitelib}/sql
%{python_sitelib}/python_sql-%{version}.dist-info
%changelog