From ecf20bd445e5137cd6bdaad99903fb9aa7bb9d7abd8be26db0ecce7fceff814a Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 18 Sep 2017 21:44:48 +0000 Subject: [PATCH 1/2] Accepting request 527135 from home:TheBlackCat:branches:devel:languages:python - Specify files to guarantee namespace package doesn't conflict with python(2|3)-Sphinx OBS-URL: https://build.opensuse.org/request/show/527135 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-programoutput?expand=0&rev=5 --- python-sphinxcontrib-programoutput.changes | 6 ++++++ python-sphinxcontrib-programoutput.spec | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-sphinxcontrib-programoutput.changes b/python-sphinxcontrib-programoutput.changes index 1ae8aa5..53da493 100644 --- a/python-sphinxcontrib-programoutput.changes +++ b/python-sphinxcontrib-programoutput.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 18 20:36:57 UTC 2017 - toddrme2178@gmail.com + +- Specify files to guarantee namespace package doesn't conflict + with python(2|3)-Sphinx + ------------------------------------------------------------------- Mon Apr 24 13:50:12 UTC 2017 - sebix+novell.com@sebix.at diff --git a/python-sphinxcontrib-programoutput.spec b/python-sphinxcontrib-programoutput.spec index 44e619d..441d144 100644 --- a/python-sphinxcontrib-programoutput.spec +++ b/python-sphinxcontrib-programoutput.spec @@ -27,10 +27,10 @@ Url: http://sphinxcontrib-programoutput.readthedocs.org/ Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-programoutput/sphinxcontrib-programoutput-%{version}.tar.gz BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module devel} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Sphinx -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -47,6 +47,7 @@ documents, helping you to keep your command examples up to date. %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} #NOTE(saschpe): Running tests works but there's an UTF-8 issue I don't yet care about: #%%check @@ -55,6 +56,9 @@ documents, helping you to keep your command examples up to date. %files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst LICENSE README.rst -%{python_sitelib}/* +%dir %{python_sitelib}/sphinxcontrib/ +%{python_sitelib}/sphinxcontrib/programoutput/ +%{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*-nspkg.pth +%{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*.egg-info %changelog From c2813bc677085870477ae627404e20ca54db8ebdd524b9ec7168e97eb6ad4f4c Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 18 Sep 2017 22:53:01 +0000 Subject: [PATCH 2/2] Accepting request 527185 from home:TheBlackCat:branches:devel:languages:python - Use new python-sphinxcontrib package to provide namespace directory. OBS-URL: https://build.opensuse.org/request/show/527185 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-programoutput?expand=0&rev=6 --- python-sphinxcontrib-programoutput.changes | 6 ++++++ python-sphinxcontrib-programoutput.spec | 19 ++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/python-sphinxcontrib-programoutput.changes b/python-sphinxcontrib-programoutput.changes index 53da493..4b84ee4 100644 --- a/python-sphinxcontrib-programoutput.changes +++ b/python-sphinxcontrib-programoutput.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 18 22:29:06 UTC 2017 - toddrme2178@gmail.com + +- Use new python-sphinxcontrib package to provide namespace + directory. + ------------------------------------------------------------------- Mon Sep 18 20:36:57 UTC 2017 - toddrme2178@gmail.com diff --git a/python-sphinxcontrib-programoutput.spec b/python-sphinxcontrib-programoutput.spec index 441d144..8134747 100644 --- a/python-sphinxcontrib-programoutput.spec +++ b/python-sphinxcontrib-programoutput.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test Name: python-sphinxcontrib-programoutput Version: 0.10 Release: 0 @@ -25,12 +26,17 @@ License: BSD-2-Clause Group: Development/Languages/Python Url: http://sphinxcontrib-programoutput.readthedocs.org/ Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-programoutput/sphinxcontrib-programoutput-%{version}.tar.gz -BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module sphinxcontrib} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pytest} +%endif Requires: python-Sphinx +Requires: python-sphinxcontrib BuildArch: noarch %python_subpackages @@ -49,14 +55,17 @@ documents, helping you to keep your command examples up to date. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -#NOTE(saschpe): Running tests works but there's an UTF-8 issue I don't yet care about: -#%%check -#PYTHONPATH=%%{buildroot}%%{python_sitelib} py.test +%if %{with test} +%check +export LANG=en_US.UTF-8 +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +py.test-%{$python_bin_suffix} +} +%endif %files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst LICENSE README.rst -%dir %{python_sitelib}/sphinxcontrib/ %{python_sitelib}/sphinxcontrib/programoutput/ %{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*-nspkg.pth %{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*.egg-info