14
0
forked from pool/python-semver

Accepting request 807288 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/807288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-semver?expand=0&rev=12
This commit is contained in:
2020-05-19 12:58:26 +00:00
committed by Git OBS Bridge
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> 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: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros 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 # See https://github.com/k-bx/python-semver/issues/67 for why conflicts is needed
Conflicts: python-node-semver Conflicts: python-node-semver
BuildArch: noarch BuildArch: noarch
@@ -48,16 +50,23 @@ See also http://semver.org/
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/pysemver
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest %pytest
%post
%python_install_alternative pysemver
%postun
%python_uninstall_alternative pysemver
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%{python_sitelib}/semver* %{python_sitelib}/semver*
%pycache_only %{python_sitelib}/__pycache__/semver* %pycache_only %{python_sitelib}/__pycache__/semver*
%python3_only %{_bindir}/pysemver %python_alternative %{_bindir}/pysemver
%changelog %changelog