14
0
Tomáš Chvátal
2018-08-07 07:20:00 +00:00
committed by Git OBS Bridge
parent fbe06ebb47
commit dae306a8be
2 changed files with 13 additions and 1 deletions

View File

@@ -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