forked from pool/python-pyglet
Remove obsolete python-imaging dependency OBS-URL: https://build.opensuse.org/request/show/516623 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=12
92 lines
3.0 KiB
RPMSpec
92 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-pyglet
|
|
#
|
|
# 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-pyglet
|
|
Version: 1.2.4
|
|
Release: 0
|
|
Summary: Windowing and multimedia library
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
Url: https://bitbucket.org/pyglet/pyglet
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pyglet/pyglet-%{version}.tar.gz
|
|
Source1: %{name}-rpmlintrc
|
|
# PATCH-FIX-OPENSUSE pyglet-1.2.4-fix-image-import.patch -- fix "import Image"
|
|
Patch0: pyglet-1.2.4-fix-image-import.patch
|
|
# PATCH-FEATURE-UPSTREAM pyglet-1.2.4-add-wmclass.patch -- https://bitbucket.org/pyglet/pyglet/issues/92
|
|
Patch1: pyglet-1.2.4-add-wmclass.patch
|
|
BuildRequires: %{python_module Pillow}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: alsa-devel
|
|
BuildRequires: dos2unix
|
|
BuildRequires: fdupes
|
|
BuildRequires: fontconfig-devel
|
|
BuildRequires: freetype2-devel
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: openal-soft-devel
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(glu)
|
|
BuildRequires: pkgconfig(x11)
|
|
Requires: alsa-devel
|
|
Requires: fontconfig-devel
|
|
Requires: freetype2-devel
|
|
Requires: gtk2-devel
|
|
Requires: openal-soft-devel
|
|
Requires: pkgconfig(gl)
|
|
Requires: pkgconfig(glu)
|
|
Requires: pkgconfig(x11)
|
|
Requires: python-Pillow
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
pyglet provides an object-oriented programming interface for
|
|
developing games and other visually-rich applications.
|
|
|
|
%prep
|
|
%setup -q -n pyglet-%{version}
|
|
%patch0
|
|
%patch1
|
|
|
|
# Convert to unix line end
|
|
find -name "*.py" -exec dos2unix "{}" "+"
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%{python_expand cp -Lr examples examples_%{$python_bin_suffix}
|
|
find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/python$|#!%{__$python}|" {} \;
|
|
find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" {} \;
|
|
%fdupes examples_%{$python_bin_suffix}
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
}
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGELOG README LICENSE NOTICE RELEASE_NOTES
|
|
%doc examples_%{python_bin_suffix}
|
|
%{python_sitelib}/pyglet
|
|
%{python_sitelib}/pyglet-%{version}-py*.egg-info
|
|
|
|
%changelog
|