15
0
forked from pool/python-glfw
Files
python-glfw/python-glfw.spec
Tomáš Chvátal bbe2d56fc4 Accepting request 781846 from home:pgajdos:python
- version update to 1.11.0
  ## [1.11.0] - 2020-02-21
  - Updated to GLFW 3.3.2
  - Include support for both X11 and Wayland libraries in the wheel
  
  ## [1.10.1] - 2020-01-21
  - Fixed default error callback name
  
  ## [1.10.0] - 2020-01-19
  - Added more options to error reporting
  
  ## [1.9.1] - 2020-01-08
  - Added conda search path for Windows
  
  ## [1.9.0] - 2019-12-30
  - Added wrappers for native functions
  
  ## [1.8.7] - 2019-12-10
  - Fixed glfwGetMonitorContentScale
  
  ## [1.8.6] - 2019-12-09
  - Added macOS wheels
  - Added Microsoft Visual C++ runtime libraries to Windows wheels
  
  ## [1.8.5] - 2019-11-28
  - Added /usr/lib/aarch64-linux-gnu/ to library search paths
  - Fix pointer types in get_window_content_scale

OBS-URL: https://build.opensuse.org/request/show/781846
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-glfw?expand=0&rev=14
2020-03-05 13:05:28 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package python-glfw
#
# Copyright (c) 2020 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: 1.11.0
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