[packages/python-breathe] - added python3 package - rel 3
baggins
baggins at pld-linux.org
Sat Dec 26 13:09:46 CET 2015
commit b06ebd43c5d5f57697b06b0f9110840040c1168b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Dec 26 13:08:50 2015 +0100
- added python3 package
- rel 3
python-breathe.spec | 46 ++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 42 insertions(+), 4 deletions(-)
---
diff --git a/python-breathe.spec b/python-breathe.spec
index 32f4188..f088279 100644
--- a/python-breathe.spec
+++ b/python-breathe.spec
@@ -1,18 +1,26 @@
#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_with tests # do not perform "make test"
+%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
Version: 1.0.0
-Release: 2
+Release: 3
License: BSD
Group: Development/Languages/Python
Source0: https://github.com/michaeljones/breathe/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: a1617f9cb555bbd618257d70e577909f
URL: https://github.com/michaeljones/breathe
BuildRequires: python >= 1:2.5
+%if %{with python2}
+BuildRequires: python-modules
+%endif
+%if %{with python3}
+BuildRequires: python3-modules
+%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.710
Requires: python-Sphinx >= 1.0.7
@@ -28,20 +36,44 @@ read and render the Doxygen XML output.
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
+
+%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
-%py_build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
-%{?with_tests:%{__python} setup.py test}
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
%install
rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
%py_install
%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -51,3 +83,9 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENCE README.rst
%{py_sitescriptdir}/breathe
%{py_sitescriptdir}/breathe-%{version}-py*.egg-info
+
+%files -n python3-breathe
+%defattr(644,root,root,755)
+%doc LICENCE README.rst
+%{py3_sitescriptdir}/breathe
+%{py3_sitescriptdir}/breathe-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-breathe.git/commitdiff/6204f8c6e438780812b037082d2db1f592671d7b
More information about the pld-cvs-commit
mailing list