]>
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 |
0373c347 | 6 | Version: 0.18.0 |
b0aec34d | 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 | |
0373c347 | 12 | # Source0-md5: 916c8fb6e7e83f60207113273c39507c |
391c9e61 JB |
13 | URL: http://www.bitcoin.org/ |
14 | BuildRequires: QtCore-devel >= 4.0 | |
15 | BuildRequires: QtDBus-devel >= 4.0 | |
16 | BuildRequires: QtGui-devel >= 4.0 | |
17 | BuildRequires: autoconf >= 2.60 | |
9aa38433 | 18 | BuildRequires: automake |
391c9e61 JB |
19 | BuildRequires: boost-devel >= 1.49 |
20 | BuildRequires: db-cxx-devel >= 4.8 | |
21 | BuildRequires: gettext-tools | |
0373c347 | 22 | BuildRequires: libevent-devel >= 2 |
391c9e61 JB |
23 | # -std=c++11 |
24 | BuildRequires: libstdc++-devel >= 6:4.7 | |
25 | BuildRequires: libtool >= 2:2 | |
0373c347 | 26 | BuildRequires: libunivalue-devel >= 1.0.4 |
74ff7c8b | 27 | BuildRequires: miniupnpc-devel >= 1.5 |
4ffb1fcd | 28 | BuildRequires: openssl-devel |
391c9e61 | 29 | BuildRequires: pkgconfig |
88599e36 | 30 | BuildRequires: protobuf-devel |
391c9e61 | 31 | BuildRequires: python >= 1:2.7 |
cda9ff85 | 32 | BuildRequires: qrencode-devel |
391c9e61 | 33 | BuildRequires: zeromq-devel >= 4 |
0373c347 | 34 | Requires: libunivalue >= 1.0.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 | |
91d0d556 | 109 | #install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} |
9aa38433 AM |
110 | |
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
55ac9485 | 113 | |
91d0d556 JB |
114 | # obsoleted by pkg-config |
115 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbitcoinconsensus.la | |
116 | ||
787da45a MK |
117 | # TODO: gone during 0.14.0 -> 0.14.2 |
118 | # cp -p contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
119 | # cp -p contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services | |
120 | # cp -p share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
55ac9485 | 121 | |
4ffb1fcd AM |
122 | %clean |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
391c9e61 JB |
125 | %post -p /sbin/ldconfig |
126 | %postun -p /sbin/ldconfig | |
63c5388d | 127 | |
cda9ff85 | 128 | %files |
4ffb1fcd | 129 | %defattr(644,root,root,755) |
391c9e61 | 130 | %doc COPYING doc/*.txt |
9aa38433 | 131 | %attr(755,root,root) %{_bindir}/bitcoin-cli |
63c5388d | 132 | %attr(755,root,root) %{_bindir}/bitcoin-tx |
0373c347 | 133 | %attr(755,root,root) %{_bindir}/bitcoin-wallet |
55ac9485 | 134 | %attr(755,root,root) %{_bindir}/bitcoind |
391c9e61 | 135 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.*.* |
63c5388d | 136 | %attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0 |
50662518 JR |
137 | %{_mandir}/man1/bitcoin-cli.1* |
138 | %{_mandir}/man1/bitcoin-tx.1* | |
55ac9485 | 139 | %{_mandir}/man1/bitcoind.1* |
55ac9485 | 140 | |
391c9e61 JB |
141 | %files devel |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so | |
144 | %{_includedir}/bitcoinconsensus.h | |
145 | %{_pkgconfigdir}/libbitcoinconsensus.pc | |
146 | ||
147 | %files static | |
148 | %defattr(644,root,root,755) | |
149 | %{_libdir}/libbitcoinconsensus.a | |
150 | ||
55ac9485 AM |
151 | %files qt |
152 | %defattr(644,root,root,755) | |
cda9ff85 | 153 | %attr(755,root,root) %{_bindir}/bitcoin-qt |
787da45a MK |
154 | #%%{_datadir}/kde4/services/bitcoin-qt.protocol |
155 | #%%{_desktopdir}/bitcoin-qt.desktop | |
156 | #%%{_pixmapsdir}/bitcoin*.png | |
50662518 | 157 | %{_mandir}/man1/bitcoin-qt.1* |