forked from pool/python-glfw
- [2.5.5] - 2022-09-07 Added wrappers for unreleased macros Fixed set_monitor_user_pointer and get_monitor_user_pointer - [2.5.4] - 2022-07-23 Updated to GLFW 3.3.8 - [2.5.3] - 2022-04-09 Updated to GLFW 3.3.7 - [2.5.2] - 2022-04-01 Fixed swapped HAT_DOWN and HAT_RIGHT constants - [2.5.1] - 2022-02-27 Updated to GLFW 3.3.6 - [2.5.0] - 2021-12-18 Added /usr/lib/arm-linux-gnueabihf to library search paths - [2.4.0] - 2021-11-07 Added macOS wheels for arm64 Added wrappers for unreleased macros and functions Updated to GLFW 3.3.5 - [2.3.0] - 2021-10-01 Added /opt/homebrew/lib to library search paths - [2.2.0] - 2021-09-09 Added Linux wheels for aarch64 Updated to GLFW 3.3.4 - [2.1.0] - 2021-02-28 Updated to GLFW 3.3.3 - [2.0.0] - 2020-10-04 Changed default error reporting method to warn Allow dict for ERROR_REPORTING - [1.12.0] - 2020-07-10 Added support for CFFI pointers for Vulkan objects OBS-URL: https://build.opensuse.org/request/show/1006779 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-glfw?expand=0&rev=18
71 lines
2.2 KiB
RPMSpec
71 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-glfw
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-glfw
|
|
Version: 2.5.4
|
|
Release: 0
|
|
Summary: A ctypes-based wrapper for GLFW3
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/FlorianRhiem/pyGLFW
|
|
Source: https://files.pythonhosted.org/packages/source/g/glfw/glfw-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: libglfw3
|
|
BuildRequires: python-rpm-macros
|
|
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}
|
|
|
|
%check
|
|
# no upstream tests
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|