[packages/python3-booleanOperations] - python-booleanOperations.spec updated to 0.9.0 for python 3.6+

qboosh qboosh at pld-linux.org
Sat Dec 18 20:18:24 CET 2021


commit 27d526858db5eabc86f2962de2df073332777959
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 18 20:19:05 2021 +0100

    - python-booleanOperations.spec updated to 0.9.0 for python 3.6+

 python-booleanOperations.spec  | 124 -----------------------------------------
 python3-booleanOperations.spec |  66 ++++++++++++++++++++++
 2 files changed, 66 insertions(+), 124 deletions(-)
---
diff --git a/python-booleanOperations.spec b/python-booleanOperations.spec
deleted file mode 100644
index 4990d14..0000000
--- a/python-booleanOperations.spec
+++ /dev/null
@@ -1,124 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_with	python3 # CPython 3.x module (built from python3-booleanOperations.spec)
-
-Summary:	Boolean operations on paths
-Summary(pl.UTF-8):	Operacje logiczne na ścieżkach
-Name:		python-booleanOperations
-# keep 0.8.x here for python2 support
-Version:	0.8.2
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/booleanOperations/
-Source0:	https://files.pythonhosted.org/packages/source/b/booleanOperations/booleanOperations-%{version}.zip
-# Source0-md5:	d4ddd0f486e4b213d35d4071aa47d864
-URL:		https://pypi.org/project/booleanOperations/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-BuildRequires:	python-setuptools_scm >= 1.14.1
-%if %{with tests}
-BuildRequires:	python-fontPens
-BuildRequires:	python-fonttools >= 3.32.0
-BuildRequires:	python-pyclipper >= 1.0.5
-BuildRequires:	python-pytest >= 3.0.2
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.6
-BuildRequires:	python3-setuptools
-BuildRequires:	python3-setuptools_scm >= 1.14.1
-%if %{with tests}
-BuildRequires:	python3-fontPens
-BuildRequires:	python3-fonttools >= 3.32.0
-BuildRequires:	python3-pyclipper >= 1.0.5
-BuildRequires:	python3-pytest >= 3.0.2
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-BuildRequires:	unzip
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Boolean operations on paths using a super fast polygon clipper
-library by Angus Johnson.
-
-%description -l pl.UTF-8
-Operacje logiczne na ścieżkach przy użyciu bardzo szybkiej
-biblioteki obcinania wielokątów autorstwa Angusa Johnsona.
-
-%package -n python3-booleanOperations
-Summary:	Boolean operations on paths
-Summary(pl.UTF-8):	Operacje logiczne na ścieżkach
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.6
-
-%description -n python3-booleanOperations
-Boolean operations on paths using a super fast polygon clipper
-library by Angus Johnson.
-
-%description -n python3-booleanOperations -l pl.UTF-8
-Operacje logiczne na ścieżkach przy użyciu bardzo szybkiej
-biblioteki obcinania wielokątów autorstwa Angusa Johnsona.
-
-%prep
-%setup -q -n booleanOperations-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/Lib \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/Lib \
-%{__python3} -m pytest tests
-%endif
-%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}/booleanOperations
-%{py_sitescriptdir}/booleanOperations-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-booleanOperations
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/booleanOperations
-%{py3_sitescriptdir}/booleanOperations-%{version}-py*.egg-info
-%endif
diff --git a/python3-booleanOperations.spec b/python3-booleanOperations.spec
new file mode 100644
index 0000000..3caf8c6
--- /dev/null
+++ b/python3-booleanOperations.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Boolean operations on paths
+Summary(pl.UTF-8):	Operacje logiczne na ścieżkach
+Name:		python3-booleanOperations
+Version:	0.9.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/booleanOperations/
+Source0:	https://files.pythonhosted.org/packages/source/b/booleanOperations/booleanOperations-%{version}.zip
+# Source0-md5:	a5bbdb108b0fc58a6f7effcc27c51285
+Patch0:		%{name}-deps.patch
+URL:		https://pypi.org/project/booleanOperations/
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools
+BuildRequires:	python3-setuptools_scm >= 1.14.1
+%if %{with tests}
+BuildRequires:	python3-fontPens
+BuildRequires:	python3-fonttools >= 4.0.2
+BuildRequires:	python3-pyclipper >= 1.1.0.post1
+BuildRequires:	python3-pytest >= 3.0.2
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	unzip
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Boolean operations on paths using a super fast polygon clipper
+library by Angus Johnson.
+
+%description -l pl.UTF-8
+Operacje logiczne na ścieżkach przy użyciu bardzo szybkiej
+biblioteki obcinania wielokątów autorstwa Angusa Johnsona.
+
+%prep
+%setup -q -n booleanOperations-%{version}
+%patch0 -p1
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/Lib \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/booleanOperations
+%{py3_sitescriptdir}/booleanOperations-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-booleanOperations.git/commitdiff/27d526858db5eabc86f2962de2df073332777959



More information about the pld-cvs-commit mailing list