Accepting request 807652 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807652 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-peewee?expand=0&rev=14
This commit is contained in:
commit
c423991ef2
@ -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>
|
Wed Mar 18 16:01:40 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -38,6 +38,8 @@ BuildRequires: pkgconfig
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -51,17 +53,23 @@ An expressive ORM that supports PostgreSQL, MySQL and SQLite.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_clone %{buildroot}%{_bindir}/pwiz.py
|
%python_clone -a %{buildroot}%{_bindir}/pwiz.py
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest_arch tests
|
%pytest_arch tests
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative pwiz.py
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative pwiz.py
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGELOG.md README.rst TODO.rst
|
%doc CHANGELOG.md README.rst TODO.rst
|
||||||
%{_bindir}/pwiz.py-%{python_bin_suffix}
|
%{_bindir}/pwiz.py-%{python_bin_suffix}
|
||||||
%python3_only %{_bindir}/pwiz.py
|
%python_alternative %{_bindir}/pwiz.py
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user