]>
Commit | Line | Data |
---|---|---|
4ffb1fcd AM |
1 | Summary: Bitcoin is a peer-to-peer currency |
2 | Name: bitcoin | |
bf874d64 | 3 | Version: 0.8.3 |
71331162 | 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 |
bf874d64 | 8 | # Source0-md5: 18184d3284044a615cb36eb617eebd95 |
4ffb1fcd | 9 | URL: http://www.bitcoin.org |
cda9ff85 AM |
10 | BuildRequires: QtCore-devel |
11 | BuildRequires: QtDBus-devel | |
12 | BuildRequires: QtGui-devel | |
4ffb1fcd | 13 | BuildRequires: boost-devel |
74ff7c8b MB |
14 | BuildRequires: db-cxx-devel |
15 | BuildRequires: miniupnpc-devel >= 1.5 | |
4ffb1fcd | 16 | BuildRequires: openssl-devel |
cda9ff85 AM |
17 | BuildRequires: qrencode-devel |
18 | BuildRequires: qt4-qmake | |
55ac9485 | 19 | Requires: perl-base |
4ffb1fcd AM |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central | |
24 | authority issues new money or tracks transactions. These tasks are | |
25 | managed collectively by the network. | |
26 | ||
55ac9485 AM |
27 | %package qt |
28 | Summary: Qt-based Bitcoin Wallet | |
29 | Group: X11/Applications | |
30 | ||
31 | %description qt | |
32 | Qt-based Bitcoin Wallet. | |
33 | ||
4ffb1fcd AM |
34 | %prep |
35 | %setup -q | |
36 | ||
37 | %build | |
cda9ff85 | 38 | qmake-qt4 \ |
4ffb1fcd | 39 | USE_UPNP=1 \ |
cda9ff85 AM |
40 | USE_DBUS=1 \ |
41 | USE_QRCODE=1 | |
42 | ||
43 | %{__make} | |
4ffb1fcd | 44 | |
55ac9485 AM |
45 | %{__make} -C src -f makefile.unix \ |
46 | CXX="%{__cxx}" \ | |
47 | CXXFLAGS="%{rpmcflags} %{rpmcxxflags} %{rpmcppflags}" | |
48 | ||
4ffb1fcd AM |
49 | %install |
50 | rm -rf $RPM_BUILD_ROOT | |
74ff7c8b | 51 | |
55ac9485 AM |
52 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_mandir}/man{1,5},%{_localedir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} |
53 | ||
71331162 | 54 | install src/bitcoind $RPM_BUILD_ROOT%{_bindir} |
cda9ff85 AM |
55 | install bitcoin-qt $RPM_BUILD_ROOT%{_bindir} |
56 | install contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
57 | install contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
71331162 | 58 | install share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir} |
4ffb1fcd | 59 | |
55ac9485 AM |
60 | install contrib/debian/manpages/bitcoind.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
61 | install contrib/debian/manpages/bitcoin.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
62 | ||
4ffb1fcd AM |
63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
cda9ff85 | 66 | %files |
4ffb1fcd | 67 | %defattr(644,root,root,755) |
55ac9485 AM |
68 | %doc doc/*.txt contrib/debian/examples/bitcoin.conf |
69 | %attr(755,root,root) %{_bindir}/bitcoind | |
55ac9485 AM |
70 | %{_mandir}/man1/bitcoind.1* |
71 | %{_mandir}/man5/bitcoin.conf.5* | |
72 | ||
73 | %files qt | |
74 | %defattr(644,root,root,755) | |
cda9ff85 AM |
75 | %attr(755,root,root) %{_bindir}/bitcoin-qt |
76 | %{_datadir}/kde4/services/bitcoin-qt.protocol | |
77 | %{_desktopdir}/bitcoin-qt.desktop | |
71331162 | 78 | %{_pixmapsdir}/bitcoin*.png |