]> git.pld-linux.org Git - packages/primecoin.git/commitdiff
- fix building with miniupnpc 2.0 auto/th/primecoin-0.1.2-2.20131127.13
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 16 Apr 2017 14:13:09 +0000 (16:13 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 16 Apr 2017 14:13:09 +0000 (16:13 +0200)
- rel 13

miniupnpc-2.0.patch [new file with mode: 0644]
primecoin.spec

diff --git a/miniupnpc-2.0.patch b/miniupnpc-2.0.patch
new file mode 100644 (file)
index 0000000..53cfee8
--- /dev/null
@@ -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;
index 685afd886da307f6046d0c12b5e17472524234b9..e14262018cc675f7790b2291e091d67481032a1a 100644 (file)
@@ -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 \
This page took 1.215594 seconds and 4 git commands to generate.