[packages/python-cycler] - pl, cleanups
qboosh
qboosh at pld-linux.org
Tue Jul 24 22:16:58 CEST 2018
commit 84feb8b57d133727a85750dc782739225d10fe48
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 24 22:18:57 2018 +0200
- pl, cleanups
python-cycler.spec | 50 +++++++++++++++++++++++++++++++-------------------
1 file changed, 31 insertions(+), 19 deletions(-)
---
diff --git a/python-cycler.spec b/python-cycler.spec
index d3725ec..0539776 100644
--- a/python-cycler.spec
+++ b/python-cycler.spec
@@ -1,68 +1,80 @@
+#
# Conditional build:
-%bcond_with doc # don't build doc
-%bcond_without tests # do not perform "make test"
+%bcond_with doc # Sphinx documentation
+%bcond_without tests # unit tests
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
%define module cycler
Summary: Composable style cycles
+Summary(pl.UTF-8): Komponowalne cykle styli
Name: python-%{module}
Version: 0.10.0
Release: 2
License: BSD
Group: Libraries/Python
+#Source0Download: https://github.com/matplotlib/cycler/releases
+# FIXME: use
+#Source0: https://github.com/matplotlib/cycler/archive/v%{version}/%{module}-%{version}.tar.gz
Source0: https://github.com/matplotlib/cycler/archive/v%{version}.tar.gz
# Source0-md5: 83dd0df7810e838b59e4dd9fa6e2d198
-URL: https://pypi.python.org/pypi/cycler
+URL: https://matplotlib.org/cycler/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
-BuildRequires: python-modules
+BuildRequires: python-modules >= 1:2.6
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-nose
-%endif
-%if %{with doc}
-BuildRequires: ipython
-BuildRequires: python-matplotlib
+BuildRequires: python-six
%endif
%endif
%if %{with python3}
-BuildRequires: python3-modules
+BuildRequires: python3-modules >= 1:3.3
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-nose
+BuildRequires: python3-six
+%endif
%endif
%if %{with doc}
BuildRequires: ipython3
BuildRequires: python3-matplotlib
+BuildRequires: python3-numpydoc
+BuildRequires: sphinx-pdg-3
%endif
-%endif
-Requires: python-modules
+Requires: python-modules >= 1:2.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Composable style cycles.
+%description -l pl.UTF-8.
+Komponowalne cykle styli.
+
%package -n python3-%{module}
Summary: Composable style cycles
+Summary(pl.UTF-8): Komponowalne cykle styli
Group: Libraries/Python
-Requires: python3-modules
+Requires: python3-modules >= 1:3.3
%description -n python3-%{module}
Composable style cycles.
+%description -n python3-%{module} -l pl.UTF-8.
+Komponowalne cykle styli.
+
%package apidocs
Summary: %{module} API documentation
-Summary(pl.UTF-8): Dokumentacja API %{module}
+Summary(pl.UTF-8): Dokumentacja API modułu %{module}
Group: Documentation
%description apidocs
API documentation for %{module}.
%description apidocs -l pl.UTF-8
-Dokumentacja API %{module}.
+Dokumentacja API modułu %{module}.
%prep
%setup -q -n %{module}-%{version}
@@ -77,9 +89,9 @@ Dokumentacja API %{module}.
%endif
%if %{with doc}
-cd doc
-%{__make} -j1 html
-rm -rf _build/html/_sources
+%{__make} -C doc html \
+ SPHINXBUILD=sphinx-build-3
+%{__rm} -r doc/_build/html/_sources
%endif
%install
@@ -100,7 +112,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc README.rst
+%doc LICENSE README.rst
%{py_sitescriptdir}/%{module}.py*
%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
%endif
@@ -108,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
-%doc README.rst
+%doc LICENSE README.rst
%{py3_sitescriptdir}/%{module}.py*
%{py3_sitescriptdir}/__pycache__/%{module}*.py*
%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-cycler.git/commitdiff/84feb8b57d133727a85750dc782739225d10fe48
More information about the pld-cvs-commit
mailing list