From 5a20497330cb3b3630b8cbcf6d8e931f2c8955388b91b95ce1bd30d9dd972b28 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Mon, 27 Mar 2017 14:14:31 +0000 Subject: [PATCH] - do not generate HTML documentation for packages that are indirect dependencies of Sphinx (see docs at https://virtualenv.readthedocs.org/ ) - move uninstall_alternatives to %postun OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=55 --- python-virtualenv.changes | 8 ++++++++ python-virtualenv.spec | 19 +------------------ 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/python-virtualenv.changes b/python-virtualenv.changes index 6aa1002..e266b31 100644 --- a/python-virtualenv.changes +++ b/python-virtualenv.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Mar 27 11:50:31 UTC 2017 - jmatejek@suse.com + +- do not generate HTML documentation for packages that are indirect + dependencies of Sphinx + (see docs at https://virtualenv.readthedocs.org/ ) +- move uninstall_alternatives to %postun + ------------------------------------------------------------------- Thu Mar 16 15:56:54 UTC 2017 - tbechtold@suse.com diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 22c9ccd..589ff50 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -29,7 +29,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros -BuildRequires: python3-Sphinx Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -58,22 +57,11 @@ has its own installation directories, that doesnt share libraries with other virtualenv environments (and optionally doesnt use the globally installed libraries either). -%package -n %{name}-doc -Summary: Documentation for python-virtualenv -Group: Development/Languages/Python -Provides: %{python_module virtualenv-doc = %{version}} - -%description -n %{name}-doc -virtualenv is a tool to create isolated Python environments. - -This package contains the documentation. - %prep %setup -q -n virtualenv-%{version} %build %python_build -python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install %python_install @@ -82,7 +70,7 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo %post %python_install_alternative virtualenv -%preun +%postun %python_uninstall_alternative virtualenv %files %python_files @@ -92,9 +80,4 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo %python_alternative %{_bindir}/virtualenv %pycache_only %{python_sitelib}/__pycache__ -%files -n %{name}-doc -%defattr(-,root,root,-) -%doc LICENSE.txt -%doc build/sphinx/html - %changelog