14
0
forked from pool/python-pygame

Accepting request 257632 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/257632
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygame?expand=0&rev=23
This commit is contained in:
Stephan Kulow
2014-10-20 05:27:16 +00:00
committed by Git OBS Bridge
3 changed files with 44 additions and 19 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun Oct 12 09:49:51 UTC 2014 - mailaender@opensuse.org
- fixed rpmlint error devel-file-in-non-devel-package
- patch1 could need a tag
- fixed rpmlint warning self-obsoletion pygame-doc
- ignore missing executable flags in the -docs package
- added missing build requires for portmidi
- fixed rpmlint warning files-duplicate with fdupes
- added rpmlintrc to whitelist the warnings about sample code
- avoid redundancy in the %description
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 7 11:01:11 UTC 2011 - idonmez@novell.com Thu Jul 7 11:01:11 UTC 2011 - idonmez@novell.com

2
python-pygame.rpmlintrc Normal file
View File

@@ -0,0 +1,2 @@
addFilter("/site-packages/pygame/examples/")
addFilter("/site-packages/pygame/tests/")

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pygame # spec file for package python-pygame
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,12 +16,13 @@
# #
Name: python-pygame Name: python-pygame
Version: 1.9.1 Version: 1.9.1
Release: 5 Release: 0
Source: http://pygame.org/ftp/pygame-%{version}release.tar.gz Source: http://pygame.org/ftp/pygame-%{version}release.tar.gz
Source1: README.SUSE Source1: README.SUSE
Source2: python-pygame.rpmlintrc
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: pygame-v4l-2.6.38.patch Patch1: pygame-v4l-2.6.38.patch
Summary: A Python Module for Interfacing with the SDL Multimedia Library Summary: A Python Module for Interfacing with the SDL Multimedia Library
License: LGPL-2.1+ License: LGPL-2.1+
@@ -33,6 +34,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SDL_image-devel BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel BuildRequires: SDL_ttf-devel
BuildRequires: fdupes
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: libpng-devel BuildRequires: libpng-devel
BuildRequires: python-devel BuildRequires: python-devel
@@ -45,6 +47,9 @@ BuildRequires: python-numeric
%if 0%{?suse_version} >= 1210 %if 0%{?suse_version} >= 1210
BuildRequires: libv4l-devel >= 0.8.4 BuildRequires: libv4l-devel >= 0.8.4
%endif %endif
%if 0%{?suse_version} >= 1320
BuildRequires: portmidi-devel
%endif
%{py_requires} %{py_requires}
%description %description
@@ -56,20 +61,22 @@ Numerical Python extension. Pygame is the successor to the pySDL
wrapper project, written by Mark Baker. wrapper project, written by Mark Baker.
%package doc %package doc
License: LGPL-2.1+
Summary: Pygame documentation and example programs Summary: Pygame documentation and example programs
Group: Development/Libraries/Python Group: Development/Libraries/Python
Provides: pygame-doc Provides: pygame-doc > 1.5.5
Obsoletes: pygame-doc Obsoletes: pygame-doc <= 1.5.5
Requires: python-pygame = %{version} Requires: python-pygame = %{version}
%description doc %description doc
Pygame is a Python wrapper module for the SDL multimedia library. It This package contains documentation and example programs for Pygame.
contains python functions and classes that will allow you to use SDL's
support for playing cdroms, audio and video output, and keyboard, mouse %package devel
and joystick input. pygame also includes support for the Numerical Summary: Pygame development package
Python extension. pygame is the successor to the pySDL wrapper project, Group: Development/Libraries/Python
written by Mark Baker. Requires: python-pygame = %{version}
%description devel
This package contains the header files for developers of Pygame.
%prep %prep
%setup -q -n pygame-%{version}release %setup -q -n pygame-%{version}release
@@ -83,25 +90,29 @@ yes y | python -d config.py
python setup.py build python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES python setup.py install --prefix=%{_prefix} --root=%{buildroot}
#install doc #install doc
install -d $RPM_BUILD_ROOT%{_docdir}/python-pygame install -d %{buildroot}%{_docdir}/python-pygame
install -m 644 WHATSNEW README.txt %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/python-pygame install -m 644 WHATSNEW README.txt %{SOURCE1} %{buildroot}%{_docdir}/python-pygame
cp -r docs/ examples/ $RPM_BUILD_ROOT%{_docdir}/python-pygame cp -r docs/ examples/ %{buildroot}%{_docdir}/python-pygame
%clean %fdupes -s %{buildroot}%{_prefix}
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES %files
%defattr(644,root,root,755) %defattr(644,root,root,755)
%doc %dir %{_docdir}/python-pygame %doc %dir %{_docdir}/python-pygame
%doc %{_docdir}/python-pygame/WHATSNEW %doc %{_docdir}/python-pygame/WHATSNEW
%doc %{_docdir}/python-pygame/README.txt %doc %{_docdir}/python-pygame/README.txt
%doc %{_docdir}/python-pygame/README.SUSE %doc %{_docdir}/python-pygame/README.SUSE
%{python_sitearch}/*
%files doc %files doc
%defattr(644,root,root,755) %defattr(644,root,root,755)
%doc %{_docdir}/python-pygame/docs %doc %{_docdir}/python-pygame/docs
%doc %{_docdir}/python-pygame/examples %doc %{_docdir}/python-pygame/examples
%files devel
%defattr(644,root,root,755)
%{py_incdir}/pygame/
%changelog %changelog