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