14
0
forked from pool/python-vulkan
Files
python-vulkan/python-vulkan.spec

62 lines
1.8 KiB
RPMSpec

#
# spec file for package python-vulkan
#
# 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-%{**}}
Name: python-vulkan
Version: 1.0.61
Release: 0
Summary: The ultimate Python binding for Vulkan API
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/realitix/vulkan
Source: https://files.pythonhosted.org/packages/source/v/vulkan/vulkan-%{version}.tar.gz
Source1: LICENSE
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: vulkan-devel
Requires: python-cffi
Requires: vulkan
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
Python extension which supports the Vulkan API.
It leverages power of Vulkan with simplicity of Python.
It's a complete Vulkan wrapper, it keeps the original Vulkan API and
try to limit differences induced by Python.
%prep
%setup -q -n vulkan-%{version}
cp %{SOURCE1} .
%build
%python_build
%install
%python_install
%fdupes %{buildroot}%{_prefix}
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/*
%changelog