[packages/python3-cycler] - python-cycler.spec updated to 0.12.1 for python 3.8+ (tested without doc for now)
qboosh
qboosh at pld-linux.org
Sun Mar 16 17:29:42 CET 2025
commit dc1066f6a64a15ccd081180973176ba1fd81ef29
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 16 17:01:54 2025 +0100
- python-cycler.spec updated to 0.12.1 for python 3.8+ (tested without doc for now)
python-cycler.spec | 141 ----------------------------------------------------
python3-cycler.spec | 88 ++++++++++++++++++++++++++++++++
2 files changed, 88 insertions(+), 141 deletions(-)
---
diff --git a/python-cycler.spec b/python-cycler.spec
deleted file mode 100644
index 2337bff..0000000
--- a/python-cycler.spec
+++ /dev/null
@@ -1,141 +0,0 @@
-#
-# Conditional build:
-%bcond_without 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}
-# keep 0.10.x here for python2 support
-Version: 0.10.0
-Release: 10
-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://matplotlib.org/cycler/
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-nose
-BuildRequires: python-six
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.3
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-nose
-BuildRequires: python3-six
-%endif
-%endif
-%if %{with doc}
-BuildRequires: python-ipython
-BuildRequires: python-matplotlib
-BuildRequires: python-numpydoc
-BuildRequires: sphinx-pdg-2
-%endif
-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 >= 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 modułu %{module}
-Group: Documentation
-
-%description apidocs
-API documentation for %{module}.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu %{module}.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-nosetests-%{py_ver} test_cycler.py
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-nosetests-%{py3_ver} test_cycler.py
-%endif
-%endif
-
-%if %{with doc}
-%{__make} -C doc html \
- SPHINXBUILD=sphinx-build-2
-%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
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py_sitescriptdir}/cycler.py[co]
-%{py_sitescriptdir}/cycler-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/cycler.py
-%{py3_sitescriptdir}/__pycache__/cycler.cpython-*.py[co]
-%{py3_sitescriptdir}/cycler-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc doc/build/html/{_images,_modules,_static,generated,*.html,*.js,*.png}
-%endif
diff --git a/python3-cycler.spec b/python3-cycler.spec
new file mode 100644
index 0000000..027b825
--- /dev/null
+++ b/python3-cycler.spec
@@ -0,0 +1,88 @@
+#
+# Conditional build:
+%bcond_without doc # Sphinx documentation
+%bcond_without tests # unit tests
+
+%define module cycler
+Summary: Composable style cycles
+Summary(pl.UTF-8): Komponowalne cykle styli
+Name: python3-%{module}
+Version: 0.12.1
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://github.com/matplotlib/cycler/releases
+Source0: https://github.com/matplotlib/cycler/archive/v%{version}/%{module}-%{version}.tar.gz
+# Source0-md5: 1f6077c5e7adf8824d50c3a01c8104f6
+URL: https://matplotlib.org/cycler/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools >= 1:61
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.045
+%if %{with doc}
+BuildRequires: python3-ipython
+BuildRequires: python3-matplotlib
+BuildRequires: python3-numpydoc
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Composable style cycles.
+
+%description -l pl.UTF-8.
+Komponowalne cykle styli.
+
+%package apidocs
+Summary: %{module} API documentation
+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 modułu %{module}.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest test_cycler.py
+%endif
+
+%if %{with doc}
+%{__make} -C doc html \
+ SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst SECURITY.md
+%{py3_sitescriptdir}/cycler
+%{py3_sitescriptdir}/cycler-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/build/html/{_images,_modules,_static,generated,*.html,*.js,*.png}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-cycler.git/commitdiff/dc1066f6a64a15ccd081180973176ba1fd81ef29
More information about the pld-cvs-commit
mailing list