[pygame] * Mon Aug 16 2010 Jan Kaluza <jkaluza at redhat.com> - 1.9.1-4 - fix #607753 - Do not install tests
Jan Kaluža
jkaluza at fedoraproject.org
Mon Aug 16 08:19:55 UTC 2010
commit cbdccfc477439de1681a353f9d070d8ed3ff70dd
Author: Jan Kaluza <hanzz.k at gmail.com>
Date: Mon Aug 16 10:19:54 2010 +0200
* Mon Aug 16 2010 Jan Kaluza <jkaluza at redhat.com> - 1.9.1-4
- fix #607753 - Do not install tests
pygame-1.9.1-no-test-install.patch | 61 ++++++++++++++++++++++++++++++++++++
pygame.spec | 7 +++-
2 files changed, 67 insertions(+), 1 deletions(-)
---
diff --git a/pygame-1.9.1-no-test-install.patch b/pygame-1.9.1-no-test-install.patch
new file mode 100644
index 0000000..47d60fe
--- /dev/null
+++ b/pygame-1.9.1-no-test-install.patch
@@ -0,0 +1,61 @@
+diff --git a/setup.py b/setup.py
+index 45af61f..8ea5de5 100644
+--- a/setup.py
++++ b/setup.py
+@@ -183,11 +183,11 @@ for f in glob.glob(os.path.join('lib', '*')):
+ pygame_data_files.append(f)
+
+ #tests/fixtures
+-add_datafiles(data_files, 'pygame/tests',
+- ['test',
+- [['fixtures',
+- [['xbm_cursors',
+- ['*.xbm']]]]]])
++#add_datafiles(data_files, 'pygame/tests',
++# ['test',
++# [['fixtures',
++# [['xbm_cursors',
++# ['*.xbm']]]]]])
+
+ #examples
+ add_datafiles(data_files, 'pygame/examples',
+@@ -461,25 +461,25 @@ date_files = [(path, files) for path, files in data_files if files]
+ PACKAGEDATA = {
+ "cmdclass": cmdclass,
+ "packages": ['pygame', 'pygame.gp2x', 'pygame.threads',
+- 'pygame.tests',
+- 'pygame.tests.test_utils',
+- 'pygame.tests.run_tests__tests',
+- 'pygame.tests.run_tests__tests.all_ok',
+- 'pygame.tests.run_tests__tests.failures1',
+- 'pygame.tests.run_tests__tests.incomplete',
+- 'pygame.tests.run_tests__tests.infinite_loop',
+- 'pygame.tests.run_tests__tests.print_stderr',
+- 'pygame.tests.run_tests__tests.print_stdout',
+- 'pygame.tests.run_tests__tests.incomplete_todo',
+- 'pygame.tests.run_tests__tests.exclude',
+- 'pygame.tests.run_tests__tests.timeout',
+- 'pygame.tests.run_tests__tests.everything',
++# 'pygame.tests',
++# 'pygame.tests.test_utils',
++# 'pygame.tests.run_tests__tests',
++# 'pygame.tests.run_tests__tests.all_ok',
++# 'pygame.tests.run_tests__tests.failures1',
++# 'pygame.tests.run_tests__tests.incomplete',
++# 'pygame.tests.run_tests__tests.infinite_loop',
++# 'pygame.tests.run_tests__tests.print_stderr',
++# 'pygame.tests.run_tests__tests.print_stdout',
++# 'pygame.tests.run_tests__tests.incomplete_todo',
++# 'pygame.tests.run_tests__tests.exclude',
++# 'pygame.tests.run_tests__tests.timeout',
++# 'pygame.tests.run_tests__tests.everything',
+ 'pygame.docs',
+ 'pygame.examples'],
+ "package_dir": {'pygame': 'lib',
+ 'pygame.threads': 'lib/threads',
+ 'pygame.gp2x': 'lib/gp2x',
+- 'pygame.tests': 'test',
++# 'pygame.tests': 'test',
+ 'pygame.docs': 'docs',
+ 'pygame.examples': 'examples'},
+ "headers": headers,
diff --git a/pygame.spec b/pygame.spec
index 152f735..59b0388 100644
--- a/pygame.spec
+++ b/pygame.spec
@@ -2,7 +2,7 @@
Name: pygame
Version: 1.9.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Python modules for writing games
Group: Development/Languages
@@ -12,6 +12,7 @@ URL: http://www.pygame.org
Patch0: %{name}-1.9.1-config.patch
# porttime is part of libportmidi.so, there's no libporttime in Fedora
Patch1: pygame-1.9.1-porttime.patch
+Patch2: pygame-1.9.1-no-test-install.patch
Source0: http://pygame.org/ftp/%{name}-%{version}release.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -46,6 +47,7 @@ pygame.
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# rpmlint fixes
find examples/ -type f -print0 | xargs -0 chmod -x
@@ -99,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Aug 16 2010 Jan Kaluza <jkaluza at redhat.com> - 1.9.1-4
+- fix #607753 - Do not install tests
+
* Thu Aug 12 2010 Jan Kaluza <jkaluza at redhat.com> - 1.9.1-3
- fix #585526 - add MIDI support
More information about the scm-commits
mailing list