2018-06-25 10:54:04 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-peewee
|
|
|
|
#
|
2024-01-10 00:36:02 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-06-25 10:54:04 +02: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-08 22:12:50 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-25 10:54:04 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-08-21 11:34:08 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-06-25 10:54:04 +02:00
|
|
|
Name: python-peewee
|
2024-06-06 22:18:03 +02:00
|
|
|
Version: 3.17.5
|
2018-06-25 10:54:04 +02:00
|
|
|
Release: 0
|
2018-07-28 20:27:38 +02:00
|
|
|
Summary: An expressive ORM that supports multiple SQL backends
|
2018-06-25 10:54:04 +02:00
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://github.com/coleifer/peewee
|
2021-09-07 15:56:33 +02:00
|
|
|
Source: https://github.com/coleifer/peewee/archive/refs/tags/%{version}.tar.gz#/peewee-%{version}.tar.gz
|
2023-08-21 11:34:08 +02:00
|
|
|
BuildRequires: %{python_module Cython}
|
2019-10-18 14:42:06 +02:00
|
|
|
BuildRequires: %{python_module Flask}
|
2023-11-07 15:24:25 +01:00
|
|
|
%if 0%{?suse_version} > 1500
|
2019-10-18 14:42:06 +02:00
|
|
|
BuildRequires: %{python_module apsw}
|
2023-11-07 15:24:25 +01:00
|
|
|
%endif
|
2018-06-25 10:54:04 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-08-13 21:59:30 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-10-18 14:42:06 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-08-13 21:59:30 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-12-11 09:08:34 +01:00
|
|
|
BuildRequires: %{pythons}
|
2018-06-25 10:54:04 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2020-05-20 13:28:30 +02:00
|
|
|
Requires(post): update-alternatives
|
2024-02-12 03:58:31 +01:00
|
|
|
Requires(postun): update-alternatives
|
2018-06-25 10:54:04 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-07-28 20:27:38 +02:00
|
|
|
An expressive ORM that supports PostgreSQL, MySQL and SQLite.
|
2018-06-25 10:54:04 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n peewee-%{version}
|
|
|
|
|
|
|
|
%build
|
2023-08-13 21:59:30 +02:00
|
|
|
%pyproject_wheel
|
2018-06-25 10:54:04 +02:00
|
|
|
|
|
|
|
%install
|
2023-08-13 21:59:30 +02:00
|
|
|
%pyproject_install
|
2020-05-20 13:28:30 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pwiz.py
|
2024-01-10 00:36:02 +01:00
|
|
|
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
# Remove shebang from non-executable files
|
|
|
|
sed -i -e '1{\@^#! *%{_bindir}.*python@d}' %{buildroot}%{$python_sitearch}/pwiz.py
|
|
|
|
}
|
2018-06-25 10:54:04 +02:00
|
|
|
|
2019-10-18 14:42:06 +02:00
|
|
|
%check
|
|
|
|
%pytest_arch tests
|
|
|
|
|
2020-05-20 13:28:30 +02:00
|
|
|
%post
|
|
|
|
%python_install_alternative pwiz.py
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative pwiz.py
|
|
|
|
|
2018-06-25 10:54:04 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.md README.rst TODO.rst
|
2020-05-20 13:28:30 +02:00
|
|
|
%python_alternative %{_bindir}/pwiz.py
|
2024-02-12 03:58:31 +01:00
|
|
|
%{python_sitearch}/peewee-%{version}.dist-info
|
2024-01-10 00:36:02 +01:00
|
|
|
%{python_sitearch}/peewee.py
|
|
|
|
%{python_sitearch}/pwiz.py
|
|
|
|
%{python_sitearch}/playhouse
|
|
|
|
%pycache_only %{python_sitearch}/__pycache__/peewee.*.pyc
|
|
|
|
%pycache_only %{python_sitearch}/__pycache__/pwiz.*.pyc
|
2018-06-25 10:54:04 +02:00
|
|
|
|
|
|
|
%changelog
|