[lazygal] add patch to fix broken imports under python 2.7
dmalcolm
dmalcolm at fedoraproject.org
Sat Jul 31 02:01:48 UTC 2010
commit ee55f55882c6330c0fca110880a4a7163916fd5d
Author: David Malcolm <dmalcolm at redhat.com>
Date: Fri Jul 30 22:04:15 2010 -0400
add patch to fix broken imports under python 2.7
lazygal-fix-imports.patch | 11 +++++++++++
lazygal.spec | 12 ++++++++++--
2 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/lazygal-fix-imports.patch b/lazygal-fix-imports.patch
new file mode 100644
index 0000000..d8251f6
--- /dev/null
+++ b/lazygal-fix-imports.patch
@@ -0,0 +1,11 @@
+diff -up lazygal/setup.py.fix-imports lazygal/setup.py
+--- lazygal/setup.py.fix-imports 2010-07-30 21:56:33.228112272 -0400
++++ lazygal/setup.py 2010-07-30 21:54:35.278117721 -0400
+@@ -20,6 +20,7 @@
+ from distutils.core import setup, Command
+ import distutils.command.build_scripts
+ import distutils.command.build
++import distutils.sysconfig
+ from distutils.dep_util import newer
+ from distutils.spawn import find_executable
+ import re
diff --git a/lazygal.spec b/lazygal.spec
index 775c707..394f9c0 100644
--- a/lazygal.spec
+++ b/lazygal.spec
@@ -2,13 +2,18 @@
Name: lazygal
Version: 0.4.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: A static web gallery generator
Group: Applications/Multimedia
License: GPLv2+
URL: http://sousmonlit.dyndns.org/~niol/playa/oss:lazygal
Source0: http://sousmonlit.dyndns.org/~niol/reposnapshots/%{name}-%{version}.tar.gz
+
+# Fix broken imports in setup.py under Python 2.7
+# Not yet sent upstream:
+Patch0: lazygal-fix-imports.patch
+
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -21,7 +26,7 @@ Lazygal is another static web gallery generator written in Python.
%prep
%setup -q -n lazygal
-
+%patch0 -p1
%build
%{__python} setup.py build
@@ -49,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Jul 30 2010 David Malcolm <dmalcolm at redhat.com> - 0.4.1-6
+- add patch to fix broken imports under python 2.7
+
* Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 0.4.1-5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
More information about the scm-commits
mailing list