|
|
7aaa473 |
%global srcname cu2qu
|
|
|
7aaa473 |
|
|
|
7aaa473 |
Name: python-%{srcname}
|
|
|
bd3fb4c |
Version: 1.6.7
|
|
|
bd3fb4c |
Release: 1%{?dist}
|
|
|
7aaa473 |
Summary: Cubic-to-quadratic bezier curve conversion
|
|
|
7aaa473 |
|
|
|
7aaa473 |
License: ASL 2.0
|
|
|
7aaa473 |
URL: https://pypi.org/project/%{srcname}
|
|
|
7aaa473 |
Source0: https://github.com/googlei18n/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%description
|
|
|
7aaa473 |
This library provides functions which take in UFO (Unified Font Object) objects
|
|
|
7aaa473 |
(Defcon Fonts or Robofab RFonts) and converts any cubic curves to quadratic.
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%package -n python3-%{srcname}
|
|
|
7aaa473 |
Summary: %{summary}
|
|
|
7aaa473 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
7aaa473 |
|
|
|
bd3fb4c |
BuildRequires: gcc
|
|
|
bd3fb4c |
BuildRequires: gcc-c++
|
|
|
bd3fb4c |
BuildRequires: python3-Cython
|
|
|
7aaa473 |
BuildRequires: python3-devel
|
|
|
7aaa473 |
BuildRequires: python3-setuptools
|
|
|
bd3fb4c |
BuildRequires: python3-setuptools_scm
|
|
|
7aaa473 |
BuildRequires: python3-pytest
|
|
|
7aaa473 |
BuildRequires: python3-pytest-runner
|
|
|
c2dedf4 |
BuildRequires: python3-defcon
|
|
|
7aaa473 |
BuildRequires: python3-fonttools
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%description -n python3-%{srcname}
|
|
|
7aaa473 |
This library provides functions which take in UFO (Unified Font Object) objects
|
|
|
7aaa473 |
(Defcon Fonts or Robofab RFonts) and converts any cubic curves to quadratic.
|
|
|
7aaa473 |
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%prep
|
|
|
7aaa473 |
%autosetup -n %{srcname}-%{version}
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%build
|
|
|
bd3fb4c |
# Here we set upstream version based on setuptools_scm documentation
|
|
|
bd3fb4c |
# this is done to avoid the following error:
|
|
|
bd3fb4c |
# LookupError: setuptools-scm was unable to detect version
|
|
|
bd3fb4c |
# since we are not importing a .git repository in the tarball
|
|
|
bd3fb4c |
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
|
bd3fb4c |
export CU2QU_WITH_CYTHON=1
|
|
|
7aaa473 |
%py3_build
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%install
|
|
|
bd3fb4c |
# Here we set upstream version based on setuptools_scm documentation
|
|
|
bd3fb4c |
# this is done to avoid the following error:
|
|
|
bd3fb4c |
# LookupError: setuptools-scm was unable to detect version
|
|
|
bd3fb4c |
# since we are not importing a .git repository in the tarball
|
|
|
bd3fb4c |
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
|
7aaa473 |
%py3_install
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%check
|
|
|
bd3fb4c |
# Here we set upstream version based on setuptools_scm documentation
|
|
|
bd3fb4c |
# this is done to avoid the following error:
|
|
|
bd3fb4c |
# LookupError: setuptools-scm was unable to detect version
|
|
|
bd3fb4c |
# since we are not importing a .git repository in the tarball
|
|
|
bd3fb4c |
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
|
bd3fb4c |
|
|
|
bd3fb4c |
# Remove warning supression due to missing depenency
|
|
|
bd3fb4c |
sed -i -e '/filterwarnings:/d' -e '/^\s*ignore:\.\*bytes:DeprecationWarning:fs\.base/d' setup.cfg
|
|
|
bd3fb4c |
|
|
|
7aaa473 |
%{__python3} setup.py test
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%files -n python3-%{srcname}
|
|
|
7aaa473 |
%license LICENSE
|
|
|
7aaa473 |
%doc README.rst CONTRIBUTING.md
|
|
|
bd3fb4c |
%dir %{python3_sitearch}/%{srcname}
|
|
|
bd3fb4c |
%exclude %{python3_sitearch}/%{srcname}/*.c
|
|
|
bd3fb4c |
%{python3_sitearch}/%{srcname}-*.egg-info
|
|
|
bd3fb4c |
%{python3_sitearch}/%{srcname}/*.py
|
|
|
bd3fb4c |
%{python3_sitearch}/%{srcname}/*.so
|
|
|
bd3fb4c |
%{python3_sitearch}/%{srcname}/__pycache__
|
|
|
5c07778 |
%{_bindir}/%{srcname}
|
|
|
7aaa473 |
|
|
|
7aaa473 |
%changelog
|
|
|
bd3fb4c |
* Sun Jun 14 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 1.6.7-1
|
|
|
bd3fb4c |
- Ship cu2qu binary
|
|
|
bd3fb4c |
- Make package arch specific
|
|
|
bd3fb4c |
|
|
|
cfd1973 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-11
|
|
|
cfd1973 |
- Rebuilt for Python 3.9
|
|
|
cfd1973 |
|
|
|
a12a3d7 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-10
|
|
|
a12a3d7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
a12a3d7 |
|
|
|
59de115 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-9
|
|
|
59de115 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
59de115 |
|
|
|
da18129 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-8
|
|
|
da18129 |
- Rebuilt for Python 3.8
|
|
|
da18129 |
|
|
|
6581fe5 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-7
|
|
|
6581fe5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6581fe5 |
|
|
|
ddd000a |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-6
|
|
|
ddd000a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
ddd000a |
|
|
|
c4c812b |
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.0-5
|
|
|
c4c812b |
- Subpackage python2-cu2qu has been removed
|
|
|
c4c812b |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
c4c812b |
|
|
|
69816f2 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
|
|
|
69816f2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
69816f2 |
|
|
|
e146186 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-3
|
|
|
e146186 |
- Rebuilt for Python 3.7
|
|
|
e146186 |
|
|
|
5c07778 |
* Wed Apr 11 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 1.5.0-2
|
|
|
5c07778 |
- Ship cu2qu binary
|
|
|
5c07778 |
|
|
|
4b34352 |
* Wed Apr 11 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 1.5.0-1
|
|
|
4b34352 |
- Update version
|
|
|
4b34352 |
|
|
|
c206fd6 |
* Wed Feb 21 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 1.4.0-3
|
|
|
c206fd6 |
- Remove test file from package
|
|
|
c206fd6 |
|
|
|
c2dedf4 |
* Wed Feb 21 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 1.4.0-2
|
|
|
c2dedf4 |
- Add python-defcon to BRs
|
|
|
c2dedf4 |
|
|
|
400a247 |
* Wed Feb 21 2018 Athos Ribeiro <athoscr@fedoraproject.org> - 1.4.0-1
|
|
|
400a247 |
- Update version
|
|
|
400a247 |
|
|
|
4f9f43e |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
|
4f9f43e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
4f9f43e |
|
|
|
2742028 |
* Thu Aug 24 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 1.2.0-1
|
|
|
2742028 |
- Update version
|
|
|
2742028 |
|
|
|
8535421 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
|
|
|
8535421 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
8535421 |
|
|
|
7aaa473 |
* Sun Mar 19 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 1.1.1-1
|
|
|
7aaa473 |
- Initial package
|