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