15
0
forked from pool/python-glfw

Accepting request 540327 from home:TheBlackCat:branches:devel:languages:python

- initial version

OBS-URL: https://build.opensuse.org/request/show/540327
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-glfw?expand=0&rev=1
This commit is contained in:
Todd R
2017-11-09 19:49:35 +00:00
committed by Git OBS Bridge
commit a238ebd24a
5 changed files with 107 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
glfw-1.4.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27fbea8a18eae4f6ecb44c51893bc0fca156b3d1b97e4b0f2fee6c6d11dbb712
size 15935

4
python-glfw.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Nov 7 18:23:57 UTC 2017 - toddrme2178@gmail.com
- initial version

76
python-glfw.spec Normal file
View File

@@ -0,0 +1,76 @@
#
# spec file for package python-glfw
#
# 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-glfw
Version: 1.4.0
Release: 0
License: MIT
Summary: A ctypes-based wrapper for GLFW3
Url: https://github.com/FlorianRhiem/pyGLFW
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/g/glfw/glfw-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: libglfw3
%endif
Requires: libglfw3
BuildArch: noarch
%python_subpackages
%description
This module provides Python bindings for GLFW . It is a
ctypes wrapper which keeps very close to the original GLFW API,
except for:
- function names use the pythonic ``words_with_underscores`` notation
instead of ``camelCase``
- ``GLFW_`` and ``glfw`` prefixes have been removed, as their function
is replaced by the module namespace
- structs have been replaced with Python sequences
- functions like ``glfwGetMonitors`` return a list instead of a pointer
and an object count
- Gamma ramps use floats between 0.0 and 1.0 instead of unsigned shorts
- GLFW errors are reported as ``glfw.GLFWError`` exceptions if no error
callback is set (use ``glfw.ERROR_REPORTING=False`` to disable this)
%prep
%setup -q -n glfw-%{version}
%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 CHANGES.txt LICENSE.txt README.txt
%{python_sitelib}/*
%changelog