]> git.pld-linux.org Git - packages/litecoin.git/blame - litecoin.spec
- added univalue patch (fixes build with system libunivalue)
[packages/litecoin.git] / litecoin.spec
CommitLineData
d8766286 1Summary: Litecoin is a peer-to-peer currency
02fa6eee 2Summary(pl.UTF-8): Litecoin - waluta peer-to-peer
d8766286 3Name: litecoin
30603805 4Version: 0.18.1
b5b7348f 5Release: 2
02fa6eee 6License: MIT
d8766286 7Group: X11/Applications
3ec6a0cf
JB
8#Sourrce0Download: https://github.com/litecoin-project/litecoin/releases
9Source0: https://download.litecoin.org/litecoin-%{version}/src/%{name}-%{version}.tar.gz
30603805 10# Source0-md5: 67af5786635639536e78993b1fc082d0
a01bc00d 11Patch0: qt-5.15.patch
b5b7348f 12Patch1: %{name}-univalue.patch
9719e2ba 13URL: http://www.litecoin.org/
2f0e7ae9 14BuildRequires: Qt5Core-devel >= 5.4
30603805
JB
15BuildRequires: Qt5DBus-devel >= 5.4
16BuildRequires: Qt5Gui-devel >= 5.4
17BuildRequires: Qt5Network-devel >= 5.4
18BuildRequires: Qt5Widgets-devel >= 5.4
2f0e7ae9
JB
19BuildRequires: autoconf >= 2.60
20BuildRequires: automake
02fa6eee
JB
21BuildRequires: boost-devel >= 1.49
22BuildRequires: db-cxx-devel >= 4.8
23BuildRequires: gettext-tools
2f0e7ae9 24BuildRequires: libevent-devel >= 2
02fa6eee
JB
25BuildRequires: libstdc++-devel >= 6:4.7
26BuildRequires: libtool >= 2:2
2f0e7ae9 27BuildRequires: libunivalue-devel >= 1.0.4
d8766286
AM
28BuildRequires: miniupnpc-devel >= 1.5
29BuildRequires: openssl-devel
02fa6eee 30BuildRequires: pkgconfig
3ec6a0cf 31BuildRequires: python3 >= 1:3.4
02fa6eee 32BuildRequires: protobuf-devel
d8766286 33BuildRequires: qrencode-devel
2f0e7ae9
JB
34BuildRequires: qt5-linguist >= 5.4
35BuildRequires: qt5-qmake >= 5.4
02fa6eee 36BuildRequires: zeromq-devel >= 4
2f0e7ae9 37Requires: libunivalue >= 1.0.4
d8766286
AM
38Requires: perl-base
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
9719e2ba
ER
42Litecoin is a peer-to-peer currency. Peer-to-peer means that no
43central authority issues new money or tracks transactions. These tasks
44are managed collectively by the network.
d8766286 45
02fa6eee
JB
46%description -l pl.UTF-8
47Litecoin to waluta peer-to-peer. Oznacza to, że nie ma centralnej
48instytucji emitującej nowe pieniądze czy śledzącej transakcje. Zadania
49te są zarządzane kolektywnie przez sieć.
50
d8766286
AM
51%package qt
52Summary: Qt-based Litecoin Wallet
02fa6eee 53Summary(pl.UTF-8): Portfel na litecoiny oparty na Qt
d8766286 54Group: X11/Applications
02fa6eee 55Requires: %{name} = %{version}-%{release}
d8766286
AM
56
57%description qt
58Qt-based Litecoin Wallet.
59
02fa6eee
JB
60%description qt -l pl.UTF-8
61Portfel 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
74cd src/secp256k1
75%{__libtoolize}
76%{__aclocal} -I build-aux/m4
77%{__autoconf}
78%{__autoheader}
79%{__automake}
80cd ../..
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
96rm -rf $RPM_BUILD_ROOT
14f2443c 97install -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
107cat <<EOF >$RPM_BUILD_ROOT%{_desktopdir}/litecoin-qt.desktop
108[Desktop Entry]
109Encoding=UTF-8
8e1b8717 110Name=Litecoin
3ec6a0cf
JB
111Comment=Litecoin P2P Cryptocurrency
112Comment[fr]=Litecoin, monnaie virtuelle cryptographique pair à pair
113Comment[pl]=Litecoin - kryptowaluta P2P
114Comment[tr]=Litecoin, eşten eşe kriptografik sanal para birimi
115Exec=litecoin-qt %u
116Terminal=false
117Type=Application
8e1b8717
JB
118Icon=bitcoin
119MimeType=x-scheme-handler/litecoin;
3ec6a0cf
JB
120Categories=Office;Finance;
121EOF
122
123cat <<EOF >$RPM_BUILD_ROOT%{_datadir}/kde4/services/litecoin-qt.protocol
124[Protocol]
125exec=litecoin-qt '%u'
126protocol=litecoin
127input=none
128output=none
129helper=true
130listing=
131reading=false
132writing=false
133makedir=false
134deleting=false
135EOF
136
137cp -p share/pixmaps/bitcoin.ico $RPM_BUILD_ROOT%{_pixmapsdir}
138cp -p share/pixmaps/nsis-*.bmp $RPM_BUILD_ROOT%{_pixmapsdir}
d8766286
AM
139
140%clean
141rm -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*
This page took 0.110432 seconds and 4 git commands to generate.