[python-seqdiag] Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
Bohuslav Kabrda
bkabrda at fedoraproject.org
Tue May 20 13:23:22 UTC 2014
commit f8b838eb958631e0f72fced11b412a8b075a19b5
Author: Slavek Kabrda <bkabrda at redhat.com>
Date: Tue May 20 15:23:19 2014 +0200
Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
python-seqdiag-fix-flake8-violations.patch | 19 +++++++++++++++++++
python-seqdiag.spec | 10 +++++++++-
2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/python-seqdiag-fix-flake8-violations.patch b/python-seqdiag-fix-flake8-violations.patch
new file mode 100644
index 0000000..402c584
--- /dev/null
+++ b/python-seqdiag-fix-flake8-violations.patch
@@ -0,0 +1,19 @@
+# HG changeset patch
+# User tk0miya <i.tkomiya at gmail.com>
+# Date 1396939455 -32400
+# Node ID 41409f1d57805f2ace2842c53c9acff25e2865ce
+# Parent aa9ec977783a9f92414edd82c8507a7bb1cfeb30
+Fix flake8 violations
+
+diff --git a/src/seqdiag/tests/test_pep8.py b/src/seqdiag/tests/test_pep8.py
+--- a/src/seqdiag/tests/test_pep8.py
++++ b/src/seqdiag/tests/test_pep8.py
+@@ -43,7 +43,7 @@
+ if report.total_errors:
+ if options.count:
+ sys.stderr.write(str(report.total_errors) + '\n')
+- #sys.exit(1)
++ # sys.exit(1)
+
+ # reporting errors (additional summary)
+ errors = report.get_count('E')
diff --git a/python-seqdiag.spec b/python-seqdiag.spec
index f259cc3..4a8e7d2 100644
--- a/python-seqdiag.spec
+++ b/python-seqdiag.spec
@@ -6,13 +6,16 @@
Name: python-%{srcname}
Version: 0.9.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: seqdiag generates sequence-diagram images from text
License: ASL 2.0
URL: http://blockdiag.com/
Source0: https://bitbucket.org/%{owner}/%{srcname}/get/%{tag}.tar.gz
Source1: description-%{srcname}.txt
+# Fix flake8 violations that make tests fail with Python 3.4
+# https://bitbucket.org/blockdiag/seqdiag/commits/41409f1d57805f2ace2842c53c9acff25e2865ce
+Patch0: %{name}-fix-flake8-violations.patch
BuildArch: noarch
BuildRequires: python2-devel
@@ -51,6 +54,8 @@ This package installs the %{srcname} module for Python 3.
%prep
%setup -qn %{owner}-%{srcname}-%{shortcommit}
+# we need to use --binary to keep crlf line endings in patch, but RPM doesn't allow that
+patch -p1 --binary < %{PATCH0}
rm -rf %{py3dir}
cp -a . %{py3dir}
@@ -104,6 +109,9 @@ popd
%changelog
+* Mon May 19 2014 Bohuslav Kabrda <bkabrda at redhat.com> - 0.9.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
+
* Tue Mar 04 2014 Dridi Boukelmoune <dridi.boukelmoune at gmail.com> - 0.9.0-2
- Fixed changelog format.
- Fixed man page permissions.
More information about the scm-commits
mailing list