From 633c6969ec44db5dcd626cfe3e22f2b4358b1741d3c95e6001c46274c4b573a3 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 9 Nov 2017 21:52:41 +0000 Subject: [PATCH] Accepting request 540347 from home:TheBlackCat:branches:devel:languages:python - initial version OBS-URL: https://build.opensuse.org/request/show/540347 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freetype-py?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + freetype-py-1.1.tar.gz | 3 ++ python-freetype-py.changes | 4 +++ python-freetype-py.spec | 65 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 96 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 freetype-py-1.1.tar.gz create mode 100644 python-freetype-py.changes create mode 100644 python-freetype-py.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/freetype-py-1.1.tar.gz b/freetype-py-1.1.tar.gz new file mode 100644 index 0000000..8ecae18 --- /dev/null +++ b/freetype-py-1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e078cac1f85a92f4e191d2f7f0d675a1b1a3b5db31817c483fd9792293187be5 +size 157371 diff --git a/python-freetype-py.changes b/python-freetype-py.changes new file mode 100644 index 0000000..1109111 --- /dev/null +++ b/python-freetype-py.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Nov 7 18:23:47 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-freetype-py.spec b/python-freetype-py.spec new file mode 100644 index 0000000..ad12483 --- /dev/null +++ b/python-freetype-py.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-freetype-py +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test +Name: python-freetype-py +Version: 1.1 +Release: 0 +License: BSD-3-Clause +Summary: Freetype python bindings +Url: https://github.com/rougier/freetype-py +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/f/freetype-py/freetype-py-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: freetype2 +%endif +Requires: freetype2 +BuildArch: noarch + +%python_subpackages + +%description +Freetype python provides bindings for the FreeType library. +Only the high-level API is bound. + +%prep +%setup -q -n freetype-py-%{version} +sed -i -e '/^#!\//, 1d' freetype/ft_structs.py freetype/ft_types.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc LICENSE.txt README.rst +%{python_sitelib}/* + +%changelog