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