From c7b5da947a7bde642eaaf40acc90824b599ba6ad Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: May 21 2020 15:47:54 +0000 Subject: Initial import (#1833405) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df927cc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ufoLib2-0.7.1.zip diff --git a/python-ufoLib2.spec b/python-ufoLib2.spec new file mode 100644 index 0000000..3a5754a --- /dev/null +++ b/python-ufoLib2.spec @@ -0,0 +1,66 @@ +%global srcname ufoLib2 + +Name: python-%{srcname} +Version: 0.7.1 +Release: 2%{?dist} +Summary: A library to deal with UFO font sources + +License: ASL 2.0 +URL: https://pypi.org/project/ufoLib2 +Source0: %{pypi_source %{srcname} %{version} zip} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(attrs) +BuildRequires: python3dist(fonttools) +BuildRequires: python3dist(lxml) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(setuptools-scm) +BuildRequires: python3dist(typing-extensions) +BuildRequires: python3dist(wheel) +BuildRequires: python3dist(sphinx) + +# Required for running tests +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-randomly) + + +%global _description %{expand: +ufoLib2 is meant to be a thin representation of the Unified Font Object (UFO) +version 3 data model, intended for programmatic manipulation and fast batch +processing of UFOs.} + +%description %_description + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m pytest -v + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}/ + +%changelog +* Tue May 19 2020 Parag Nemade - 0.7.1-2 +- Drop the Requires: as they will be picked automatically +- Rename spec to python-ufoLib2.spec + +* Thu May 07 2020 Parag Nemade - 0.7.1-1 +- Initial packaging + diff --git a/sources b/sources new file mode 100644 index 0000000..cf4ed42 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ufoLib2-0.7.1.zip) = e0ddd496ced3234d9c5ee77af4205a1e5df031017a4ba526749df180a21ef878c56b933eae37459c6a5b97364849a5209844485e873a7b91d46a613f0f13b79b