This commit is contained in:
parent
7629c27232
commit
7830cda8ef
@ -56,7 +56,6 @@ BuildRequires: %{python_module virtualenv >= 14.0.6}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: git
|
||||
BuildRequires: gpg2
|
||||
Requires: this-is-only-for-build-envs
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
@ -80,11 +79,13 @@ chmod -x pbr/tests/testpackage/setup.py
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/pbr/tests
|
||||
%python_clone -a %{buildroot}%{_bindir}/pbr
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
@ -94,17 +95,21 @@ $python %{_bindir}/testr run --parallel
|
||||
}
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%post
|
||||
%python_install_alternative pbr
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pbr
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%if !%{with test}
|
||||
%doc AUTHORS ChangeLog CONTRIBUTING.rst README.rst
|
||||
%python_alternative %{_bindir}/pbr
|
||||
%{python_sitelib}/pbr
|
||||
%{python_sitelib}/pbr-%{version}-py%{python_version}.egg-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user