[packages/python3-defcon] - python-defcon.spec updated to 0.9.0 for python 3.6+
qboosh
qboosh at pld-linux.org
Wed Dec 15 18:52:21 CET 2021
commit 238eada443eb52e7919097a046cab08e2b5b9d0c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Dec 15 18:52:59 2021 +0100
- python-defcon.spec updated to 0.9.0 for python 3.6+
python-defcon.spec => python3-defcon.spec | 91 ++++---------------------------
1 file changed, 11 insertions(+), 80 deletions(-)
---
diff --git a/python-defcon.spec b/python3-defcon.spec
similarity index 50%
rename from python-defcon.spec
rename to python3-defcon.spec
index 5e327f0..5d1d81a 100644
--- a/python-defcon.spec
+++ b/python3-defcon.spec
@@ -2,47 +2,33 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module (built from python3-defcon.spec)
Summary: Set of flexible objects for representing UFO data
Summary(pl.UTF-8): Zbiór elastycznych obiektów reprezentujących dane UFO
-Name: python-defcon
-# keep 0.6.x here for python2 support
-Version: 0.6.0
+Name: python3-defcon
+Version: 0.9.0
Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/defcon/
Source0: https://files.pythonhosted.org/packages/source/d/defcon/defcon-%{version}.zip
-# Source0-md5: 759cb6897af4fe84f4ca9663a21381e8
+# Source0-md5: 7d725879cb9529b04e7f212d56b8f731
URL: https://pypi.org/project/defcon/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-setuptools
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools >= 42
+BuildRequires: python3-setuptools_scm
%if %{with tests}
-BuildRequires: python-enum34 >= 1.1.6
-# fonttools[ufo,unicode]
-BuildRequires: python-fonttools >= 3.31.0
-BuildRequires: python-fs >= 2.2.0
-BuildRequires: python-pytest >= 3.0.3
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-fonttools >= 3.31.0
+BuildRequires: python3-fonttools >= 4.10.0
BuildRequires: python3-fs >= 2.2.0
BuildRequires: python3-pytest >= 3.0.3
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
-BuildRequires: sphinx-pdg-2
+BuildRequires: sphinx-pdg-3
%endif
-Requires: python-modules >= 1:2.6
+BuildRequires: unzip
+Requires: python3-modules >= 1:3.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -66,32 +52,6 @@ obserwowaniu obiektów czy utrzymywaniu danych podręcznych. Defcon ma
zaimplementowane UFO3, opisane w formacie fontów UFO:
<http://unifiedfontobject.org/>.
-%package -n python3-defcon
-Summary: Set of flexible objects for representing UFO data
-Summary(pl.UTF-8): Zbiór elastycznych obiektów reprezentujących dane UFO
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-defcon
-Defcon is a set of UFO based objects optimized for use in font editing
-applications. The objects are built to be lightweight, fast and
-flexible. The objects are very bare-bones and they are not meant to be
-end-all, be-all objects. Rather, they are meant to provide base
-functionality so that you can focus on your application's behavior,
-not object observing or maintaining cached data. Defcon implements
-UFO3 as described by the UFO font format
-<http://unifiedfontobject.org/>.
-
-%description -n python3-defcon -l pl.UTF-8
-Defcon to zbiór opartych na UFO obiektów zoptymalizowanych do używania
-w aplikacjach modyfikujących fonty. Obiekty są zbudowane jako lekkie,
-szybkie i elastyczne. Są bardzo podstawowe, nie mają służyć do
-wszystkiego naraz. Mają raczej udostępniać podstawową funkcjonalność,
-dzięki czemu można skupić się na zachowaniu aplikacji, a nie
-obserwowaniu obiektów czy utrzymywaniu danych podręcznych. Defcon ma
-zaimplementowane UFO3, opisane w formacie fontów UFO:
-<http://unifiedfontobject.org/>.
-
%package apidocs
Summary: API documentation for Python defcon module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona defcon
@@ -107,60 +67,31 @@ Dokumentacja API modułu Pythona defcon.
%setup -q -n defcon-%{version}
%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest Lib/defcon
-%endif
-%endif
-
-%if %{with python3}
%py3_build
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest Lib/defcon
%endif
-%endif
%if %{with doc}
%{__make} -C documentation html \
- SPHINXBUILD=sphinx-build-2
+ SPHINXBUILD=sphinx-build-3
%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.txt README.rst
-%{py_sitescriptdir}/defcon
-%{py_sitescriptdir}/defcon-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-defcon
-%defattr(644,root,root,755)
-%doc License.txt README.rst
%{py3_sitescriptdir}/defcon
%{py3_sitescriptdir}/defcon-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-defcon.git/commitdiff/238eada443eb52e7919097a046cab08e2b5b9d0c
More information about the pld-cvs-commit
mailing list