]>
Commit | Line | Data |
---|---|---|
787da45a MK |
1 | # TODO: Readd missing icons/*.destktop deleted from contrib/debian during 0.14.0 -> 0.14.2 |
2 | # TODO: Consider running as system-wide service (check contrib/init) with own user/group | |
4ffb1fcd AM |
3 | Summary: Bitcoin is a peer-to-peer currency |
4 | Name: bitcoin | |
787da45a | 5 | Version: 0.14.2 |
17e850d3 | 6 | Release: 4 |
4ffb1fcd AM |
7 | License: MIT/X11 |
8 | Group: X11/Applications | |
787da45a MK |
9 | # Source0: https://github.com/bitcoin/bitcoin/archive/v%{version}/%{name}-%{version}.tar.gz |
10 | Source0: https://bitcoin.org/bin/bitcoin-core-%{version}/bitcoin-%{version}.tar.gz | |
11 | # Source0-md5: 4324327fbb2d696b98809b3ddbd40b0c | |
12 | # https://bitcoin.org/bin/bitcoin-core-0.14.2/bitcoin-0.14.2.tar.gz | |
4ffb1fcd | 13 | URL: http://www.bitcoin.org |
cda9ff85 AM |
14 | BuildRequires: QtCore-devel |
15 | BuildRequires: QtDBus-devel | |
16 | BuildRequires: QtGui-devel | |
9aa38433 AM |
17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
4ffb1fcd | 19 | BuildRequires: boost-devel |
74ff7c8b | 20 | BuildRequires: db-cxx-devel |
9aa38433 | 21 | BuildRequires: libtool |
74ff7c8b | 22 | BuildRequires: miniupnpc-devel >= 1.5 |
4ffb1fcd | 23 | BuildRequires: openssl-devel |
88599e36 | 24 | BuildRequires: protobuf-devel |
cda9ff85 | 25 | BuildRequires: qrencode-devel |
55ac9485 | 26 | Requires: perl-base |
4ffb1fcd AM |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central | |
31 | authority issues new money or tracks transactions. These tasks are | |
32 | managed collectively by the network. | |
33 | ||
55ac9485 AM |
34 | %package qt |
35 | Summary: Qt-based Bitcoin Wallet | |
36 | Group: X11/Applications | |
37 | ||
38 | %description qt | |
39 | Qt-based Bitcoin Wallet. | |
40 | ||
4ffb1fcd AM |
41 | %prep |
42 | %setup -q | |
43 | ||
44 | %build | |
63c5388d | 45 | ./autogen.sh |
9aa38433 AM |
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 | |
787da45a MK |
67 | # TODO: gone during 0.14.0 -> 0.14.2 |
68 | # cp -p contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
69 | # cp -p contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
70 | # cp -p share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
55ac9485 | 71 | |
4ffb1fcd AM |
72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
63c5388d AM |
75 | %post -p /sbin/ldconfig |
76 | %postun -p /sbin/ldconfig | |
77 | ||
cda9ff85 | 78 | %files |
4ffb1fcd | 79 | %defattr(644,root,root,755) |
787da45a | 80 | %doc doc/*.txt |
9aa38433 | 81 | %attr(755,root,root) %{_bindir}/bitcoin-cli |
63c5388d | 82 | %attr(755,root,root) %{_bindir}/bitcoin-tx |
55ac9485 | 83 | %attr(755,root,root) %{_bindir}/bitcoind |
63c5388d AM |
84 | %attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0 |
85 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.* | |
50662518 JR |
86 | %{_mandir}/man1/bitcoin-cli.1* |
87 | %{_mandir}/man1/bitcoin-tx.1* | |
55ac9485 | 88 | %{_mandir}/man1/bitcoind.1* |
55ac9485 AM |
89 | |
90 | %files qt | |
91 | %defattr(644,root,root,755) | |
cda9ff85 | 92 | %attr(755,root,root) %{_bindir}/bitcoin-qt |
787da45a MK |
93 | #%%{_datadir}/kde4/services/bitcoin-qt.protocol |
94 | #%%{_desktopdir}/bitcoin-qt.desktop | |
95 | #%%{_pixmapsdir}/bitcoin*.png | |
50662518 | 96 | %{_mandir}/man1/bitcoin-qt.1* |