%global srcname ufoLib
%global pkgname ufolib
Name: python-%{pkgname}
Version: 2.1.1
Release: 6%{?dist}
Summary: A low-level UFO reader and writer
License: BSD
URL: https://pypi.python.org/pypi/%{srcname}
Source0: https://github.com/unified-font-object/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
ufoLib reads and writes Unified Font Object (UFO) files. UFO is a file format
that stores fonts source files.
%package -n python3-%{pkgname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pkgname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BuildRequires: python3-pytest-runner
BuildRequires: python3-fonttools
Requires: python3-fonttools
%description -n python3-%{pkgname}
ufoLib reads and writes Unified Font Object (UFO) files. UFO is a file format
that stores fonts source files.
%prep
%autosetup -n %{srcname}-%{version}
%build
%py3_build
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-%{pkgname}
%license LICENSE.txt
%doc README.md
%dir %{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-*.egg-info
%{python3_sitelib}/%{srcname}/*.py
%{python3_sitelib}/%{srcname}/__pycache__
%{python3_sitelib}/%{srcname}/test
%changelog
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jan 28 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.1-5
- Subpackage python2-ufolib has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.1-3
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Nov 13 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.1.1-1
- Update version
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu May 25 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.1.0-1
- New version
- Change link in source, since upstream used a 'v' for the new tag
* Sun Mar 19 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.0-4
- Rename the package to lowercase
- Use summary tag for subpackages instead of defining one
* Sat Mar 18 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.0-3
- Own directory under sitelib
* Sat Mar 18 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.0-2
- Reintroduce testdata
* Sat Mar 18 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 2.0.0-1
- Initial package