]>
Commit | Line | Data |
---|---|---|
787da45a MK |
1 | # TODO: Readd missing icons/*.destktop deleted from contrib/debian during 0.14.0 -> 0.14.2 |
2 | # TODO: Consider running as system-wide service (check contrib/init) with own user/group | |
4ffb1fcd | 3 | Summary: Bitcoin is a peer-to-peer currency |
391c9e61 | 4 | Summary(pl.UTF-8): Bitcoin - waluta peer-to-peer |
4ffb1fcd | 5 | Name: bitcoin |
787da45a | 6 | Version: 0.14.2 |
391c9e61 JB |
7 | Release: 5 |
8 | License: MIT | |
4ffb1fcd | 9 | Group: X11/Applications |
787da45a MK |
10 | # Source0: https://github.com/bitcoin/bitcoin/archive/v%{version}/%{name}-%{version}.tar.gz |
11 | Source0: https://bitcoin.org/bin/bitcoin-core-%{version}/bitcoin-%{version}.tar.gz | |
12 | # Source0-md5: 4324327fbb2d696b98809b3ddbd40b0c | |
13 | # https://bitcoin.org/bin/bitcoin-core-0.14.2/bitcoin-0.14.2.tar.gz | |
391c9e61 JB |
14 | URL: http://www.bitcoin.org/ |
15 | BuildRequires: QtCore-devel >= 4.0 | |
16 | BuildRequires: QtDBus-devel >= 4.0 | |
17 | BuildRequires: QtGui-devel >= 4.0 | |
18 | BuildRequires: autoconf >= 2.60 | |
9aa38433 | 19 | BuildRequires: automake |
391c9e61 JB |
20 | BuildRequires: boost-devel >= 1.49 |
21 | BuildRequires: db-cxx-devel >= 4.8 | |
22 | BuildRequires: gettext-tools | |
23 | BuildRequires: libevent-devel | |
24 | # -std=c++11 | |
25 | BuildRequires: libstdc++-devel >= 6:4.7 | |
26 | BuildRequires: libtool >= 2:2 | |
932be74b | 27 | BuildRequires: libunivalue-devel |
74ff7c8b | 28 | BuildRequires: miniupnpc-devel >= 1.5 |
4ffb1fcd | 29 | BuildRequires: openssl-devel |
391c9e61 | 30 | BuildRequires: pkgconfig |
88599e36 | 31 | BuildRequires: protobuf-devel |
391c9e61 | 32 | BuildRequires: python >= 1:2.7 |
cda9ff85 | 33 | BuildRequires: qrencode-devel |
391c9e61 | 34 | BuildRequires: zeromq-devel >= 4 |
55ac9485 | 35 | Requires: perl-base |
4ffb1fcd AM |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central | |
40 | authority issues new money or tracks transactions. These tasks are | |
41 | managed collectively by the network. | |
42 | ||
391c9e61 JB |
43 | %description -l pl.UTF-8 |
44 | Bitcoin to waluta peer-to-peer. Oznacza to, że nie ma centralnej | |
45 | instytucji emitującej nowe pieniądze czy śledzącej transakcje. Zadania | |
46 | te są zarządzane kolektywnie przez sieć. | |
47 | ||
48 | %package devel | |
49 | Summary: Header file for bitcoinconsensus library | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bitcoinconsensus | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | Requires: openssl-devel | |
54 | ||
55 | %description devel | |
56 | Header file for bitcoinconsensus library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki bitcoinconsensus. | |
60 | ||
61 | %package static | |
62 | Summary: Static bitcoinconsensus library | |
63 | Summary(pl.UTF-8): Statyczna biblioteka bitcoinconsensus | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static bitcoinconsensus library. | |
69 | ||
70 | %description static -l pl.UTF-8 | |
71 | Statyczna biblioteka bitcoinconsensus. | |
72 | ||
55ac9485 AM |
73 | %package qt |
74 | Summary: Qt-based Bitcoin Wallet | |
391c9e61 | 75 | Summary(pl.UTF-8): Portfel na bitcoiny oparty na Qt |
55ac9485 | 76 | Group: X11/Applications |
391c9e61 | 77 | Requires: %{name} = %{version}-%{release} |
55ac9485 AM |
78 | |
79 | %description qt | |
80 | Qt-based Bitcoin Wallet. | |
81 | ||
391c9e61 JB |
82 | %description qt -l pl.UTF-8 |
83 | Portfel na bitcoiny oparty na Qt. | |
84 | ||
4ffb1fcd AM |
85 | %prep |
86 | %setup -q | |
87 | ||
88 | %build | |
391c9e61 JB |
89 | %{__libtoolize} |
90 | %{__aclocal} -I build-aux/m4 | |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
9aa38433 | 94 | %configure \ |
55ce5315 | 95 | --disable-silent-rules \ |
9aa38433 AM |
96 | --with-boost \ |
97 | --with-gui=qt4 \ | |
391c9e61 JB |
98 | --with-incompatible-bdb \ |
99 | --with-miniupnpc \ | |
100 | --with-qrencode \ | |
932be74b JB |
101 | --with-qtdbus \ |
102 | --with-system-univalue | |
cda9ff85 AM |
103 | |
104 | %{__make} | |
4ffb1fcd | 105 | |
55ac9485 | 106 | |
4ffb1fcd AM |
107 | %install |
108 | rm -rf $RPM_BUILD_ROOT | |
391c9e61 | 109 | #install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,5},%{_localedir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} |
9aa38433 AM |
110 | |
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
55ac9485 | 113 | |
787da45a MK |
114 | # TODO: gone during 0.14.0 -> 0.14.2 |
115 | # cp -p contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
116 | # cp -p contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
117 | # cp -p share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
55ac9485 | 118 | |
4ffb1fcd AM |
119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
391c9e61 JB |
122 | %post -p /sbin/ldconfig |
123 | %postun -p /sbin/ldconfig | |
63c5388d | 124 | |
cda9ff85 | 125 | %files |
4ffb1fcd | 126 | %defattr(644,root,root,755) |
391c9e61 | 127 | %doc COPYING doc/*.txt |
9aa38433 | 128 | %attr(755,root,root) %{_bindir}/bitcoin-cli |
63c5388d | 129 | %attr(755,root,root) %{_bindir}/bitcoin-tx |
55ac9485 | 130 | %attr(755,root,root) %{_bindir}/bitcoind |
391c9e61 | 131 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.*.* |
63c5388d | 132 | %attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0 |
50662518 JR |
133 | %{_mandir}/man1/bitcoin-cli.1* |
134 | %{_mandir}/man1/bitcoin-tx.1* | |
55ac9485 | 135 | %{_mandir}/man1/bitcoind.1* |
55ac9485 | 136 | |
391c9e61 JB |
137 | %files devel |
138 | %defattr(644,root,root,755) | |
139 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so | |
140 | %{_includedir}/bitcoinconsensus.h | |
141 | %{_pkgconfigdir}/libbitcoinconsensus.pc | |
142 | ||
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libbitcoinconsensus.a | |
146 | ||
55ac9485 AM |
147 | %files qt |
148 | %defattr(644,root,root,755) | |
cda9ff85 | 149 | %attr(755,root,root) %{_bindir}/bitcoin-qt |
787da45a MK |
150 | #%%{_datadir}/kde4/services/bitcoin-qt.protocol |
151 | #%%{_desktopdir}/bitcoin-qt.desktop | |
152 | #%%{_pixmapsdir}/bitcoin*.png | |
50662518 | 153 | %{_mandir}/man1/bitcoin-qt.1* |