]>
Commit | Line | Data |
---|---|---|
4ffb1fcd AM |
1 | Summary: Bitcoin is a peer-to-peer currency |
2 | Name: bitcoin | |
081335f7 | 3 | Version: 0.11.0 |
d7bda68d | 4 | Release: 3 |
4ffb1fcd AM |
5 | License: MIT/X11 |
6 | Group: X11/Applications | |
cda9ff85 | 7 | Source0: https://github.com/bitcoin/bitcoin/archive/v%{version}.tar.gz |
081335f7 | 8 | # Source0-md5: 7463ff45ad2ece6fad1b673bb2c2afbb |
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 | |
63c5388d | 41 | ./autogen.sh |
9aa38433 AM |
42 | |
43 | %configure \ | |
55ce5315 | 44 | --disable-silent-rules \ |
9aa38433 AM |
45 | --with-miniupnpc \ |
46 | --with-qrencode \ | |
47 | --with-incompatible-bdb \ | |
48 | --with-boost \ | |
49 | --with-gui=qt4 \ | |
50 | --with-qtdbus | |
cda9ff85 AM |
51 | |
52 | %{__make} | |
4ffb1fcd | 53 | |
55ac9485 | 54 | |
4ffb1fcd AM |
55 | %install |
56 | rm -rf $RPM_BUILD_ROOT | |
74ff7c8b | 57 | |
9aa38433 AM |
58 | install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,5},%{_localedir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
55ac9485 | 62 | |
cda9ff85 AM |
63 | install contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} |
64 | install contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
71331162 | 65 | install share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir} |
4ffb1fcd | 66 | |
55ac9485 AM |
67 | install contrib/debian/manpages/bitcoind.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
68 | install contrib/debian/manpages/bitcoin.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
69 | ||
4ffb1fcd AM |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
63c5388d AM |
73 | %post -p /sbin/ldconfig |
74 | %postun -p /sbin/ldconfig | |
75 | ||
cda9ff85 | 76 | %files |
4ffb1fcd | 77 | %defattr(644,root,root,755) |
55ac9485 | 78 | %doc doc/*.txt contrib/debian/examples/bitcoin.conf |
9aa38433 | 79 | %attr(755,root,root) %{_bindir}/bitcoin-cli |
63c5388d | 80 | %attr(755,root,root) %{_bindir}/bitcoin-tx |
55ac9485 | 81 | %attr(755,root,root) %{_bindir}/bitcoind |
63c5388d AM |
82 | %attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0 |
83 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.* | |
55ac9485 AM |
84 | %{_mandir}/man1/bitcoind.1* |
85 | %{_mandir}/man5/bitcoin.conf.5* | |
86 | ||
87 | %files qt | |
88 | %defattr(644,root,root,755) | |
cda9ff85 AM |
89 | %attr(755,root,root) %{_bindir}/bitcoin-qt |
90 | %{_datadir}/kde4/services/bitcoin-qt.protocol | |
91 | %{_desktopdir}/bitcoin-qt.desktop | |
71331162 | 92 | %{_pixmapsdir}/bitcoin*.png |