Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8055936d39 |
1 changed files with 8 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue