]> git.pld-linux.org Git - packages/python3-breathe.git/commitdiff
- updated to 4.14.2 compatible with Sphinx 2; python 3.5+ now auto/th/python3-breathe-4.14.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 7 May 2020 19:52:31 +0000 (21:52 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 7 May 2020 19:52:31 +0000 (21:52 +0200)
python-breathe.spec [deleted file]
python3-breathe.spec [new file with mode: 0644]

diff --git a/python-breathe.spec b/python-breathe.spec
deleted file mode 100644 (file)
index 661447b..0000000
+++ /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 (file)
index 0000000..608ff66
--- /dev/null
@@ -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
This page took 0.14533 seconds and 4 git commands to generate.