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