Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Orion Poplawski
8055936d39 - Only enable python3 on Fedora
- Drop old python-imaging conditional
- Drop unneeded manual bytecompile
2015-07-08 09:53:30 -06:00

View file

@ -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 <orion@cora.nwra.com> - 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 <rel-eng@lists.fedoraproject.org> - 1.2.1-1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild