[packages/python3-breathe] - updated to 4.14.2 compatible with Sphinx 2; python 3.5+ now

qboosh qboosh at pld-linux.org
Thu May 7 21:52:07 CEST 2020


commit 1d711b48050187f82859b3a6d0e63775147f3db1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu May 7 21:52:31 2020 +0200

    - updated to 4.14.2 compatible with Sphinx 2; python 3.5+ now

 python-breathe.spec  | 127 ---------------------------------------------------
 python3-breathe.spec |  71 ++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+), 127 deletions(-)
---
diff --git a/python-breathe.spec b/python-breathe.spec
deleted file mode 100644
index 661447b..0000000
--- a/python-breathe.spec
+++ /dev/null
@@ -1,127 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# nose tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Sphinx Doxygen renderer
-Summary(pl.UTF-8):	Renderer Doxygena dla systemu dokumentacji Sphinx
-Name:		python-breathe
-# NOTE: keep 4.12 here; 4.13+ requires Sphinx 2 and Python 3
-Version:	4.12.0
-Release:	1
-License:	BSD
-Group:		Development/Languages/Python
-#Source0Download: https://github.com/michaeljones/breathe/releases
-Source0:	https://github.com/michaeljones/breathe/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	2288749c6e3b2fe1e527873e97144843
-URL:		https://github.com/michaeljones/breathe
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.5
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-Sphinx >= 1.8
-BuildRequires:	python-docutils >= 0.12
-BuildRequires:	python-nose
-BuildRequires:	python-six >= 1.9
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.2
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-Sphinx >= 1.8
-BuildRequires:	python3-docutils >= 0.12
-BuildRequires:	python3-nose
-BuildRequires:	python3-six >= 1.9
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.5
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Breathe is an extension to reStructuredText and Sphinx to be able to
-read and render the Doxygen XML output.
-
-%description -l pl.UTF-8
-Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
-Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
-
-%package -n python3-breathe
-Summary:	Sphinx Doxygen renderer
-Summary(pl.UTF-8):	Renderer Doxygena dla systemu dokumentacji Sphinx
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.2
-
-%description -n python3-breathe
-Breathe is an extension to reStructuredText and Sphinx to be able to
-read and render the Doxygen XML output.
-
-%description -n python3-breathe -l pl.UTF-8
-Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
-Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
-
-%prep
-%setup -q -n breathe-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-cd tests
-PYTHONPATH=.. \
-nosetests-%{py_ver}
-cd ..
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-cd tests
-PYTHONPATH=.. \
-nosetests-%{py3_ver}
-cd ..
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc{,-2}
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc{,-3}
-ln -sf breathe-apidoc-3 $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%attr(755,root,root) %{_bindir}/breathe-apidoc-2
-%{py_sitescriptdir}/breathe
-%{py_sitescriptdir}/breathe-%{version}-py*.egg-info
-
-%files -n python3-breathe
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%attr(755,root,root) %{_bindir}/breathe-apidoc
-%attr(755,root,root) %{_bindir}/breathe-apidoc-3
-%{py3_sitescriptdir}/breathe
-%{py3_sitescriptdir}/breathe-%{version}-py*.egg-info
diff --git a/python3-breathe.spec b/python3-breathe.spec
new file mode 100644
index 0000000..608ff66
--- /dev/null
+++ b/python3-breathe.spec
@@ -0,0 +1,71 @@
+# NOTE: this package is closely related to Sphinx version, so keep it in sync with sphinx-pdg.spec
+# (4.13.0-4.14.x expect Sphinx 2, 4.15+ expect Sphinx 3)
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Sphinx Doxygen renderer
+Summary(pl.UTF-8):	Renderer Doxygena dla systemu dokumentacji Sphinx
+Name:		python3-breathe
+Version:	4.14.2
+Release:	1
+License:	BSD
+Group:		Development/Languages/Python
+#Source0Download: https://github.com/michaeljones/breathe/releases
+Source0:	https://github.com/michaeljones/breathe/archive/v%{version}/breathe-%{version}.tar.gz
+# Source0-md5:	6a97f52f443f5e30e2ecf7afa7f7132d
+URL:		https://github.com/michaeljones/breathe
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-Sphinx >= 2.0
+BuildRequires:	python3-docutils >= 0.12
+BuildRequires:	python3-pytest
+BuildRequires:	python3-six >= 1.9
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.5
+Conflicts:	python3-Sphinx >= 3.0
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Breathe is an extension to reStructuredText and Sphinx to be able to
+read and render the Doxygen XML output.
+
+%description -l pl.UTF-8
+Breathe to rozszerzenie do systemu dokumentacji reStructuredText i
+Sphinx, pozwalające na odczyt i renderowanie wyjścia XML z Doxygena.
+
+%prep
+%setup -q -n breathe-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+cd tests
+PYTHONPATH=.. \
+%{__python3} -m pytest -v
+cd ..
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc{,-3}
+ln -sf breathe-apidoc-3 $RPM_BUILD_ROOT%{_bindir}/breathe-apidoc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%attr(755,root,root) %{_bindir}/breathe-apidoc
+%attr(755,root,root) %{_bindir}/breathe-apidoc-3
+%{py3_sitescriptdir}/breathe
+%{py3_sitescriptdir}/breathe-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-breathe.git/commitdiff/1d711b48050187f82859b3a6d0e63775147f3db1



More information about the pld-cvs-commit mailing list