]>
Commit | Line | Data |
---|---|---|
1 | Summary: Bitcoin is a peer-to-peer currency | |
2 | Name: bitcoin | |
3 | Version: 0.11.0 | |
4 | Release: 3 | |
5 | License: MIT/X11 | |
6 | Group: X11/Applications | |
7 | Source0: https://github.com/bitcoin/bitcoin/archive/v%{version}.tar.gz | |
8 | # Source0-md5: 7463ff45ad2ece6fad1b673bb2c2afbb | |
9 | URL: http://www.bitcoin.org | |
10 | BuildRequires: QtCore-devel | |
11 | BuildRequires: QtDBus-devel | |
12 | BuildRequires: QtGui-devel | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: boost-devel | |
16 | BuildRequires: db-cxx-devel | |
17 | BuildRequires: libtool | |
18 | BuildRequires: miniupnpc-devel >= 1.5 | |
19 | BuildRequires: openssl-devel | |
20 | BuildRequires: protobuf-devel | |
21 | BuildRequires: qrencode-devel | |
22 | Requires: perl-base | |
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 | ||
30 | %package qt | |
31 | Summary: Qt-based Bitcoin Wallet | |
32 | Group: X11/Applications | |
33 | ||
34 | %description qt | |
35 | Qt-based Bitcoin Wallet. | |
36 | ||
37 | %prep | |
38 | %setup -q | |
39 | ||
40 | %build | |
41 | ./autogen.sh | |
42 | ||
43 | %configure \ | |
44 | --disable-silent-rules \ | |
45 | --with-miniupnpc \ | |
46 | --with-qrencode \ | |
47 | --with-incompatible-bdb \ | |
48 | --with-boost \ | |
49 | --with-gui=qt4 \ | |
50 | --with-qtdbus | |
51 | ||
52 | %{__make} | |
53 | ||
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
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 | |
62 | ||
63 | install contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
64 | install contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
65 | install share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
66 | ||
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 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc doc/*.txt contrib/debian/examples/bitcoin.conf | |
79 | %attr(755,root,root) %{_bindir}/bitcoin-cli | |
80 | %attr(755,root,root) %{_bindir}/bitcoin-tx | |
81 | %attr(755,root,root) %{_bindir}/bitcoind | |
82 | %attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0 | |
83 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.* | |
84 | %{_mandir}/man1/bitcoind.1* | |
85 | %{_mandir}/man5/bitcoin.conf.5* | |
86 | ||
87 | %files qt | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_bindir}/bitcoin-qt | |
90 | %{_datadir}/kde4/services/bitcoin-qt.protocol | |
91 | %{_desktopdir}/bitcoin-qt.desktop | |
92 | %{_pixmapsdir}/bitcoin*.png |