[packages/bitcoin] - up to 0.8.1

arekm arekm at pld-linux.org
Fri Apr 19 19:01:40 CEST 2013


commit cda9ff859f059a00c82340c64333403e082d13b2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Apr 19 19:01:38 2013 +0200

    - up to 0.8.1

 bitcoin-boost.patch    | 11 ----------
 bitcoin-nostatic.patch | 10 ---------
 bitcoin.spec           | 59 +++++++++++++++++++++-----------------------------
 3 files changed, 25 insertions(+), 55 deletions(-)
---
diff --git a/bitcoin.spec b/bitcoin.spec
index cf4497e..36b2440 100644
--- a/bitcoin.spec
+++ b/bitcoin.spec
@@ -1,19 +1,21 @@
 Summary:	Bitcoin is a peer-to-peer currency
 Name:		bitcoin
-Version:	0.3.21
-Release:	0.1
+Version:	0.8.1
+Release:	1
 License:	MIT/X11
 Group:		X11/Applications
-Source0:	http://downloads.sourceforge.net/bitcoin/%{name}-%{version}-linux.tar.gz
-# Source0-md5:	19e530a9b60e3a0987998a87b30d8cdc
-Patch0:		%{name}-boost.patch
-Patch1:		%{name}-nostatic.patch
+Source0:	https://github.com/bitcoin/bitcoin/archive/v%{version}.tar.gz
+# Source0-md5:	d767f23fa7a2ce0143f738b30deb32e0
 URL:		http://www.bitcoin.org
+BuildRequires:	QtCore-devel
+BuildRequires:	QtDBus-devel
+BuildRequires:	QtGui-devel
 BuildRequires:	boost-devel
 BuildRequires:	db-cxx-devel
 BuildRequires:	miniupnpc-devel >= 1.5
 BuildRequires:	openssl-devel
-BuildRequires:	wxGTK2-unicode-devel >= 2.9
+BuildRequires:	qrencode-devel
+BuildRequires:	qt4-qmake
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -23,43 +25,32 @@ managed collectively by the network.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %build
-%{__make} -C src -f makefile.unix \
-	CXX="%{__cxx}" \
-	WXINCLUDEPATHS="$(wx-gtk2-unicode-2.9-config --cxxflags)" \
-	WXLIBS="$(wx-gtk2-unicode-2.9-config --libs)" \
-	USE_UPNP=1
-
-%{__make} -C src -f makefile.unix \
-	CXX="%{__cxx}" \
-	WXINCLUDEPATHS="$(wx-gtk2-unicode-2.9-config --cxxflags)" \
-	WXLIBS="$(wx-gtk2-unicode-2.9-config --libs)" \
+qmake-qt4 \
 	USE_UPNP=1 \
-	bitcoind
+	USE_DBUS=1 \
+	USE_QRCODE=1
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_localedir}}
-
-install src/{bitcoin,bitcoind} $RPM_BUILD_ROOT%{_bindir}
 
-# install locales
-for dir in $(find locale/ -mindepth 1 -maxdepth 1 -type d); do
-	lang=$(basename $dir)
-	
-	install -d $RPM_BUILD_ROOT%{_localedir}/$lang/LC_MESSAGES
-	install $dir/LC_MESSAGES/bitcoin.mo $RPM_BUILD_ROOT%{_localedir}/$lang/LC_MESSAGES
-done
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_localedir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services}
 
-%find_lang %{name}
+install bitcoin-qt $RPM_BUILD_ROOT%{_bindir}
+install contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir}
+install contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services
+install share/pixmaps/bitcoin{32,80}.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f %{name}.lang
+%files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/bitcoin
-%attr(755,root,root) %{_bindir}/bitcoind
+%doc doc/*.txt
+%attr(755,root,root) %{_bindir}/bitcoin-qt
+%{_datadir}/kde4/services/bitcoin-qt.protocol
+%{_desktopdir}/bitcoin-qt.desktop
+%{_pixmapsdir}/bitcoin*.xpm
diff --git a/bitcoin-boost.patch b/bitcoin-boost.patch
deleted file mode 100644
index d56b7a2..0000000
--- a/bitcoin-boost.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- bitcoin-0.3.21/src/makefile.unix.new	2011-05-26 00:00:26.214649194 +0200
-+++ bitcoin-0.3.21/src/makefile.unix	2011-05-26 00:00:54.437829629 +0200
-@@ -10,7 +10,7 @@ WXLIBS=$(shell wx-config --libs)
- 
- USE_UPNP:=0
- 
--DEFS=-DNOPCH -DFOURWAYSSE2 -DUSE_SSL
-+DEFS=-DNOPCH -DFOURWAYSSE2 -DUSE_SSL -DBOOST_FILESYSTEM_DEPRECATED
- 
- # for boost 1.37, add -mt to the boost libraries
- LIBS= \
diff --git a/bitcoin-nostatic.patch b/bitcoin-nostatic.patch
deleted file mode 100644
index bd9c293..0000000
--- a/bitcoin-nostatic.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- bitcoin-0.3.21/src/makefile.unix.new	2011-05-26 17:21:23.111706125 +0200
-+++ bitcoin-0.3.21/src/makefile.unix	2011-05-26 17:21:29.111673621 +0200
-@@ -14,7 +14,6 @@ DEFS=-DNOPCH -DFOURWAYSSE2 -DUSE_SSL -DB
- 
- # for boost 1.37, add -mt to the boost libraries
- LIBS= \
-- -Wl,-Bstatic \
-    -l boost_system \
-    -l boost_filesystem \
-    -l boost_program_options \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bitcoin.git/commitdiff/cda9ff859f059a00c82340c64333403e082d13b2



More information about the pld-cvs-commit mailing list