Blob Blame History Raw
%global forgeurl

Name:           python-ots
# Upstream version is kept in sync with opentype-sanitizer
# (, which is normally built and bundled as
# part of the Python wheel build. Similarly, we should update this package
# together with the opentype-sanitizer package in the distribution, ideally as
# a multi-build update.
# See for the process to
# update the source for a new opentype-sanitizer release; send upstream a PR if
# they are lagging.
Version:        8.1.4
Release:        %autorelease
Summary:        Python wrapper for the OpenType Sanitizer

License:        BSD
URL:            %{forgeurl}
Source0:        %{forgesource}

BuildArch:      noarch

Patch0:         python-ots-8.1.4-no-bundled-executable.patch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(wheel)
BuildRequires:  python3dist(setuptools-scm)
BuildRequires:  python3dist(pytest)
BuildRequires:  opentype-sanitizer = %{version}

Requires:       opentype-sanitizer = %{version}

%global common_description %{expand:

%description %{common_description}

%package -n     python3-ots
Summary:        %{summary}

%description -n python3-ots %{common_description}

%forgeautosetup -p1


export BINDIR=%{_bindir}


%files -n python3-ots
%license LICENSE