forked from pool/python-pygame
Accepting request 257552 from home:Mailaender:branches:devel:languages:python
- 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 OBS-URL: https://build.opensuse.org/request/show/257552 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygame?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
c16e3f6b7d
commit
cac86a81fc
@@ -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
|
||||
|
||||
|
2
python-pygame.rpmlintrc
Normal file
2
python-pygame.rpmlintrc
Normal file
@@ -0,0 +1,2 @@
|
||||
addFilter("/site-packages/pygame/examples/")
|
||||
addFilter("/site-packages/pygame/tests/")
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,12 +16,13 @@
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: python-pygame
|
||||
Version: 1.9.1
|
||||
Release: 5
|
||||
Release: 0
|
||||
Source: http://pygame.org/ftp/pygame-%{version}release.tar.gz
|
||||
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
|
||||
Summary: A Python Module for Interfacing with the SDL Multimedia Library
|
||||
License: LGPL-2.1+
|
||||
@@ -33,6 +34,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: SDL_image-devel
|
||||
BuildRequires: SDL_mixer-devel
|
||||
BuildRequires: SDL_ttf-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: python-devel
|
||||
@@ -45,6 +47,9 @@ BuildRequires: python-numeric
|
||||
%if 0%{?suse_version} >= 1210
|
||||
BuildRequires: libv4l-devel >= 0.8.4
|
||||
%endif
|
||||
%if 0%{?suse_version} >= 1320
|
||||
BuildRequires: portmidi-devel
|
||||
%endif
|
||||
%{py_requires}
|
||||
|
||||
%description
|
||||
@@ -56,20 +61,22 @@ Numerical Python extension. Pygame is the successor to the pySDL
|
||||
wrapper project, written by Mark Baker.
|
||||
|
||||
%package doc
|
||||
License: LGPL-2.1+
|
||||
Summary: Pygame documentation and example programs
|
||||
Group: Development/Libraries/Python
|
||||
Provides: pygame-doc
|
||||
Obsoletes: pygame-doc
|
||||
Provides: pygame-doc > 1.5.5
|
||||
Obsoletes: pygame-doc <= 1.5.5
|
||||
Requires: python-pygame = %{version}
|
||||
|
||||
%description doc
|
||||
Pygame is a Python wrapper module for the SDL multimedia library. It
|
||||
contains python functions and classes that will allow you to use SDL's
|
||||
support for playing cdroms, audio and video output, and keyboard, mouse
|
||||
and joystick input. pygame also includes support for the Numerical
|
||||
Python extension. pygame is the successor to the pySDL wrapper project,
|
||||
written by Mark Baker.
|
||||
This package contains documentation and example programs for Pygame.
|
||||
|
||||
%package devel
|
||||
Summary: Pygame development package
|
||||
Group: Development/Libraries/Python
|
||||
Requires: python-pygame = %{version}
|
||||
|
||||
%description devel
|
||||
This package contains the header files for developers of Pygame.
|
||||
|
||||
%prep
|
||||
%setup -q -n pygame-%{version}release
|
||||
@@ -83,25 +90,29 @@ yes y | python -d config.py
|
||||
python setup.py build
|
||||
|
||||
%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 -d $RPM_BUILD_ROOT%{_docdir}/python-pygame
|
||||
install -m 644 WHATSNEW README.txt %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/python-pygame
|
||||
cp -r docs/ examples/ $RPM_BUILD_ROOT%{_docdir}/python-pygame
|
||||
install -d %{buildroot}%{_docdir}/python-pygame
|
||||
install -m 644 WHATSNEW README.txt %{SOURCE1} %{buildroot}%{_docdir}/python-pygame
|
||||
cp -r docs/ examples/ %{buildroot}%{_docdir}/python-pygame
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%fdupes -s %{buildroot}%{_prefix}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%files
|
||||
%defattr(644,root,root,755)
|
||||
%doc %dir %{_docdir}/python-pygame
|
||||
%doc %{_docdir}/python-pygame/WHATSNEW
|
||||
%doc %{_docdir}/python-pygame/README.txt
|
||||
%doc %{_docdir}/python-pygame/README.SUSE
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files doc
|
||||
%defattr(644,root,root,755)
|
||||
%doc %{_docdir}/python-pygame/docs
|
||||
%doc %{_docdir}/python-pygame/examples
|
||||
|
||||
%files devel
|
||||
%defattr(644,root,root,755)
|
||||
%{py_incdir}/pygame/
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user