106 lines
3.3 KiB
RPMSpec
106 lines
3.3 KiB
RPMSpec
Name: python-pygame
|
|
Version: 1.9.6
|
|
Release: 1mamba
|
|
Summary: A set of Python modules designed for writing games
|
|
Group: Development/Libraries/Python
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://pygame.org/
|
|
Source: http://pygame.org/ftp/pygame-%{version}.tar.gz
|
|
Patch0: python-pygame-1.9.1-remove-v4l.patch
|
|
License: LGPL
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libportmidi-devel
|
|
BuildRequires: libpython27-devel
|
|
BuildRequires: libpython-devel
|
|
BuildRequires: libSDL-devel
|
|
BuildRequires: libSDL_image-devel
|
|
BuildRequires: libSDL_mixer-devel
|
|
BuildRequires: libSDL_ttf-devel
|
|
BuildRequires: libsmpeg-devel
|
|
BuildRequires: libX11-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python-numeric-devel
|
|
Requires: python >= 2.3.4
|
|
Requires: python-numeric >= 23.6
|
|
Requires: ttf-freefont
|
|
|
|
%description
|
|
Pygame is a set of Python modules designed for writing games. It is written on top of the excellent SDL library. This allows you to create fully featured games and multimedia programs in the python language. Pygame is highly portable and runs on nearly every platform and operating system.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Static libraries and headers for %{name}
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
Pygame is a set of Python modules designed for writing games.
|
|
This package contains static libraries and header files need for development.
|
|
|
|
%prep
|
|
%setup -q -n pygame-%{version}
|
|
#%patch0 -p1
|
|
|
|
%build
|
|
%{__python} setup.py build << _EOF
|
|
Y
|
|
_EOF
|
|
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
%{__python} setup.py install --root %{buildroot}\
|
|
--install-lib=%{python_sitearch} \
|
|
--install-headers=%{_includedir}/python/pygame/
|
|
rm -f %{buildroot}%{python_sitearch}/pygame/freesansbold.ttf
|
|
ln -s %{_datadir}/fonts/truetype/FreeSansBold.ttf %{buildroot}%{python_sitearch}/pygame/freesansbold.ttf
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %{python_sitearch}/pygame/
|
|
%{python_sitearch}/pygame/*
|
|
%dir %{python_sitearch}/pygame-%{version}-py*.egg-info
|
|
%{python_sitearch}/pygame-%{version}-py*.egg-info/*
|
|
#%doc WHATSNEW README.txt
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/python/pygame
|
|
%{_includedir}/python/pygame/*.h
|
|
|
|
%changelog
|
|
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.6-1mamba
|
|
- update to 1.9.6
|
|
|
|
* Thu May 23 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.1-4mamba
|
|
- python 2.7 mass rebuild
|
|
|
|
* Sat Mar 26 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.1-3mamba
|
|
- rebuilt with libjpeg 8
|
|
|
|
* Sat Oct 30 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.9.1-1mamba
|
|
- update to 1.9.1
|
|
|
|
* Fri Oct 03 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.8.1-2mamba
|
|
- fixed freesansbold.ttf permissions
|
|
|
|
* Tue Sep 30 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.8.1-1mamba
|
|
- update to 1.8.1
|
|
|
|
* Tue Aug 09 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.2-1qilnx
|
|
- update to version 1.6.2 by autospec
|
|
|
|
* Mon Dec 20 2004 Massimo Pintore <massimo.pintore@qilinux.it> 1.6-1qilnx
|
|
- package created by autospec
|