]>
Commit | Line | Data |
---|---|---|
4ffb1fcd AM |
1 | Summary: Bitcoin is a peer-to-peer currency |
2 | Name: bitcoin | |
cda9ff85 AM |
3 | Version: 0.8.1 |
4 | Release: 1 | |
4ffb1fcd AM |
5 | License: MIT/X11 |
6 | Group: X11/Applications | |
cda9ff85 AM |
7 | Source0: https://github.com/bitcoin/bitcoin/archive/v%{version}.tar.gz |
8 | # Source0-md5: d767f23fa7a2ce0143f738b30deb32e0 | |
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 | |
4ffb1fcd AM |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central | |
23 | authority issues new money or tracks transactions. These tasks are | |
24 | managed collectively by the network. | |
25 | ||
26 | %prep | |
27 | %setup -q | |
28 | ||
29 | %build | |
cda9ff85 | 30 | qmake-qt4 \ |
4ffb1fcd | 31 | USE_UPNP=1 \ |
cda9ff85 AM |
32 | USE_DBUS=1 \ |
33 | USE_QRCODE=1 | |
34 | ||
35 | %{__make} | |
4ffb1fcd AM |
36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
74ff7c8b | 39 | |
cda9ff85 | 40 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_localedir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} |
74ff7c8b | 41 | |
cda9ff85 AM |
42 | install bitcoin-qt $RPM_BUILD_ROOT%{_bindir} |
43 | install contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
44 | install contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
45 | install share/pixmaps/bitcoin{32,80}.xpm $RPM_BUILD_ROOT%{_pixmapsdir} | |
4ffb1fcd AM |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
cda9ff85 | 50 | %files |
4ffb1fcd | 51 | %defattr(644,root,root,755) |
cda9ff85 AM |
52 | %doc doc/*.txt |
53 | %attr(755,root,root) %{_bindir}/bitcoin-qt | |
54 | %{_datadir}/kde4/services/bitcoin-qt.protocol | |
55 | %{_desktopdir}/bitcoin-qt.desktop | |
56 | %{_pixmapsdir}/bitcoin*.xpm |