commit 1a98bfbd161d614ca3a568738afa900bea1a7208
Author: Jan RÄ™korajski <[email protected]>
Date:   Sun Apr 16 16:13:09 2017 +0200

    - fix building with miniupnpc 2.0
    - rel 13

 miniupnpc-2.0.patch | 18 ++++++++++++++++++
 primecoin.spec      |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/primecoin.spec b/primecoin.spec
index 685afd8..e142620 100644
--- a/primecoin.spec
+++ b/primecoin.spec
@@ -1,5 +1,5 @@
 %define        snap    20131127
-%define        rel     12
+%define        rel     13
 Summary:       Primecoin - First Scientific Computing Cryptocurrency
 Name:          primecoin
 Version:       0.1.2
@@ -11,6 +11,7 @@ Source0:      %{name}-20131127.tar.bz2
 # Source0-md5: 10ae9950aba9232a3c035e499c38aa74
 Patch0:                build-i486.patch
 Patch1:                boost-1.58.patch
+Patch2:                miniupnpc-2.0.patch
 URL:           http://primecoin.org
 BuildRequires: QtCore-devel
 BuildRequires: QtDBus-devel
@@ -38,6 +39,7 @@ Qt-based Primecoin Wallet.
 %setup -q -n %{name}-%{snap}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 qmake-qt4 bitcoin-qt.pro \
diff --git a/miniupnpc-2.0.patch b/miniupnpc-2.0.patch
new file mode 100644
index 0000000..53cfee8
--- /dev/null
+++ b/miniupnpc-2.0.patch
@@ -0,0 +1,18 @@
+--- primecoin-0.1.2-hp14/src/net.cpp~  2014-04-26 17:02:25.000000000 +0200
++++ primecoin-0.1.2-hp14/src/net.cpp   2017-04-16 16:05:02.024093670 +0200
+@@ -1083,10 +1083,14 @@
+ #ifndef UPNPDISCOVER_SUCCESS
+     /* miniupnpc 1.5 */
+     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
+-#else
++#elif MINIUPNPC_API_VERSION < 14
+     /* miniupnpc 1.6 */
+     int error = 0;
+     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
++#else
++    /* miniupnpc 1.9.20150730 */
++    int error = 0;
++    devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
+ #endif
+ 
+     struct UPNPUrls urls;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/primecoin.git/commitdiff/1a98bfbd161d614ca3a568738afa900bea1a7208

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to