14
0
forked from pool/python-semver

Accepting request 807244 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807244
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-semver?expand=0&rev=23
This commit is contained in:
Tomáš Chvátal
2020-05-19 12:14:13 +00:00
committed by Git OBS Bridge
parent d62028be47
commit 53f37154be
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 09:27:55 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Sat May 9 16:05:49 UTC 2020 - Arun Persaud <arun@gmx.de>

View File

@@ -31,6 +31,8 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
# See https://github.com/k-bx/python-semver/issues/67 for why conflicts is needed
Conflicts: python-node-semver
BuildArch: noarch
@@ -48,16 +50,23 @@ See also http://semver.org/
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pysemver
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative pysemver
%postun
%python_uninstall_alternative pysemver
%files %{python_files}
%doc README.rst
%{python_sitelib}/semver*
%pycache_only %{python_sitelib}/__pycache__/semver*
%python3_only %{_bindir}/pysemver
%python_alternative %{_bindir}/pysemver
%changelog