python-pygame/python-pygame.spec

155 lines
5.3 KiB
RPMSpec

Name: python-pygame
Version: 2.6.1
Release: 2mamba
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: https://www.pygame.org/news
Source: https://pypi.debian.net/pygame/pygame-%{version}.tar.gz
Patch0: python-pygame-1.9.1-remove-v4l.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libSDL2-devel
BuildRequires: libX11-devel
BuildRequires: libfreetype-devel
BuildRequires: libjpeg-turbo
BuildRequires: libpng-devel
BuildRequires: libportmidi-devel
BuildRequires: libpython311-devel
BuildRequires: libsdl2_image-devel
BuildRequires: libsdl2_mixer-devel
BuildRequires: libsdl2_ttf-devel
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%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.
%if 0%{?with_pyver}
%define py_requires_append \
Provides: python-pygame \
Obsoletes: python-pygame < 2.6.1
%pyver_package
%endif
%prep
%setup -q -n pygame-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
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}
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%changelog
* Sun Oct 20 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-2mamba
- python-pygame-py3: provide/obsolete python-pygame
* Sun Sep 29 2024 Automatic Build System <autodist@openmamba.org> 2.6.1-1mamba
- automatic version update by autodist
* Sun Sep 01 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.0-2mamba
- removed requirements for python-numeric
* Tue Jun 25 2024 Automatic Build System <autodist@openmamba.org> 2.6.0-1mamba
- automatic version update by autodist
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2.5.2-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Mon Sep 18 2023 Automatic Build System <autodist@mambasoft.it> 2.5.2-1mamba
- automatic version update by autodist
* Mon Aug 14 2023 Automatic Build System <autodist@mambasoft.it> 2.5.1-1mamba
- automatic version update by autodist
* Sun Jun 25 2023 Automatic Build System <autodist@mambasoft.it> 2.5.0-1mamba
- automatic version update by autodist
* Mon May 01 2023 Automatic Build System <autodist@mambasoft.it> 2.4.0-1mamba
- automatic version update by autodist
* Tue Mar 14 2023 Automatic Build System <autodist@mambasoft.it> 2.3.0-1mamba
- automatic version update by autodist
* Tue Feb 28 2023 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
- automatic version update by autodist
* Wed Feb 15 2023 Automatic Build System <autodist@mambasoft.it> 2.1.3-1mamba
- automatic version update by autodist
* Mon Dec 27 2021 Automatic Build System <autodist@mambasoft.it> 2.1.2-1mamba
- automatic version update by autodist
* Sat Dec 25 2021 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic version update by autodist
* Sun Nov 07 2021 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic version update by autodist
* Mon Nov 01 2021 Automatic Build System <autodist@mambasoft.it> 2.0.3-1mamba
- automatic version update by autodist
* Mon Oct 11 2021 Automatic Build System <autodist@mambasoft.it> 2.0.2-1mamba
- automatic version update by autodist
* Sat Feb 27 2021 Automatic Build System <autodist@mambasoft.it> 2.0.1-1mamba
- automatic version update by autodist
* Tue Nov 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- update to 2.0.0
* 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
* Fri 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