|
|
d2492b7 |
%global srcname MutatorMath
|
|
|
d2492b7 |
# upstream is not consistent on uppercase usage
|
|
|
d2492b7 |
%global libname mutatorMath
|
|
|
d2492b7 |
%global pkgname mutatormath
|
|
|
d2492b7 |
|
|
|
d2492b7 |
Name: python-%{pkgname}
|
|
|
9a14cd5 |
Version: 2.0.4
|
|
|
d2492b7 |
Release: 1%{?dist}
|
|
|
d2492b7 |
Summary: Python library for piecewise linear interpolation in multiple dimensions
|
|
|
d2492b7 |
|
|
|
d2492b7 |
License: BSD
|
|
|
d2492b7 |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
d2492b7 |
Source0: https://github.com/LettError/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
d2492b7 |
|
|
|
d2492b7 |
BuildArch: noarch
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%description
|
|
|
d2492b7 |
MutatorMath is a Python library for the calculation of piecewise linear
|
|
|
d2492b7 |
interpolations in n-dimensions with any number of masters. It was developed for
|
|
|
d2492b7 |
interpolating data related to fonts, but if can handle any arithmetic object.
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%package -n python2-%{pkgname}
|
|
|
d2492b7 |
Summary: %{summary}
|
|
|
d2492b7 |
%{?python_provide:%python_provide python2-%{pkgname}}
|
|
|
d2492b7 |
|
|
|
d2492b7 |
BuildRequires: python2-devel
|
|
|
d2492b7 |
BuildRequires: python2-setuptools
|
|
|
d2492b7 |
BuildRequires: python2-ufolib
|
|
|
d2492b7 |
BuildRequires: python2-defcon
|
|
|
d2492b7 |
BuildRequires: python2-fontMath
|
|
|
d2492b7 |
Requires: python2-ufolib
|
|
|
d2492b7 |
Requires: python2-defcon
|
|
|
d2492b7 |
Requires: python2-fontMath
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%description -n python2-%{pkgname}
|
|
|
d2492b7 |
MutatorMath is a Python library for the calculation of piecewise linear
|
|
|
d2492b7 |
interpolations in n-dimensions with any number of masters. It was developed for
|
|
|
d2492b7 |
interpolating data related to fonts, but if can handle any arithmetic object.
|
|
|
d2492b7 |
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%package -n python3-%{pkgname}
|
|
|
d2492b7 |
Summary: %{summary}
|
|
|
d2492b7 |
%{?python_provide:%python_provide python3-%{pkgname}}
|
|
|
d2492b7 |
|
|
|
d2492b7 |
BuildRequires: python3-devel
|
|
|
d2492b7 |
BuildRequires: python3-setuptools
|
|
|
d2492b7 |
BuildRequires: python3-ufolib
|
|
|
d2492b7 |
BuildRequires: python3-defcon
|
|
|
d2492b7 |
BuildRequires: python3-fontMath
|
|
|
d2492b7 |
Requires: python3-ufolib
|
|
|
d2492b7 |
Requires: python3-defcon
|
|
|
d2492b7 |
Requires: python3-fontMath
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%description -n python3-%{pkgname}
|
|
|
d2492b7 |
MutatorMath is a Python library for the calculation of piecewise linear
|
|
|
d2492b7 |
interpolations in n-dimensions with any number of masters. It was developed for
|
|
|
d2492b7 |
interpolating data related to fonts, but if can handle any arithmetic object.
|
|
|
d2492b7 |
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%prep
|
|
|
d2492b7 |
%autosetup -n %{srcname}-%{version}
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%build
|
|
|
d2492b7 |
%py2_build
|
|
|
d2492b7 |
%py3_build
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%install
|
|
|
d2492b7 |
%py2_install
|
|
|
d2492b7 |
%py3_install
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%check
|
|
|
d2492b7 |
%{__python2} setup.py test
|
|
|
d2492b7 |
%{__python3} setup.py test
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%files -n python2-%{pkgname}
|
|
|
d2492b7 |
%license LICENSE
|
|
|
d2492b7 |
%doc README.rst
|
|
|
d2492b7 |
%{python2_sitelib}/%{libname}
|
|
|
d2492b7 |
%{python2_sitelib}/%{srcname}-*.egg-info
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%files -n python3-%{pkgname}
|
|
|
d2492b7 |
%license LICENSE
|
|
|
d2492b7 |
%doc README.rst
|
|
|
d2492b7 |
%{python3_sitelib}/%{libname}
|
|
|
d2492b7 |
%{python3_sitelib}/%{srcname}-*.egg-info
|
|
|
d2492b7 |
|
|
|
d2492b7 |
%changelog
|
|
|
9a14cd5 |
* Thu Apr 13 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.4-1
|
|
|
9a14cd5 |
- Update version
|
|
|
9a14cd5 |
|
|
|
d2492b7 |
* Sun Mar 19 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.3-1
|
|
|
d2492b7 |
- Initial package
|