]>
Commit | Line | Data |
---|---|---|
4ffb1fcd AM |
1 | Summary: Bitcoin is a peer-to-peer currency |
2 | Name: bitcoin | |
55ce5315 AM |
3 | Version: 0.9.3 |
4 | Release: 1 | |
4ffb1fcd AM |
5 | License: MIT/X11 |
6 | Group: X11/Applications | |
cda9ff85 | 7 | Source0: https://github.com/bitcoin/bitcoin/archive/v%{version}.tar.gz |
55ce5315 | 8 | # Source0-md5: 719ac255715deffafc2ae7554c66ba70 |
4ffb1fcd | 9 | URL: http://www.bitcoin.org |
cda9ff85 AM |
10 | BuildRequires: QtCore-devel |
11 | BuildRequires: QtDBus-devel | |
12 | BuildRequires: QtGui-devel | |
9aa38433 AM |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
4ffb1fcd | 15 | BuildRequires: boost-devel |
74ff7c8b | 16 | BuildRequires: db-cxx-devel |
9aa38433 | 17 | BuildRequires: libtool |
74ff7c8b | 18 | BuildRequires: miniupnpc-devel >= 1.5 |
4ffb1fcd | 19 | BuildRequires: openssl-devel |
88599e36 | 20 | BuildRequires: protobuf-devel |
cda9ff85 | 21 | BuildRequires: qrencode-devel |
55ac9485 | 22 | Requires: perl-base |
4ffb1fcd AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central | |
27 | authority issues new money or tracks transactions. These tasks are | |
28 | managed collectively by the network. | |
29 | ||
55ac9485 AM |
30 | %package qt |
31 | Summary: Qt-based Bitcoin Wallet | |
32 | Group: X11/Applications | |
33 | ||
34 | %description qt | |
35 | Qt-based Bitcoin Wallet. | |
36 | ||
4ffb1fcd AM |
37 | %prep |
38 | %setup -q | |
39 | ||
40 | %build | |
9aa38433 AM |
41 | %{__libtoolize} |
42 | %{__aclocal} | |
43 | %{__autoconf} | |
44 | %{__autoheader} | |
45 | %{__automake} | |
46 | ||
47 | %configure \ | |
55ce5315 | 48 | --disable-silent-rules \ |
9aa38433 AM |
49 | --with-miniupnpc \ |
50 | --with-qrencode \ | |
51 | --with-incompatible-bdb \ | |
52 | --with-boost \ | |
53 | --with-gui=qt4 \ | |
54 | --with-qtdbus | |
cda9ff85 AM |
55 | |
56 | %{__make} | |
4ffb1fcd | 57 | |
55ac9485 | 58 | |
4ffb1fcd AM |
59 | %install |
60 | rm -rf $RPM_BUILD_ROOT | |
74ff7c8b | 61 | |
9aa38433 AM |
62 | install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,5},%{_localedir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
55ac9485 | 66 | |
cda9ff85 AM |
67 | install contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} |
68 | install contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
71331162 | 69 | install share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir} |
4ffb1fcd | 70 | |
55ac9485 AM |
71 | install contrib/debian/manpages/bitcoind.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
72 | install contrib/debian/manpages/bitcoin.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
73 | ||
4ffb1fcd AM |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
cda9ff85 | 77 | %files |
4ffb1fcd | 78 | %defattr(644,root,root,755) |
55ac9485 | 79 | %doc doc/*.txt contrib/debian/examples/bitcoin.conf |
9aa38433 | 80 | %attr(755,root,root) %{_bindir}/bitcoin-cli |
55ac9485 | 81 | %attr(755,root,root) %{_bindir}/bitcoind |
55ac9485 AM |
82 | %{_mandir}/man1/bitcoind.1* |
83 | %{_mandir}/man5/bitcoin.conf.5* | |
84 | ||
85 | %files qt | |
86 | %defattr(644,root,root,755) | |
cda9ff85 AM |
87 | %attr(755,root,root) %{_bindir}/bitcoin-qt |
88 | %{_datadir}/kde4/services/bitcoin-qt.protocol | |
89 | %{_desktopdir}/bitcoin-qt.desktop | |
71331162 | 90 | %{_pixmapsdir}/bitcoin*.png |