From 8055936d397c70bf6a9ee7b8b133aea99e71b30a Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 8 Jul 2015 09:53:30 -0600 Subject: [PATCH] - Only enable python3 on Fedora - Drop old python-imaging conditional - Drop unneeded manual bytecompile --- python-pyglet.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/python-pyglet.spec b/python-pyglet.spec index b08a2c4..033a370 100644 --- a/python-pyglet.spec +++ b/python-pyglet.spec @@ -1,4 +1,6 @@ +%if 0%{?fedora} %global with_python3 1 +%endif %global srcname pyglet %global srcversion 1.2.1 @@ -6,7 +8,7 @@ Name: python-%{srcname} Version: %{srcversion} -Release: 1%{?dist} +Release: 2%{?dist} Summary: A cross-platform windowing and multimedia library for Python License: BSD @@ -29,11 +31,7 @@ BuildRequires: python3-setuptools %endif Requires: python -%if 0%{?fedora} <= 18 -Requires: python-imaging%{?_isa} -%else Requires: python-pillow%{?_isa} -%endif # The libraries are imported dynamically using ctypes, so rpm can't find them. Requires: libGL @@ -102,12 +100,10 @@ popd %install %{__python} setup.py install --skip-build --root %{buildroot} -%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/%{srcname} %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} -%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/%{srcname} popd %endif @@ -133,6 +129,11 @@ popd %changelog +* Wed Jul 08 2015 Orion Poplawski - 1.2.1-2 +- Only enable python3 on Fedora +- Drop old python-imaging conditional +- Drop unneeded manual bytecompile + * Thu Jun 18 2015 Fedora Release Engineering - 1.2.1-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild