]>
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 |
a015a842 | 6 | Version: 0.20.0 |
b0915758 | 7 | Release: 2 |
391c9e61 | 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 | |
a015a842 | 12 | # Source0-md5: 46e632b4f42a5162e6f100a01cf4ee00 |
c31cb984 | 13 | Patch0: qt-5.15.patch |
a0ab8273 | 14 | Patch1: univalue.patch |
391c9e61 | 15 | URL: http://www.bitcoin.org/ |
a015a842 JB |
16 | BuildRequires: Qt5Core-devel >= 5.0 |
17 | BuildRequires: Qt5DBus-devel >= 5.0 | |
18 | BuildRequires: Qt5Gui-devel >= 5.0 | |
19 | BuildRequires: Qt5Network-devel >= 5.0 | |
20 | BuildRequires: Qt5Widgets-devel >= 5.0 | |
21 | BuildRequires: autoconf >= 2.69 | |
22 | BuildRequires: automake >= 1:1.13 | |
391c9e61 JB |
23 | BuildRequires: boost-devel >= 1.49 |
24 | BuildRequires: db-cxx-devel >= 4.8 | |
25 | BuildRequires: gettext-tools | |
0373c347 | 26 | BuildRequires: libevent-devel >= 2 |
391c9e61 JB |
27 | # -std=c++11 |
28 | BuildRequires: libstdc++-devel >= 6:4.7 | |
29 | BuildRequires: libtool >= 2:2 | |
0373c347 | 30 | BuildRequires: libunivalue-devel >= 1.0.4 |
74ff7c8b | 31 | BuildRequires: miniupnpc-devel >= 1.5 |
4ffb1fcd | 32 | BuildRequires: openssl-devel |
391c9e61 | 33 | BuildRequires: pkgconfig |
88599e36 | 34 | BuildRequires: protobuf-devel |
a015a842 | 35 | BuildRequires: python3 >= 1:3.5 |
cda9ff85 | 36 | BuildRequires: qrencode-devel |
391c9e61 | 37 | BuildRequires: zeromq-devel >= 4 |
0373c347 | 38 | Requires: libunivalue >= 1.0.4 |
55ac9485 | 39 | Requires: perl-base |
4ffb1fcd AM |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central | |
44 | authority issues new money or tracks transactions. These tasks are | |
45 | managed collectively by the network. | |
46 | ||
391c9e61 JB |
47 | %description -l pl.UTF-8 |
48 | Bitcoin to waluta peer-to-peer. Oznacza to, że nie ma centralnej | |
49 | instytucji emitującej nowe pieniądze czy śledzącej transakcje. Zadania | |
50 | te są zarządzane kolektywnie przez sieć. | |
51 | ||
52 | %package devel | |
53 | Summary: Header file for bitcoinconsensus library | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bitcoinconsensus | |
55 | Group: Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | Requires: openssl-devel | |
58 | ||
59 | %description devel | |
60 | Header file for bitcoinconsensus library. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki bitcoinconsensus. | |
64 | ||
65 | %package static | |
66 | Summary: Static bitcoinconsensus library | |
67 | Summary(pl.UTF-8): Statyczna biblioteka bitcoinconsensus | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static bitcoinconsensus library. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczna biblioteka bitcoinconsensus. | |
76 | ||
55ac9485 AM |
77 | %package qt |
78 | Summary: Qt-based Bitcoin Wallet | |
391c9e61 | 79 | Summary(pl.UTF-8): Portfel na bitcoiny oparty na Qt |
55ac9485 | 80 | Group: X11/Applications |
391c9e61 | 81 | Requires: %{name} = %{version}-%{release} |
55ac9485 AM |
82 | |
83 | %description qt | |
84 | Qt-based Bitcoin Wallet. | |
85 | ||
391c9e61 JB |
86 | %description qt -l pl.UTF-8 |
87 | Portfel na bitcoiny oparty na Qt. | |
88 | ||
4ffb1fcd AM |
89 | %prep |
90 | %setup -q | |
c31cb984 | 91 | %patch0 -p1 |
a0ab8273 | 92 | %patch1 -p1 |
4ffb1fcd AM |
93 | |
94 | %build | |
391c9e61 JB |
95 | %{__libtoolize} |
96 | %{__aclocal} -I build-aux/m4 | |
97 | %{__autoconf} | |
98 | %{__autoheader} | |
99 | %{__automake} | |
a015a842 JB |
100 | cd src/secp256k1 |
101 | %{__libtoolize} | |
102 | %{__aclocal} -I build-aux/m4 | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
106 | cd ../.. | |
9aa38433 | 107 | %configure \ |
55ce5315 | 108 | --disable-silent-rules \ |
9aa38433 AM |
109 | --with-boost \ |
110 | --with-gui=qt4 \ | |
391c9e61 JB |
111 | --with-incompatible-bdb \ |
112 | --with-miniupnpc \ | |
113 | --with-qrencode \ | |
932be74b JB |
114 | --with-qtdbus \ |
115 | --with-system-univalue | |
cda9ff85 AM |
116 | |
117 | %{__make} | |
4ffb1fcd | 118 | |
55ac9485 | 119 | |
4ffb1fcd AM |
120 | %install |
121 | rm -rf $RPM_BUILD_ROOT | |
91d0d556 | 122 | #install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} |
9aa38433 AM |
123 | |
124 | %{__make} install \ | |
125 | DESTDIR=$RPM_BUILD_ROOT | |
55ac9485 | 126 | |
91d0d556 JB |
127 | # obsoleted by pkg-config |
128 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbitcoinconsensus.la | |
129 | ||
787da45a MK |
130 | # TODO: gone during 0.14.0 -> 0.14.2 |
131 | # cp -p contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
132 | # cp -p contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
133 | # cp -p share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
55ac9485 | 134 | |
4ffb1fcd AM |
135 | %clean |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
391c9e61 JB |
138 | %post -p /sbin/ldconfig |
139 | %postun -p /sbin/ldconfig | |
63c5388d | 140 | |
cda9ff85 | 141 | %files |
4ffb1fcd | 142 | %defattr(644,root,root,755) |
391c9e61 | 143 | %doc COPYING doc/*.txt |
9aa38433 | 144 | %attr(755,root,root) %{_bindir}/bitcoin-cli |
63c5388d | 145 | %attr(755,root,root) %{_bindir}/bitcoin-tx |
0373c347 | 146 | %attr(755,root,root) %{_bindir}/bitcoin-wallet |
55ac9485 | 147 | %attr(755,root,root) %{_bindir}/bitcoind |
391c9e61 | 148 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.*.* |
63c5388d | 149 | %attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0 |
50662518 JR |
150 | %{_mandir}/man1/bitcoin-cli.1* |
151 | %{_mandir}/man1/bitcoin-tx.1* | |
c31cb984 | 152 | %{_mandir}/man1/bitcoin-wallet.1* |
55ac9485 | 153 | %{_mandir}/man1/bitcoind.1* |
55ac9485 | 154 | |
391c9e61 JB |
155 | %files devel |
156 | %defattr(644,root,root,755) | |
157 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so | |
158 | %{_includedir}/bitcoinconsensus.h | |
159 | %{_pkgconfigdir}/libbitcoinconsensus.pc | |
160 | ||
161 | %files static | |
162 | %defattr(644,root,root,755) | |
163 | %{_libdir}/libbitcoinconsensus.a | |
164 | ||
55ac9485 AM |
165 | %files qt |
166 | %defattr(644,root,root,755) | |
cda9ff85 | 167 | %attr(755,root,root) %{_bindir}/bitcoin-qt |
787da45a MK |
168 | #%%{_datadir}/kde4/services/bitcoin-qt.protocol |
169 | #%%{_desktopdir}/bitcoin-qt.desktop | |
170 | #%%{_pixmapsdir}/bitcoin*.png | |
50662518 | 171 | %{_mandir}/man1/bitcoin-qt.1* |