From: Jan Rękorajski Date: Sun, 16 Apr 2017 14:13:09 +0000 (+0200) Subject: - fix building with miniupnpc 2.0 X-Git-Tag: auto/th/primecoin-0.1.2-2.20131127.13 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=1a98bfbd161d614ca3a568738afa900bea1a7208;p=packages%2Fprimecoin.git - fix building with miniupnpc 2.0 - rel 13 --- 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; 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 \