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

miniupnpc-2.0.patch [new file with mode: 0644]
primecoin-hp.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 80d8a83a7a0141b4d0424c367f01bbf099d726be..42260550c0fa8645382ca661c908aca2eabc928f 100644 (file)
@@ -3,13 +3,14 @@
 Summary:       Primecoin - First Scientific Computing Cryptocurrency
 Name:          primecoin-hp
 Version:       %{ver}.%{subver}
-Release:       5
+Release:       6
 License:       MIT/X11
 Group:         X11/Applications
 Source0:       http://downloads.sourceforge.net/primecoin-hp/%{ver}-%{subver}/primecoin-%{ver}-%{subver}.tar.bz2
 # Source0-md5: 90115f413a3244aaf6271b1c83c0ddae
 Patch0:                build-i486.patch
 Patch1:                boost-1.58.patch
+Patch2:                miniupnpc-2.0.patch
 URL:           http://primecoin.org
 BuildRequires: QtCore-devel
 BuildRequires: QtDBus-devel
@@ -37,6 +38,7 @@ Qt-based Primecoin Wallet.
 %setup -q -n primecoin-%{ver}-%{subver}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 qmake-qt4 \
This page took 0.08965 seconds and 4 git commands to generate.