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