- 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
This commit is contained in:
Jan Matejek 2017-03-27 14:14:31 +00:00 committed by Git OBS Bridge
parent 4883e778af
commit 5a20497330
2 changed files with 9 additions and 18 deletions

View File

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

View File

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