1 Summary: Bitcoin is a peer-to-peer currency
6 Group: X11/Applications
7 Source0: http://downloads.sourceforge.net/bitcoin/%{name}-%{version}-linux.tar.gz
8 # Source0-md5: 19e530a9b60e3a0987998a87b30d8cdc
9 Patch0: %{name}-boost.patch
10 Patch1: %{name}-nostatic.patch
11 URL: http://www.bitcoin.org
12 BuildRequires: boost-devel
13 BuildRequires: db-cxx-devel
14 BuildRequires: miniupnpc-devel >= 1.5
15 BuildRequires: openssl-devel
16 BuildRequires: wxGTK2-unicode-devel >= 2.9
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central
21 authority issues new money or tracks transactions. These tasks are
22 managed collectively by the network.
30 %{__make} -C src -f makefile.unix \
32 WXINCLUDEPATHS="$(wx-gtk2-unicode-2.9-config --cxxflags)" \
33 WXLIBS="$(wx-gtk2-unicode-2.9-config --libs)" \
36 %{__make} -C src -f makefile.unix \
38 WXINCLUDEPATHS="$(wx-gtk2-unicode-2.9-config --cxxflags)" \
39 WXLIBS="$(wx-gtk2-unicode-2.9-config --libs)" \
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{_localedir}}
47 install src/{bitcoin,bitcoind} $RPM_BUILD_ROOT%{_bindir}
50 for dir in $(find locale/ -mindepth 1 -maxdepth 1 -type d); do
53 install -d $RPM_BUILD_ROOT%{_localedir}/$lang/LC_MESSAGES
54 install $dir/LC_MESSAGES/bitcoin.mo $RPM_BUILD_ROOT%{_localedir}/$lang/LC_MESSAGES
60 rm -rf $RPM_BUILD_ROOT
62 %files -f %{name}.lang
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/bitcoin
65 %attr(755,root,root) %{_bindir}/bitcoind