[packages/bakefile] - added versioncompare patch (to fix 0.2.10 >= 0.2.9 comparision) - release 2
qboosh
qboosh at pld-linux.org
Sat Apr 8 07:59:09 CEST 2017
commit 418c430b26eee0f0a776fefa1e50039f4da8227a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Apr 8 07:59:12 2017 +0200
- added versioncompare patch (to fix 0.2.10 >= 0.2.9 comparision)
- release 2
bakefile-versioncompare.patch | 14 ++++++++++++++
bakefile.spec | 4 +++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/bakefile.spec b/bakefile.spec
index 47360ab..75cff2f 100644
--- a/bakefile.spec
+++ b/bakefile.spec
@@ -3,13 +3,14 @@ Summary: Native makefiles generator
Summary(pl.UTF-8): Generator natywnych plików typu Makefile
Name: bakefile
Version: 0.2.10
-Release: 1
+Release: 2
License: MIT
Group: Development/Building
#SourceDownload: https://github.com/vslavik/bakefile/releases
Source0: https://github.com/vslavik/bakefile/releases/download/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: f980cdd36268b5d2b23602d454bdf0a4
Patch0: %{name}-empy.patch
+Patch1: %{name}-versioncompare.patch
URL: http://bakefile.org/
BuildRequires: autoconf >= 2.53
BuildRequires: automake >= 1.6
@@ -36,6 +37,7 @@ dla autoconfa, projekt dla Visual C++, makefile dla bcc itd.).
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
diff --git a/bakefile-versioncompare.patch b/bakefile-versioncompare.patch
new file mode 100644
index 0000000..6aa399b
--- /dev/null
+++ b/bakefile-versioncompare.patch
@@ -0,0 +1,14 @@
+--- bakefile-0.2.10/src/utils.py.orig 2017-01-04 11:52:30.000000000 +0100
++++ bakefile-0.2.10/src/utils.py 2017-04-08 07:45:43.920622017 +0200
+@@ -40,7 +40,10 @@
+ e.g. '0.1.4'."""
+ vcur = mk.vars['BAKEFILE_VERSION'].split('.')
+ vreq = version.split('.')
+- return vcur >= vreq
++ try:
++ return map(int, vcur) >= map(int, vreq)
++ except:
++ return vcur >= vreq
+
+ def isoption(name):
+ return name in mk.options
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bakefile.git/commitdiff/418c430b26eee0f0a776fefa1e50039f4da8227a
More information about the pld-cvs-commit
mailing list