[packages/python3-ufo2ft] - python-ufo2ft.spec updated to 2.25.1 for python 3.7+

qboosh qboosh at pld-linux.org
Sun Dec 19 09:46:19 CET 2021


commit 84512c8543b79a6a719887bc760a13643c84d21e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 19 09:46:59 2021 +0100

    - python-ufo2ft.spec updated to 2.25.1 for python 3.7+

 python-ufo2ft.spec  | 136 ----------------------------------------------------
 python3-ufo2ft.spec |  70 +++++++++++++++++++++++++++
 2 files changed, 70 insertions(+), 136 deletions(-)
---
diff --git a/python-ufo2ft.spec b/python-ufo2ft.spec
deleted file mode 100644
index 1f34514..0000000
--- a/python-ufo2ft.spec
+++ /dev/null
@@ -1,136 +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-ufo2ft.spec, here tests fail with fonttools 4)
-
-Summary:	A bridge between UFOs and FontTools
-Summary(pl.UTF-8):	Pomost między UFO a FontTools
-Name:		python-ufo2ft
-# keep 2.10.x for python2 support
-Version:	2.10.0
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/ufo2ft/
-Source0:	https://files.pythonhosted.org/packages/source/u/ufo2ft/ufo2ft-%{version}.zip
-# Source0-md5:	8678156f5bcb25374ab567f674086cf7
-URL:		https://pypi.org/project/ufo2ft/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-BuildRequires:	python-setuptools_scm
-%if %{with tests}
-BuildRequires:	python-booleanOperations >= 0.8.2
-BuildRequires:	python-compreffor >= 0.4.6
-BuildRequires:	python-cu2qu >= 1.6.5
-BuildRequires:	python-enum34 >= 1.1.6
-# fonttools[ufo]
-BuildRequires:	python-fonttools >= 3.43.0
-BuildRequires:	python-fs >= 2.2.0
-BuildRequires:	python-pytest >= 2.8
-BuildRequires:	python-skia-pathops >= 0.2.0
-BuildRequires:	python-ufoLib2 >= 0.3.2.post2
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.6
-BuildRequires:	python3-setuptools
-BuildRequires:	python3-setuptools_scm
-%if %{with tests}
-BuildRequires:	python3-booleanOperations >= 0.8.2
-BuildRequires:	python3-compreffor >= 0.4.6
-BuildRequires:	python3-cu2qu >= 1.6.5
-BuildRequires:	python3-fonttools >= 3.43.0
-BuildRequires:	python3-fs >= 2.2.0
-BuildRequires:	python3-pytest >= 2.8
-BuildRequires:	python3-skia-pathops >= 0.2.0
-BuildRequires:	python3-ufoLib2 >= 0.3.2.post2
-%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
-ufo2ft ("UFO to FontTools") is a fork of ufo2fdk whose goal is to
-generate OpenType font binaries from UFOs without the FDK dependency.
-
-%description -l pl.UTF-8
-ufo2ft ("UFO to FontTools") to odgałęzienie projektu ufo2fdk. Celem
-odgałęzienia jest generowanie z UFO binariów fontów OpenType bez
-zależności od FDK.
-
-%package -n python3-ufo2ft
-Summary:	A bridge between UFOs and FontTools
-Summary(pl.UTF-8):	Pomost między UFO a FontTools
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.6
-
-%description -n python3-ufo2ft
-ufo2ft ("UFO to FontTools") is a fork of ufo2fdk whose goal is to
-generate OpenType font binaries from UFOs without the FDK dependency.
-
-%description -n python3-ufo2ft -l pl.UTF-8
-ufo2ft ("UFO to FontTools") to odgałęzienie projektu ufo2fdk. Celem
-odgałęzienia jest generowanie z UFO binariów fontów OpenType bez
-zależności od FDK.
-
-%prep
-%setup -q -n ufo2ft-%{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}/ufo2ft
-%{py_sitescriptdir}/ufo2ft-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-ufo2ft
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/ufo2ft
-%{py3_sitescriptdir}/ufo2ft-%{version}-py*.egg-info
-%endif
diff --git a/python3-ufo2ft.spec b/python3-ufo2ft.spec
new file mode 100644
index 0000000..70e9521
--- /dev/null
+++ b/python3-ufo2ft.spec
@@ -0,0 +1,70 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	A bridge between UFOs and FontTools
+Summary(pl.UTF-8):	Pomost między UFO a FontTools
+Name:		python3-ufo2ft
+Version:	2.25.1
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/ufo2ft/
+Source0:	https://files.pythonhosted.org/packages/source/u/ufo2ft/ufo2ft-%{version}.zip
+# Source0-md5:	5df6eaf6c35247d3e0fbcdf7c68165f4
+URL:		https://pypi.org/project/ufo2ft/
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools
+BuildRequires:	python3-setuptools_scm
+%if %{with tests}
+BuildRequires:	python3-booleanOperations >= 0.9.0
+BuildRequires:	python3-cffsubr >= 0.2.8
+BuildRequires:	python3-compreffor >= 0.4.6
+BuildRequires:	python3-cu2qu >= 1.6.7
+BuildRequires:	python3-fonttools >= 4.26.1
+BuildRequires:	python3-fs >= 2.2.0
+BuildRequires:	python3-pytest >= 2.8
+BuildRequires:	python3-skia-pathops >= 0.5.1
+BuildRequires:	python3-ufoLib2 >= 0.7.1
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	unzip
+Requires:	python3-modules >= 1:3.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ufo2ft ("UFO to FontTools") is a fork of ufo2fdk whose goal is to
+generate OpenType font binaries from UFOs without the FDK dependency.
+
+%description -l pl.UTF-8
+ufo2ft ("UFO to FontTools") to odgałęzienie projektu ufo2fdk. Celem
+odgałęzienia jest generowanie z UFO binariów fontów OpenType bez
+zależności od FDK.
+
+%prep
+%setup -q -n ufo2ft-%{version}
+
+%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}/ufo2ft
+%{py3_sitescriptdir}/ufo2ft-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-ufo2ft.git/commitdiff/84512c8543b79a6a719887bc760a13643c84d21e



More information about the pld-cvs-commit mailing list