15
0
forked from pool/python-json5

Accepting request 808779 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/808779
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-json5?expand=0&rev=3
This commit is contained in:
2020-05-26 15:48:56 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 10:59:34 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Apr 16 11:47:01 UTC 2020 - pgajdos@suse.com

View File

@@ -30,6 +30,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -52,16 +54,23 @@ slightly more usable as a configuration language:
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pyjson5
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative pyjson5
%postun
%python_uninstall_alternative pyjson5
%files %{python_files}
%doc README.md
%license LICENSE
%python3_only %{_bindir}/pyjson5
%python_alternative %{_bindir}/pyjson5
%{python_sitelib}/*
%changelog