]>
Commit | Line | Data |
---|---|---|
d8766286 | 1 | Summary: Litecoin is a peer-to-peer currency |
02fa6eee | 2 | Summary(pl.UTF-8): Litecoin - waluta peer-to-peer |
d8766286 | 3 | Name: litecoin |
30603805 | 4 | Version: 0.18.1 |
b5b7348f | 5 | Release: 2 |
02fa6eee | 6 | License: MIT |
d8766286 | 7 | Group: X11/Applications |
3ec6a0cf JB |
8 | #Sourrce0Download: https://github.com/litecoin-project/litecoin/releases |
9 | Source0: https://download.litecoin.org/litecoin-%{version}/src/%{name}-%{version}.tar.gz | |
30603805 | 10 | # Source0-md5: 67af5786635639536e78993b1fc082d0 |
a01bc00d | 11 | Patch0: qt-5.15.patch |
b5b7348f | 12 | Patch1: %{name}-univalue.patch |
9719e2ba | 13 | URL: http://www.litecoin.org/ |
2f0e7ae9 | 14 | BuildRequires: Qt5Core-devel >= 5.4 |
30603805 JB |
15 | BuildRequires: Qt5DBus-devel >= 5.4 |
16 | BuildRequires: Qt5Gui-devel >= 5.4 | |
17 | BuildRequires: Qt5Network-devel >= 5.4 | |
18 | BuildRequires: Qt5Widgets-devel >= 5.4 | |
2f0e7ae9 JB |
19 | BuildRequires: autoconf >= 2.60 |
20 | BuildRequires: automake | |
02fa6eee JB |
21 | BuildRequires: boost-devel >= 1.49 |
22 | BuildRequires: db-cxx-devel >= 4.8 | |
23 | BuildRequires: gettext-tools | |
2f0e7ae9 | 24 | BuildRequires: libevent-devel >= 2 |
02fa6eee JB |
25 | BuildRequires: libstdc++-devel >= 6:4.7 |
26 | BuildRequires: libtool >= 2:2 | |
2f0e7ae9 | 27 | BuildRequires: libunivalue-devel >= 1.0.4 |
d8766286 AM |
28 | BuildRequires: miniupnpc-devel >= 1.5 |
29 | BuildRequires: openssl-devel | |
02fa6eee | 30 | BuildRequires: pkgconfig |
3ec6a0cf | 31 | BuildRequires: python3 >= 1:3.4 |
02fa6eee | 32 | BuildRequires: protobuf-devel |
d8766286 | 33 | BuildRequires: qrencode-devel |
2f0e7ae9 JB |
34 | BuildRequires: qt5-linguist >= 5.4 |
35 | BuildRequires: qt5-qmake >= 5.4 | |
02fa6eee | 36 | BuildRequires: zeromq-devel >= 4 |
2f0e7ae9 | 37 | Requires: libunivalue >= 1.0.4 |
d8766286 AM |
38 | Requires: perl-base |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
9719e2ba ER |
42 | Litecoin is a peer-to-peer currency. Peer-to-peer means that no |
43 | central authority issues new money or tracks transactions. These tasks | |
44 | are managed collectively by the network. | |
d8766286 | 45 | |
02fa6eee JB |
46 | %description -l pl.UTF-8 |
47 | Litecoin to waluta peer-to-peer. Oznacza to, że nie ma centralnej | |
48 | instytucji emitującej nowe pieniądze czy śledzącej transakcje. Zadania | |
49 | te są zarządzane kolektywnie przez sieć. | |
50 | ||
d8766286 AM |
51 | %package qt |
52 | Summary: Qt-based Litecoin Wallet | |
02fa6eee | 53 | Summary(pl.UTF-8): Portfel na litecoiny oparty na Qt |
d8766286 | 54 | Group: X11/Applications |
02fa6eee | 55 | Requires: %{name} = %{version}-%{release} |
d8766286 AM |
56 | |
57 | %description qt | |
58 | Qt-based Litecoin Wallet. | |
59 | ||
02fa6eee JB |
60 | %description qt -l pl.UTF-8 |
61 | Portfel na litecoiny oparty na Qt. | |
62 | ||
d8766286 AM |
63 | %prep |
64 | %setup -q | |
a01bc00d | 65 | %patch0 -p1 |
b5b7348f | 66 | %patch1 -p1 |
d8766286 AM |
67 | |
68 | %build | |
02fa6eee JB |
69 | %{__libtoolize} |
70 | %{__aclocal} -I build-aux/m4 | |
71 | %{__autoconf} | |
72 | %{__autoheader} | |
73 | %{__automake} | |
2d02f65f JB |
74 | cd src/secp256k1 |
75 | %{__libtoolize} | |
76 | %{__aclocal} -I build-aux/m4 | |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
79 | %{__automake} | |
80 | cd ../.. | |
14f2443c | 81 | %configure \ |
b5b7348f JB |
82 | --disable-bench \ |
83 | --disable-gui-tests \ | |
14f2443c AM |
84 | --disable-shared \ |
85 | --disable-silent-rules \ | |
b5b7348f | 86 | --disable-tests \ |
14f2443c | 87 | --with-boost \ |
02fa6eee JB |
88 | --with-incompatible-bdb \ |
89 | --with-miniupnpc \ | |
90 | --with-qrencode \ | |
91 | --with-qtdbus \ | |
92 | --with-system-univalue | |
14f2443c | 93 | %{__make} |
d8766286 AM |
94 | |
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
14f2443c | 97 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_datadir}/kde4/services} |
d8766286 | 98 | |
14f2443c AM |
99 | %{__make} install \ |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
02fa6eee JB |
102 | # shared disabled, development packages present in bitcoin.spec and feathercoin.spec |
103 | %{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/libbitcoinconsensus.*,%{_includedir}/bitcoinconsensus.h,%{_pkgconfigdir}/libbitcoinconsensus.pc} | |
104 | ||
3ec6a0cf JB |
105 | # see contrib/rpm/bitcoin.spec |
106 | ||
107 | cat <<EOF >$RPM_BUILD_ROOT%{_desktopdir}/litecoin-qt.desktop | |
108 | [Desktop Entry] | |
109 | Encoding=UTF-8 | |
8e1b8717 | 110 | Name=Litecoin |
3ec6a0cf JB |
111 | Comment=Litecoin P2P Cryptocurrency |
112 | Comment[fr]=Litecoin, monnaie virtuelle cryptographique pair à pair | |
113 | Comment[pl]=Litecoin - kryptowaluta P2P | |
114 | Comment[tr]=Litecoin, eşten eşe kriptografik sanal para birimi | |
115 | Exec=litecoin-qt %u | |
116 | Terminal=false | |
117 | Type=Application | |
8e1b8717 JB |
118 | Icon=bitcoin |
119 | MimeType=x-scheme-handler/litecoin; | |
3ec6a0cf JB |
120 | Categories=Office;Finance; |
121 | EOF | |
122 | ||
123 | cat <<EOF >$RPM_BUILD_ROOT%{_datadir}/kde4/services/litecoin-qt.protocol | |
124 | [Protocol] | |
125 | exec=litecoin-qt '%u' | |
126 | protocol=litecoin | |
127 | input=none | |
128 | output=none | |
129 | helper=true | |
130 | listing= | |
131 | reading=false | |
132 | writing=false | |
133 | makedir=false | |
134 | deleting=false | |
135 | EOF | |
136 | ||
137 | cp -p share/pixmaps/bitcoin.ico $RPM_BUILD_ROOT%{_pixmapsdir} | |
138 | cp -p share/pixmaps/nsis-*.bmp $RPM_BUILD_ROOT%{_pixmapsdir} | |
d8766286 AM |
139 | |
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %files | |
144 | %defattr(644,root,root,755) | |
3ec6a0cf | 145 | %doc COPYING doc/{README,REST-interface,assets-attribution,benchmarking,bips,dependencies,dnsseed-policy,reduce-traffic,release-notes*,shared-libraries,tor,zmq}.md doc/release-notes |
d8766286 | 146 | %attr(755,root,root) %{_bindir}/litecoind |
14f2443c | 147 | %attr(755,root,root) %{_bindir}/litecoin-cli |
30603805 | 148 | %attr(755,root,root) %{_bindir}/litecoin-wallet |
14f2443c | 149 | %attr(755,root,root) %{_bindir}/litecoin-tx |
3ec6a0cf | 150 | %{_mandir}/man1/litecoin-cli.1* |
30603805 | 151 | %{_mandir}/man1/litecoin-wallet.1* |
3ec6a0cf JB |
152 | %{_mandir}/man1/litecoin-tx.1* |
153 | %{_mandir}/man1/litecoind.1* | |
d8766286 AM |
154 | |
155 | %files qt | |
156 | %defattr(644,root,root,755) | |
157 | %attr(755,root,root) %{_bindir}/litecoin-qt | |
158 | %{_datadir}/kde4/services/litecoin-qt.protocol | |
159 | %{_desktopdir}/litecoin-qt.desktop | |
3ec6a0cf JB |
160 | %{_pixmapsdir}/bitcoin.ico |
161 | %{_pixmapsdir}/nsis-*.bmp | |
162 | %{_mandir}/man1/litecoin-qt.1* |