]>
Commit | Line | Data |
---|---|---|
d71863a9 JB |
1 | # NOTE: "portable wallet" wants BDB 4.8 |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with ccache # use ccache for building | |
5 | %bcond_without gui # Qt5 GUI | |
6 | ||
24d61d02 JB |
7 | Summary: Feathercoin - a peer-to-peer currency |
8 | Summary(pl.UTF-8): Feathercoin - waluta peer-to-peer | |
0f77417f | 9 | Name: feathercoin |
27aee4eb | 10 | Version: 0.19.1 |
3de361ac | 11 | Release: 3 |
d71863a9 JB |
12 | License: MIT |
13 | Group: Applications/Networking | |
14 | #Source0Download: https://github.com/FeatherCoin/Feathercoin/releases | |
15 | Source0: https://github.com/FeatherCoin/Feathercoin/archive/v%{version}/%{name}-%{version}.tar.gz | |
27aee4eb | 16 | # Source0-md5: 5af573e26b1fc7cb57ef5efc5dd88801 |
d27150c9 | 17 | Patch0: lib.patch |
4e6b795e | 18 | Patch1: qt-5.15.patch |
36f7f9aa | 19 | Patch2: %{name}-includes.patch |
27aee4eb | 20 | Patch3: %{name}-univalue.patch |
24d61d02 | 21 | URL: https://www.feathercoin.com/ |
d71863a9 JB |
22 | %if %{with gui} |
23 | BuildRequires: Qt5Core-devel >= 5 | |
24 | BuildRequires: Qt5DBus-devel >= 5 | |
25 | BuildRequires: Qt5Gui-devel >= 5 | |
26 | BuildRequires: Qt5Network-devel >= 5 | |
27 | BuildRequires: Qt5PrintSupport-devel >= 5 | |
28 | BuildRequires: Qt5Test-devel >= 5 | |
29 | BuildRequires: Qt5Widgets-devel >= 5 | |
30 | %endif | |
31 | BuildRequires: autoconf >= 2.69 | |
32 | BuildRequires: automake | |
d5d03ba6 | 33 | BuildRequires: boost-devel >= 1.47.0 |
d71863a9 JB |
34 | %{?with_ccache:BuildRequires: ccache} |
35 | BuildRequires: db-cxx-devel >= 4.8 | |
36 | BuildRequires: gettext-tools | |
27aee4eb | 37 | BuildRequires: libevent-devel |
d71863a9 | 38 | %{?with_gui:BuildRequires: libpng-devel} |
27aee4eb JB |
39 | BuildRequires: libsecp256k1-devel >= 0.1.0.15 |
40 | BuildRequires: libstdc++-devel >= 6:4.7 | |
d5d03ba6 JB |
41 | BuildRequires: libtool >= 2:2 |
42 | BuildRequires: libunivalue-devel >= 1.0.4 | |
0f77417f AM |
43 | BuildRequires: miniupnpc-devel >= 1.5 |
44 | BuildRequires: openssl-devel | |
d71863a9 JB |
45 | BuildRequires: pkgconfig |
46 | BuildRequires: protobuf-devel | |
27aee4eb | 47 | BuildRequires: python3 >= 1:3.5 |
0f77417f | 48 | BuildRequires: qrencode-devel |
d71863a9 | 49 | %{?with_gui:BuildRequires: qt5-build >= 5} |
d5d03ba6 | 50 | BuildRequires: zeromq-devel >= 4 |
d71863a9 | 51 | %{?with_gui:BuildRequires: zlib-devel} |
d27150c9 | 52 | BuildRequires: zxing-cpp-devel |
27aee4eb | 53 | Requires: libsecp256k1 >= 0.1.0.15 |
d5d03ba6 | 54 | Requires: libunivalue >= 1.0.4 |
0f77417f AM |
55 | Requires: perl-base |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
57 | ||
d5d03ba6 JB |
58 | # uses nNeoScryptOptions symbol from binaries |
59 | %define skip_post_check_so libbitcoinconsensus.so.* | |
60 | ||
0f77417f | 61 | %description |
24d61d02 JB |
62 | Feathercoin is a peer-to-peer currency. Peer-to-peer means that no |
63 | central authority issues new money or tracks transactions. These tasks | |
64 | are managed collectively by the network. | |
65 | ||
66 | %description -l pl.UTF-8 | |
67 | Feathercoin to waluta peer-to-peer. Peer-to-peer oznacza, że nie ma | |
68 | centralnego urzędu, który emituje nowe pieniądze czy śledzi | |
69 | transakcje. Zadania te są obsługiwane zespołowo przez sieć. | |
0f77417f | 70 | |
f6a6bc9a JB |
71 | %package devel |
72 | Summary: Header file for bitcoinconsensus library | |
73 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki bitcoinconsensus | |
74 | Group: Development/Libraries | |
75 | Requires: %{name} = %{version}-%{release} | |
76 | Requires: openssl-devel | |
77 | Conflicts: bitcoin-devel | |
78 | ||
79 | %description devel | |
80 | Header file for bitcoinconsensus library. | |
81 | ||
82 | %description devel -l pl.UTF-8 | |
83 | Plik nagłówkowy biblioteki bitcoinconsensus. | |
84 | ||
85 | %package static | |
86 | Summary: Static bitcoinconsensus library | |
87 | Summary(pl.UTF-8): Statyczna biblioteka bitcoinconsensus | |
88 | Group: Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | Conflicts: bitcoin-static | |
91 | ||
92 | %description static | |
93 | Static bitcoinconsensus library. | |
94 | ||
95 | %description static -l pl.UTF-8 | |
96 | Statyczna biblioteka bitcoinconsensus. | |
97 | ||
0f77417f AM |
98 | %package qt |
99 | Summary: Qt-based Feathercoin Wallet | |
24d61d02 | 100 | Summary(pl.UTF-8): Oparty na Qt portfel Feathercoin |
0f77417f AM |
101 | Group: X11/Applications |
102 | ||
103 | %description qt | |
104 | Qt-based Feathercoin Wallet. | |
105 | ||
24d61d02 JB |
106 | %description qt -l pl.UTF-8 |
107 | Oparty na Qt portfel Feathercoin. | |
108 | ||
0f77417f | 109 | %prep |
d71863a9 JB |
110 | %setup -q -n Feathercoin-%{version} |
111 | %patch0 -p1 | |
4e6b795e | 112 | %patch1 -p1 |
36f7f9aa | 113 | %patch2 -p1 |
27aee4eb | 114 | %patch3 -p1 |
0f77417f AM |
115 | |
116 | %build | |
d27150c9 AM |
117 | %{__libtoolize} |
118 | %{__aclocal} | |
d71863a9 JB |
119 | %{__autoconf} |
120 | %{__autoheader} | |
121 | %{__automake} | |
122 | # --with-gui defaults to qt4, but it doesn't build (QJsonObject is required) | |
123 | %configure \ | |
27aee4eb JB |
124 | --disable-bench \ |
125 | --enable-bip70 \ | |
d71863a9 | 126 | --enable-ccache%{!?with_ccache:=no} \ |
27aee4eb | 127 | --disable-gui-tests \ |
d71863a9 | 128 | --disable-silent-rules \ |
27aee4eb | 129 | --disable-tests \ |
d27150c9 | 130 | --with-gui=%{?with_gui:qt5}%{!?with_gui:no} \ |
f6a6bc9a | 131 | --with-incompatible-bdb \ |
d27150c9 | 132 | --with-system-univalue |
0f77417f AM |
133 | |
134 | %{__make} | |
135 | ||
0f77417f AM |
136 | %install |
137 | rm -rf $RPM_BUILD_ROOT | |
0f77417f | 138 | |
d71863a9 JB |
139 | %{__make} install \ |
140 | DESTDIR=$RPM_BUILD_ROOT | |
0f77417f | 141 | |
f6a6bc9a JB |
142 | # obsoleted by pkg-config |
143 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbitcoinconsensus.la | |
144 | ||
145 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_datadir}/kde4/services} | |
d5d03ba6 JB |
146 | cat <<EOF >$RPM_BUILD_ROOT%{_desktopdir}/feathercoin-qt.desktop |
147 | [Desktop Entry] | |
148 | Encoding=UTF-8 | |
149 | Name=Feathercoin | |
150 | Comment=Feathercoin P2P Cryptocurrency | |
151 | Comment[fr]=Feathercoin, monnaie virtuelle cryptographique pair à pair | |
152 | Comment[pl]=Feathercoin - kryptowaluta P2P | |
153 | Comment[tr]=Feathercoin, eşten eşe kriptografik sanal para birimi | |
154 | Exec=feathercoin-qt %u | |
155 | Terminal=false | |
156 | Type=Application | |
157 | Icon=bitcoin128 | |
158 | MimeType=x-scheme-handler/feathercoin; | |
159 | Categories=Office;Finance; | |
160 | EOF | |
161 | ||
162 | cat <<EOF >$RPM_BUILD_ROOT%{_datadir}/kde4/services/feathercoin-qt.protocol | |
163 | [Protocol] | |
164 | exec=feathercoin-qt '%u' | |
165 | protocol=feathercoin | |
166 | input=none | |
167 | output=none | |
168 | helper=true | |
169 | listing= | |
170 | reading=false | |
171 | writing=false | |
172 | makedir=false | |
173 | deleting=false | |
174 | EOF | |
0f77417f AM |
175 | |
176 | %clean | |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
f6a6bc9a JB |
179 | %post -p /sbin/ldconfig |
180 | %postun -p /sbin/ldconfig | |
d27150c9 | 181 | |
0f77417f AM |
182 | %files |
183 | %defattr(644,root,root,755) | |
d5d03ba6 | 184 | %doc COPYING README.md doc/*.txt |
d71863a9 | 185 | %attr(755,root,root) %{_bindir}/feathercoin-cli |
d27150c9 | 186 | %attr(755,root,root) %{_bindir}/feathercoin-tx |
4e6b795e | 187 | %attr(755,root,root) %{_bindir}/feathercoin-wallet |
0f77417f | 188 | %attr(755,root,root) %{_bindir}/feathercoind |
d71863a9 | 189 | %{_mandir}/man1/feathercoin-cli.1* |
d27150c9 | 190 | %{_mandir}/man1/feathercoin-tx.1* |
4e6b795e | 191 | %{_mandir}/man1/feathercoin-wallet.1* |
d71863a9 | 192 | %{_mandir}/man1/feathercoind.1* |
f6a6bc9a | 193 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.*.* |
d27150c9 | 194 | %attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0 |
f6a6bc9a JB |
195 | |
196 | %files devel | |
197 | %defattr(644,root,root,755) | |
198 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so | |
199 | %{_includedir}/bitcoinconsensus.h | |
200 | %{_pkgconfigdir}/libbitcoinconsensus.pc | |
201 | ||
202 | %files static | |
203 | %defattr(644,root,root,755) | |
204 | %{_libdir}/libbitcoinconsensus.a | |
0f77417f AM |
205 | |
206 | %files qt | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_bindir}/feathercoin-qt | |
209 | %{_datadir}/kde4/services/feathercoin-qt.protocol | |
210 | %{_desktopdir}/feathercoin-qt.desktop | |
d71863a9 | 211 | %{_mandir}/man1/feathercoin-qt.1* |