Accepting request 807601 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807601
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-peewee?expand=0&rev=30
This commit is contained in:
Tomáš Chvátal
2020-05-20 11:28:30 +00:00
committed by Git OBS Bridge
parent 381cbd977b
commit 4712b0e59b
2 changed files with 15 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:11 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Wed Mar 18 16:01:40 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@@ -38,6 +38,8 @@ BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: unzip
BuildRequires: pkgconfig(sqlite3)
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -51,17 +53,23 @@ An expressive ORM that supports PostgreSQL, MySQL and SQLite.
%install
%python_install
%python_clone %{buildroot}%{_bindir}/pwiz.py
%python_clone -a %{buildroot}%{_bindir}/pwiz.py
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch tests
%post
%python_install_alternative pwiz.py
%postun
%python_uninstall_alternative pwiz.py
%files %{python_files}
%license LICENSE
%doc CHANGELOG.md README.rst TODO.rst
%{_bindir}/pwiz.py-%{python_bin_suffix}
%python3_only %{_bindir}/pwiz.py
%python_alternative %{_bindir}/pwiz.py
%{python_sitearch}/*
%changelog