forked from pool/python-setuptools_scm
- Fix the multibuild code
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools_scm?expand=0&rev=31
This commit is contained in:
committed by
Git OBS Bridge
parent
fbe06ebb47
commit
dae306a8be
@@ -24,7 +24,11 @@
|
||||
%else
|
||||
%bcond_with test
|
||||
%endif
|
||||
%if %{with test}
|
||||
Name: python-setuptools_scm-%{flavor}
|
||||
%else
|
||||
Name: python-setuptools_scm
|
||||
%endif
|
||||
Version: 3.0.6
|
||||
Release: 0
|
||||
Summary: Manage your versions by scm tags
|
||||
@@ -43,7 +47,6 @@ BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: git
|
||||
BuildRequires: mercurial
|
||||
Requires: this-is-only-for-build-envs
|
||||
%endif
|
||||
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
|
||||
Recommends: git
|
||||
@@ -62,8 +65,10 @@ in scm metadata. It also handles file finders for the supperted scm's.
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
@@ -72,7 +77,9 @@ in scm metadata. It also handles file finders for the supperted scm's.
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%if !%{with test}
|
||||
%doc README.rst CHANGELOG.rst
|
||||
%{python_sitelib}/setuptools_scm*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user