15
0
forked from pool/python-json5

Accepting request 808767 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/808767
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-json5?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2020-05-25 13:31:35 +00:00
committed by Git OBS Bridge
parent a7fc267773
commit c3a7c63f84
2 changed files with 15 additions and 1 deletions

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