forked from pool/python-py2pack
- Use update-alternatives for the py2pack executable
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py2pack?expand=0&rev=65
This commit is contained in:
committed by
Git OBS Bridge
parent
8dab8d00a0
commit
2b793641c8
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 22 08:37:19 UTC 2017 - tbechtold@suse.com
|
||||
|
||||
- Use update-alternatives for the py2pack executable
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 27 15:53:20 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
|
@@ -26,21 +26,23 @@ License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module Jinja2}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module metaextract}
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module sphinxcontrib-programoutput}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Jinja2
|
||||
Requires: python-metaextract
|
||||
Requires: python-pbr
|
||||
Requires: python-setuptools
|
||||
Requires: python-six
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -52,6 +54,7 @@ universal tool to package Python modules.
|
||||
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Development/Languages/Python
|
||||
Provides: %{python_module py2pack-doc = %{version}}
|
||||
|
||||
%description -n %{name}-doc
|
||||
@@ -68,10 +71,17 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/py2pack
|
||||
|
||||
%post
|
||||
%python_install_alternative py2pack
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative py2pack
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%python3_only %{_bindir}/py2pack
|
||||
%python_alternative %{_bindir}/py2pack
|
||||
%{python_sitelib}/py2pack-%{version}-py*.egg-info
|
||||
%{python_sitelib}/py2pack/
|
||||
|
||||
|
Reference in New Issue
Block a user