Update to upstream 1.2.4
- Update to upstream 1.2.4 - Specfile cleanup
This commit is contained in:
parent
74b60291e6
commit
384f161a6e
3 changed files with 38 additions and 17 deletions
|
|
@ -1,12 +1,12 @@
|
|||
%global with_python3 1
|
||||
|
||||
%global srcname pyglet
|
||||
%global srcversion 1.2.1
|
||||
%global srcversion 1.2.4
|
||||
%global versionedname %{srcname}-%{srcversion}
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: %{srcversion}
|
||||
Release: 4%{?dist}
|
||||
Release: 1%{?dist}
|
||||
Summary: A cross-platform windowing and multimedia library for Python
|
||||
|
||||
License: BSD
|
||||
|
|
@ -28,18 +28,6 @@ BuildRequires: python3-devel
|
|||
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
|
||||
Requires: libX11
|
||||
|
||||
|
||||
%description
|
||||
This library provides an object-oriented programming interface for developing
|
||||
games and other visually-rich applications with Python.
|
||||
|
|
@ -50,15 +38,43 @@ fully aware of multi-monitor setups.
|
|||
|
||||
pyglet might be seen as an alternative to PyGame.
|
||||
|
||||
|
||||
%package -n python2-%{srcname}
|
||||
Summary: A cross-platform windowing and multimedia library for Python 3
|
||||
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
|
||||
Requires: python2
|
||||
Requires: python-pillow%{?_isa}
|
||||
|
||||
# The libraries are imported dynamically using ctypes, so rpm can't find them.
|
||||
Requires: libGL
|
||||
Requires: libGLU
|
||||
Requires: libX11
|
||||
|
||||
%description -n python2-%{srcname}
|
||||
This library provides an object-oriented programming interface for developing
|
||||
games and other visually-rich applications with Python.
|
||||
pyglet has virtually no external dependencies. For most applications and game
|
||||
requirements, pyglet needs nothing else besides Python, simplifying
|
||||
distribution and installation. It also handles multiple windows and
|
||||
fully aware of multi-monitor setups.
|
||||
|
||||
pyglet might be seen as an alternative to PyGame.
|
||||
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-%{srcname}
|
||||
Summary: A cross-platform windowing and multimedia library for Python 3
|
||||
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
|
||||
Requires: python3
|
||||
Requires: python3-pillow%{?_isa}
|
||||
|
||||
# The libraries are imported dynamically using ctypes, so rpm can't find them.
|
||||
Requires: libGL
|
||||
Requires: libGLU
|
||||
Requires: libX11
|
||||
|
||||
%description -n python3-%{srcname}
|
||||
|
|
@ -92,26 +108,26 @@ cp -a . %{py3dir}
|
|||
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
%py2_build
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py build
|
||||
%py3_build
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||
%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/%{srcname}
|
||||
%py2_install
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/%{srcname}
|
||||
%py3_install
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
||||
%files -n python2-%{srcname}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG
|
||||
%doc README
|
||||
|
|
@ -133,6 +149,10 @@ popd
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Aug 09 2016 Petr Viktorin <pviktori@redhat.com> - 1.2.4-1
|
||||
- Update to upstream 1.2.4
|
||||
- Specfile cleanup
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue