]>
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 |
d27150c9 | 10 | Version: 0.16.3 |
dedf1203 | 11 | Release: 4 |
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 | |
d27150c9 AM |
16 | # Source0-md5: eaecf6f317091f52fae0eff95ac3b7be |
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 | |
0f77417f | 30 | BuildRequires: boost-devel |
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 |
d27150c9 AM |
37 | BuildRequires: libtool |
38 | BuildRequires: libunivalue-devel | |
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} |
d71863a9 | 45 | %{?with_gui:BuildRequires: zlib-devel} |
d27150c9 | 46 | BuildRequires: zxing-cpp-devel |
0f77417f AM |
47 | Requires: perl-base |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
24d61d02 JB |
51 | Feathercoin is a peer-to-peer currency. Peer-to-peer means that no |
52 | central authority issues new money or tracks transactions. These tasks | |
53 | are managed collectively by the network. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | Feathercoin to waluta peer-to-peer. Peer-to-peer oznacza, że nie ma | |
57 | centralnego urzędu, który emituje nowe pieniądze czy śledzi | |
58 | transakcje. Zadania te są obsługiwane zespołowo przez sieć. | |
0f77417f | 59 | |
f6a6bc9a JB |
60 | %package devel |
61 | Summary: Header file for bitcoinconsensus library | |
62 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki bitcoinconsensus | |
63 | Group: Development/Libraries | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | Requires: openssl-devel | |
66 | Conflicts: bitcoin-devel | |
67 | ||
68 | %description devel | |
69 | Header file for bitcoinconsensus library. | |
70 | ||
71 | %description devel -l pl.UTF-8 | |
72 | Plik nagłówkowy biblioteki bitcoinconsensus. | |
73 | ||
74 | %package static | |
75 | Summary: Static bitcoinconsensus library | |
76 | Summary(pl.UTF-8): Statyczna biblioteka bitcoinconsensus | |
77 | Group: Development/Libraries | |
78 | Requires: %{name}-devel = %{version}-%{release} | |
79 | Conflicts: bitcoin-static | |
80 | ||
81 | %description static | |
82 | Static bitcoinconsensus library. | |
83 | ||
84 | %description static -l pl.UTF-8 | |
85 | Statyczna biblioteka bitcoinconsensus. | |
86 | ||
0f77417f AM |
87 | %package qt |
88 | Summary: Qt-based Feathercoin Wallet | |
24d61d02 | 89 | Summary(pl.UTF-8): Oparty na Qt portfel Feathercoin |
0f77417f AM |
90 | Group: X11/Applications |
91 | ||
92 | %description qt | |
93 | Qt-based Feathercoin Wallet. | |
94 | ||
24d61d02 JB |
95 | %description qt -l pl.UTF-8 |
96 | Oparty na Qt portfel Feathercoin. | |
97 | ||
0f77417f | 98 | %prep |
d71863a9 JB |
99 | %setup -q -n Feathercoin-%{version} |
100 | %patch0 -p1 | |
0f77417f AM |
101 | |
102 | %build | |
d27150c9 AM |
103 | %{__libtoolize} |
104 | %{__aclocal} | |
d71863a9 JB |
105 | %{__autoconf} |
106 | %{__autoheader} | |
107 | %{__automake} | |
108 | # --with-gui defaults to qt4, but it doesn't build (QJsonObject is required) | |
109 | %configure \ | |
110 | --enable-ccache%{!?with_ccache:=no} \ | |
111 | --disable-silent-rules \ | |
d27150c9 | 112 | --with-gui=%{?with_gui:qt5}%{!?with_gui:no} \ |
f6a6bc9a | 113 | --with-incompatible-bdb \ |
d27150c9 | 114 | --with-system-univalue |
0f77417f AM |
115 | |
116 | %{__make} | |
117 | ||
0f77417f AM |
118 | %install |
119 | rm -rf $RPM_BUILD_ROOT | |
0f77417f | 120 | |
d71863a9 JB |
121 | %{__make} install \ |
122 | DESTDIR=$RPM_BUILD_ROOT | |
0f77417f | 123 | |
f6a6bc9a JB |
124 | # obsoleted by pkg-config |
125 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbitcoinconsensus.la | |
126 | ||
127 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_datadir}/kde4/services} | |
d71863a9 | 128 | sed -e 's#bitcoin#feathercoin#g;s#Bitcoin#Feathercoin#g' contrib/debian/bitcoin-qt.desktop > $RPM_BUILD_ROOT%{_desktopdir}/feathercoin-qt.desktop |
0f77417f AM |
129 | sed -e 's#bitcoin#feathercoin#g' contrib/debian/bitcoin-qt.protocol > $RPM_BUILD_ROOT%{_datadir}/kde4/services/feathercoin-qt.protocol |
130 | ||
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
f6a6bc9a JB |
134 | %post -p /sbin/ldconfig |
135 | %postun -p /sbin/ldconfig | |
d27150c9 | 136 | |
0f77417f AM |
137 | %files |
138 | %defattr(644,root,root,755) | |
d71863a9 JB |
139 | %doc COPYING README.md doc/*.txt contrib/debian/examples/bitcoin.conf |
140 | %attr(755,root,root) %{_bindir}/feathercoin-cli | |
d27150c9 | 141 | %attr(755,root,root) %{_bindir}/feathercoin-tx |
0f77417f | 142 | %attr(755,root,root) %{_bindir}/feathercoind |
d71863a9 | 143 | %{_mandir}/man1/feathercoin-cli.1* |
d27150c9 | 144 | %{_mandir}/man1/feathercoin-tx.1* |
d71863a9 | 145 | %{_mandir}/man1/feathercoind.1* |
f6a6bc9a | 146 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.*.* |
d27150c9 | 147 | %attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0 |
f6a6bc9a JB |
148 | |
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_libdir}/libbitcoinconsensus.so | |
152 | %{_includedir}/bitcoinconsensus.h | |
153 | %{_pkgconfigdir}/libbitcoinconsensus.pc | |
154 | ||
155 | %files static | |
156 | %defattr(644,root,root,755) | |
157 | %{_libdir}/libbitcoinconsensus.a | |
0f77417f AM |
158 | |
159 | %files qt | |
160 | %defattr(644,root,root,755) | |
161 | %attr(755,root,root) %{_bindir}/feathercoin-qt | |
162 | %{_datadir}/kde4/services/feathercoin-qt.protocol | |
163 | %{_desktopdir}/feathercoin-qt.desktop | |
d71863a9 | 164 | %{_mandir}/man1/feathercoin-qt.1* |