15
0
Files
python-fontParts/python-fontParts.spec
Dirk Mueller a5e6198f88 Accepting request 880815 from home:bnavigator:branches:devel:languages:python
- Update to 0.9.10
  * Update to Defcon 0.8.0
- Release 0.9.9
  * Fixed import of version.
- Release 0.9.8
  * Add support for quadratic curves with no on-curve points in
    Contour and Segment.
- Release 0.9.7
  * Change to github actions for CI and release.
  * fontShell returns None when referenced file name doesn't exist
    for an Image
- Release 0.9.6
  * fontShell has changed() implemented now
- Release 0.9.5
  * Fix for contours not getting updated in fontShell
  * Fix for error message in normalizeKerningKey
- Release 0.9.4
  * Fixed release build
- Release 0.9.3
  *  All rounding uses otRound. #536, fixes #533.
  *  Allow contour.segment to be empty (#480).
  *  Image file names now get a png file extension (#482).
  *  Fixed error in setting contour index (#488).
  *  Fixed error in PointPositionMixin (#486, fixed by #491)
  *  Added option to turn off normalizer tests
  *  Test fixes and updates. #512.
  *  various: Documentation updates and corrections
- reinstate python36 build (python36-FontTools is available)
- skip python2 for Leap

OBS-URL: https://build.opensuse.org/request/show/880815
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fontParts?expand=0&rev=8
2021-03-24 08:04:44 +00:00

98 lines
2.9 KiB
RPMSpec

#
# spec file for package python-fontParts-test
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-fontParts%{psuffix}
Version: 0.9.10
Release: 0
Summary: API for interacting with the parts of fonts
License: MIT
URL: https://github.com/robotools/fontParts
Source: https://files.pythonhosted.org/packages/source/f/fontParts/fontParts-%{version}.zip
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
# install_requires = [FontTools[ufo,lxml,unicode]
Requires: python-FontTools >= 3.32.0
Requires: python-fs >= 2.2.0
Requires: python-lxml >= 4.0
%if %python_version_nodots < 39
Requires: python-unicodedata2
%endif
Requires: python-booleanOperations
Requires: python-defcon >= 0.6.0
Requires: python-fontMath >= 0.4.8
BuildArch: noarch
%if %{with test}
# SECTION test requirements
BuildRequires: %{python_module FontTools >= 3.32.0}
BuildRequires: %{python_module booleanOperations}
BuildRequires: %{python_module defcon >= 0.6.0}
BuildRequires: %{python_module fontMath >= 0.4.8}
BuildRequires: %{python_module fontPens >= 0.2.4}
BuildRequires: %{python_module fs >= 2.2.0}
BuildRequires: %{python_module lxml >= 4.0}
BuildRequires: %{python_module unicodedata2 if %python-base < 3.9}
# /SECTION
%endif
%python_subpackages
%description
An API for interacting with the parts of fonts during the font development process.
%prep
%setup -q -n fontParts-%{version}
%build
export LANG=C.UTF-8
%python_build
%install
%if !%{with test}
export LANG=C.UTF-8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
# fontParts tests requires fontPens and fontPens' tests require fontParts
%check
export LANG=C.UTF-8
%python_expand PYTHONPATH=./Lib $python Lib/fontParts/fontshell/test.py
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%endif
%changelog