]> git.pld-linux.org Git - packages/bitcoin.git/blame - bitcoin.spec
- added -boost.patch and -nostatic.patch
[packages/bitcoin.git] / bitcoin.spec
CommitLineData
4ffb1fcd
AM
1Summary: Bitcoin is a peer-to-peer currency
2Name: bitcoin
3Version: 0.3.21
4Release: 0.1
5License: MIT/X11
6Group: X11/Applications
7Source0: http://downloads.sourceforge.net/bitcoin/%{name}-%{version}-linux.tar.gz
8# Source0-md5: 19e530a9b60e3a0987998a87b30d8cdc
74ff7c8b
MB
9Patch0: %{name}-boost.patch
10Patch1: %{name}-nostatic.patch
4ffb1fcd
AM
11URL: http://www.bitcoin.org
12BuildRequires: boost-devel
74ff7c8b
MB
13BuildRequires: db-cxx-devel
14BuildRequires: miniupnpc-devel >= 1.5
4ffb1fcd 15BuildRequires: openssl-devel
74ff7c8b 16BuildRequires: wxGTK2-unicode-devel >= 2.9
4ffb1fcd
AM
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central
21authority issues new money or tracks transactions. These tasks are
22managed collectively by the network.
23
24%prep
25%setup -q
74ff7c8b
MB
26%patch0 -p1
27%patch1 -p1
4ffb1fcd
AM
28
29%build
30%{__make} -C src -f makefile.unix \
31 CXX="%{__cxx}" \
74ff7c8b
MB
32 WXINCLUDEPATHS="$(wx-gtk2-unicode-2.9-config --cxxflags)" \
33 WXLIBS="$(wx-gtk2-unicode-2.9-config --libs)" \
34 USE_UPNP=1
35
36%{__make} -C src -f makefile.unix \
37 CXX="%{__cxx}" \
38 WXINCLUDEPATHS="$(wx-gtk2-unicode-2.9-config --cxxflags)" \
39 WXLIBS="$(wx-gtk2-unicode-2.9-config --libs)" \
4ffb1fcd 40 USE_UPNP=1 \
74ff7c8b 41 bitcoind
4ffb1fcd
AM
42
43%install
44rm -rf $RPM_BUILD_ROOT
74ff7c8b
MB
45install -d $RPM_BUILD_ROOT{%{_bindir},%{_localedir}}
46
47install src/{bitcoin,bitcoind} $RPM_BUILD_ROOT%{_bindir}
48
49# install locales
50for dir in $(find locale/ -mindepth 1 -maxdepth 1 -type d); do
51 lang=$(basename $dir)
52
53 install -d $RPM_BUILD_ROOT%{_localedir}/$lang/LC_MESSAGES
54 install $dir/LC_MESSAGES/bitcoin.mo $RPM_BUILD_ROOT%{_localedir}/$lang/LC_MESSAGES
55done
56
57%find_lang %{name}
4ffb1fcd
AM
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files -f %{name}.lang
63%defattr(644,root,root,755)
74ff7c8b
MB
64%attr(755,root,root) %{_bindir}/bitcoin
65%attr(755,root,root) %{_bindir}/bitcoind
This page took 0.064558 seconds and 4 git commands to generate.