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:
committed by
Git OBS Bridge
parent
d62028be47
commit
53f37154be
@@ -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>
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user