]>
Commit | Line | Data |
---|---|---|
24d61d02 JB |
1 | Summary: Feathercoin - a peer-to-peer currency |
2 | Summary(pl.UTF-8): Feathercoin - waluta peer-to-peer | |
0f77417f AM |
3 | Name: feathercoin |
4 | Version: 0.0.1 | |
a21a12c2 | 5 | Release: 9 |
0f77417f AM |
6 | License: MIT/X11 |
7 | Group: X11/Applications | |
8 | Source0: https://github.com/FeatherCoin/FeatherCoin/archive/master.zip?/%{name}-%{version}.zip | |
9 | # Source0-md5: 9662befa9e33b7ab7ded60d41cd12eea | |
24d61d02 JB |
10 | URL: https://www.feathercoin.com/ |
11 | BuildRequires: QtCore-devel >= 4 | |
12 | BuildRequires: QtDBus-devel >= 4 | |
13 | BuildRequires: QtGui-devel >= 4 | |
0f77417f AM |
14 | BuildRequires: boost-devel |
15 | BuildRequires: db-cxx-devel | |
16 | BuildRequires: miniupnpc-devel >= 1.5 | |
17 | BuildRequires: openssl-devel | |
18 | BuildRequires: qrencode-devel | |
24d61d02 | 19 | BuildRequires: qt4-qmake >= 4 |
0f77417f AM |
20 | Requires: perl-base |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24d61d02 JB |
24 | Feathercoin is a peer-to-peer currency. Peer-to-peer means that no |
25 | central authority issues new money or tracks transactions. These tasks | |
26 | are managed collectively by the network. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Feathercoin to waluta peer-to-peer. Peer-to-peer oznacza, że nie ma | |
30 | centralnego urzędu, który emituje nowe pieniądze czy śledzi | |
31 | transakcje. Zadania te są obsługiwane zespołowo przez sieć. | |
0f77417f AM |
32 | |
33 | %package qt | |
34 | Summary: Qt-based Feathercoin Wallet | |
24d61d02 | 35 | Summary(pl.UTF-8): Oparty na Qt portfel Feathercoin |
0f77417f AM |
36 | Group: X11/Applications |
37 | ||
38 | %description qt | |
39 | Qt-based Feathercoin Wallet. | |
40 | ||
24d61d02 JB |
41 | %description qt -l pl.UTF-8 |
42 | Oparty na Qt portfel Feathercoin. | |
43 | ||
0f77417f AM |
44 | %prep |
45 | %setup -q -c | |
46 | ||
47 | %build | |
48 | cd FeatherCoin-master | |
49 | qmake-qt4 \ | |
50 | USE_UPNP=1 \ | |
51 | USE_DBUS=1 \ | |
52 | USE_QRCODE=1 | |
53 | ||
54 | %{__make} | |
55 | ||
56 | %{__make} -C src -f makefile.unix \ | |
57 | CXX="%{__cxx}" \ | |
58 | CXXFLAGS="%{rpmcflags} %{rpmcxxflags} %{rpmcppflags}" | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | cd FeatherCoin-master | |
63 | ||
64 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_mandir}/man{1,5},%{_localedir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} | |
65 | ||
66 | install src/feathercoind $RPM_BUILD_ROOT%{_libdir}/%{name}/feathercoind | |
67 | sed -e 's#/usr/lib/#%{_libdir}/#g' -e 's#bitcoin#feathercoin#g' contrib/debian/bin/bitcoind > $RPM_BUILD_ROOT%{_bindir}/feathercoind | |
68 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/feathercoind | |
69 | ||
70 | install feathercoin-qt $RPM_BUILD_ROOT%{_bindir} | |
71 | sed -e 's#bitcoin#feathercoin#g' contrib/debian/bitcoin-qt.desktop > $RPM_BUILD_ROOT%{_desktopdir}/feathercoin-qt.desktop | |
72 | sed -e 's#bitcoin#feathercoin#g' contrib/debian/bitcoin-qt.protocol > $RPM_BUILD_ROOT%{_datadir}/kde4/services/feathercoin-qt.protocol | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc FeatherCoin-master/doc/*.txt FeatherCoin-master/contrib/debian/examples/bitcoin.conf | |
80 | %attr(755,root,root) %{_bindir}/feathercoind | |
81 | %dir %{_libdir}/%{name} | |
82 | %attr(755,root,root) %{_libdir}/%{name}/feathercoind | |
83 | ||
84 | %files qt | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_bindir}/feathercoin-qt | |
87 | %{_datadir}/kde4/services/feathercoin-qt.protocol | |
88 | %{_desktopdir}/feathercoin-qt.desktop |