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
@@ -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
|
||||
|
Reference in New Issue
Block a user