forked from pool/python-pyglet
Accepting request 514743 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/514743 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 6 02:32:29 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement single-spec version
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 31 21:13:01 UTC 2017 - kkirill@opensuse.org
|
Mon Jul 31 21:13:01 UTC 2017 - kkirill@opensuse.org
|
||||||
|
|
||||||
|
@@ -16,8 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define oname pyglet
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
|
||||||
Name: python-pyglet
|
Name: python-pyglet
|
||||||
Version: 1.2.4
|
Version: 1.2.4
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,7 +24,7 @@ Summary: Cross-platform windowing and multimedia library
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://bitbucket.org/pyglet/pyglet
|
Url: https://bitbucket.org/pyglet/pyglet
|
||||||
Source0: http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pyglet/pyglet-%{version}.tar.gz
|
||||||
Source1: %{name}-rpmlintrc
|
Source1: %{name}-rpmlintrc
|
||||||
# PATCH-FIX-OPENSUSE pyglet-1.2.4-fix-image-import.patch -- fix "import Image"
|
# PATCH-FIX-OPENSUSE pyglet-1.2.4-fix-image-import.patch -- fix "import Image"
|
||||||
Patch0: pyglet-1.2.4-fix-image-import.patch
|
Patch0: pyglet-1.2.4-fix-image-import.patch
|
||||||
@@ -33,21 +32,21 @@ Patch0: pyglet-1.2.4-fix-image-import.patch
|
|||||||
Patch1: pyglet-1.2.4-add-wmclass.patch
|
Patch1: pyglet-1.2.4-add-wmclass.patch
|
||||||
# PATCH-FIX-UPSTREAM pyglet-1.2.4-fix-examples.patch -- fix intrepreter shebang
|
# PATCH-FIX-UPSTREAM pyglet-1.2.4-fix-examples.patch -- fix intrepreter shebang
|
||||||
Patch2: pyglet-1.2.4-fix-examples.patch
|
Patch2: pyglet-1.2.4-fix-examples.patch
|
||||||
%if 0%{?suse_version}
|
BuildRequires: %{python_module Pillow}
|
||||||
BuildRequires: fdupes
|
BuildRequires: %{python_module devel}
|
||||||
%endif
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: alsa-devel
|
BuildRequires: alsa-devel
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: fontconfig-devel
|
BuildRequires: fontconfig-devel
|
||||||
BuildRequires: freetype2-devel
|
BuildRequires: freetype2-devel
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: openal-soft-devel
|
BuildRequires: openal-soft-devel
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: python-imaging
|
BuildRequires: python-imaging
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: pkgconfig(gl)
|
BuildRequires: pkgconfig(gl)
|
||||||
BuildRequires: pkgconfig(glu)
|
BuildRequires: pkgconfig(glu)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alsa-devel
|
Requires: alsa-devel
|
||||||
Requires: fontconfig-devel
|
Requires: fontconfig-devel
|
||||||
Requires: freetype2-devel
|
Requires: freetype2-devel
|
||||||
@@ -57,12 +56,8 @@ Requires: python-imaging
|
|||||||
Requires: pkgconfig(gl)
|
Requires: pkgconfig(gl)
|
||||||
Requires: pkgconfig(glu)
|
Requires: pkgconfig(glu)
|
||||||
Requires: pkgconfig(x11)
|
Requires: pkgconfig(x11)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pyglet provides an object-oriented programming
|
pyglet provides an object-oriented programming
|
||||||
@@ -70,7 +65,7 @@ interface for developing games and other visually-rich applications
|
|||||||
for Windows, Mac OS X and Linux.
|
for Windows, Mac OS X and Linux.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{oname}-%{version}
|
%setup -q -n pyglet-%{version}
|
||||||
%patch0
|
%patch0
|
||||||
%patch1
|
%patch1
|
||||||
%patch2
|
%patch2
|
||||||
@@ -79,19 +74,21 @@ for Windows, Mac OS X and Linux.
|
|||||||
find -name "*.py" -exec dos2unix "{}" "+"
|
find -name "*.py" -exec dos2unix "{}" "+"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%{python_expand cp -r examples examples_%{$python_bin_suffix}
|
||||||
%fdupes -s %{buildroot}%{_prefix}
|
find . -name "*.py" -exec sed -i "s|#!/usr/bin/python|#!%__$python|" {} \;
|
||||||
%endif
|
}
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGELOG README LICENSE NOTICE RELEASE_NOTES examples
|
%doc CHANGELOG README LICENSE NOTICE RELEASE_NOTES
|
||||||
%{python_sitelib}/%{oname}
|
%doc examples_%{python_bin_suffix}/
|
||||||
%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info
|
%{python_sitelib}/pyglet
|
||||||
|
%{python_sitelib}/pyglet-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user