From 4a911246b1310a5f22df0ef242cfe5a220618108dd708501cd5fd7f7642cf32f Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 18 Sep 2017 22:32:07 +0000 Subject: [PATCH] Accepting request 527169 from home:TheBlackCat:branches:devel:languages:python - Created base namespace package based on sphinxcontrib-websupport sphinxcontrib-websupport is used since Sphinx depends on it, so all other sphinxcontrib packages depend on it indirectly. This avoids dependency loops between sphinxcontrib-websupport and Sphinx. - Created base namespace package based on sphinxcontrib-websupport sphinxcontrib-websupport is used since Sphinx depends on it, so all other sphinxcontrib packages depend on it indirectly. This avoids dependency loops between sphinxcontrib-websupport and Sphinx. OBS-URL: https://build.opensuse.org/request/show/527169 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-websupport?expand=0&rev=6 --- python-sphinxcontrib-websupport.changes | 9 ++++ python-sphinxcontrib-websupport.spec | 6 +-- python-sphinxcontrib.changes | 9 ++++ python-sphinxcontrib.spec | 61 +++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 python-sphinxcontrib.changes create mode 100644 python-sphinxcontrib.spec diff --git a/python-sphinxcontrib-websupport.changes b/python-sphinxcontrib-websupport.changes index 5724528..9a104b4 100644 --- a/python-sphinxcontrib-websupport.changes +++ b/python-sphinxcontrib-websupport.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Sep 18 21:59:36 UTC 2017 - toddrme2178@gmail.com + +- Created base namespace package based on sphinxcontrib-websupport + sphinxcontrib-websupport is used since Sphinx depends on it, so + all other sphinxcontrib packages depend on it indirectly. + This avoids dependency loops between sphinxcontrib-websupport + and Sphinx. + ------------------------------------------------------------------- Mon Sep 18 20:36:57 UTC 2017 - toddrme2178@gmail.com diff --git a/python-sphinxcontrib-websupport.spec b/python-sphinxcontrib-websupport.spec index b92f91c..3d05ee5 100644 --- a/python-sphinxcontrib-websupport.spec +++ b/python-sphinxcontrib-websupport.spec @@ -27,15 +27,16 @@ Url: http://sphinx-doc.org/ Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-websupport/sphinxcontrib-websupport-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module sphinxcontrib} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Jinja2 -Requires: python-Sphinx Requires: python-six +Requires: python-sphinxcontrib +Recommends: python-Sphinx Suggests: python-Whoosh Suggests: python-xapian Suggests: python-SQLAlchemy -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -57,7 +58,6 @@ documentation into your Web application. %files %{python_files} %defattr(-,root,root,-) %doc CHANGES LICENSE README.rst -# %%{python_sitelib}/* %dir %{python_sitelib}/sphinxcontrib/ %{python_sitelib}/sphinxcontrib/websupport/ %{python_sitelib}/sphinxcontrib_websupport-%{version}-py*-nspkg.pth diff --git a/python-sphinxcontrib.changes b/python-sphinxcontrib.changes new file mode 100644 index 0000000..9fec6f5 --- /dev/null +++ b/python-sphinxcontrib.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 18 21:59:36 UTC 2017 - toddrme2178@gmail.com + +- Created base namespace package based on sphinxcontrib-websupport + sphinxcontrib-websupport is used since Sphinx depends on it, so + all other sphinxcontrib packages depend on it indirectly. + This avoids dependency loops between sphinxcontrib-websupport + and Sphinx. + diff --git a/python-sphinxcontrib.spec b/python-sphinxcontrib.spec new file mode 100644 index 0000000..6e32c23 --- /dev/null +++ b/python-sphinxcontrib.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-sphinxcontrib +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-sphinxcontrib +Version: 1.0.1 +Release: 0 +Summary: Namespace for sphinxcontrib packages +License: BSD-2-Clause +Group: Development/Languages/Python +Url: http://sphinx-doc.org/ +Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-websupport/sphinxcontrib-websupport-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch + +%python_subpackages + +%description +This package provides the namespace that all sphinxcontrib packages +make use of. It shouldn't be installed directly, packages that +need it will pull it in automatically. + +%prep +%setup -q -n sphinxcontrib-websupport-%{version} + +%build +# Not used + +%install +%{python_expand install -D -m 644 sphinxcontrib/__init__.py %{buildroot}%{$python_sitelib}/sphinxcontrib/__init__.py +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sphinxcontrib/ +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sphinxcontrib/ +%fdupes %{buildroot}%{$python_sitelib} +} + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGES LICENSE README.rst +%dir %{python_sitelib}/sphinxcontrib/ +%{python_sitelib}/sphinxcontrib/__init__.py* +%pycache_only %dir %{python_sitelib}/sphinxcontrib/__pycache__/ +%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/__init__*.py* + +%changelog