]> git.pld-linux.org Git - packages/bitcoin.git/blame - bitcoin.spec
- updated to 0.20.0
[packages/bitcoin.git] / bitcoin.spec
CommitLineData
787da45a
MK
1# TODO: Readd missing icons/*.destktop deleted from contrib/debian during 0.14.0 -> 0.14.2
2# TODO: Consider running as system-wide service (check contrib/init) with own user/group
4ffb1fcd 3Summary: Bitcoin is a peer-to-peer currency
391c9e61 4Summary(pl.UTF-8): Bitcoin - waluta peer-to-peer
4ffb1fcd 5Name: bitcoin
a015a842 6Version: 0.20.0
c31cb984 7Release: 1
391c9e61 8License: MIT
4ffb1fcd 9Group: X11/Applications
787da45a
MK
10# Source0: https://github.com/bitcoin/bitcoin/archive/v%{version}/%{name}-%{version}.tar.gz
11Source0: https://bitcoin.org/bin/bitcoin-core-%{version}/bitcoin-%{version}.tar.gz
a015a842 12# Source0-md5: 46e632b4f42a5162e6f100a01cf4ee00
c31cb984 13Patch0: qt-5.15.patch
391c9e61 14URL: http://www.bitcoin.org/
a015a842
JB
15BuildRequires: Qt5Core-devel >= 5.0
16BuildRequires: Qt5DBus-devel >= 5.0
17BuildRequires: Qt5Gui-devel >= 5.0
18BuildRequires: Qt5Network-devel >= 5.0
19BuildRequires: Qt5Widgets-devel >= 5.0
20BuildRequires: autoconf >= 2.69
21BuildRequires: automake >= 1:1.13
391c9e61
JB
22BuildRequires: boost-devel >= 1.49
23BuildRequires: db-cxx-devel >= 4.8
24BuildRequires: gettext-tools
0373c347 25BuildRequires: libevent-devel >= 2
391c9e61
JB
26# -std=c++11
27BuildRequires: libstdc++-devel >= 6:4.7
28BuildRequires: libtool >= 2:2
0373c347 29BuildRequires: libunivalue-devel >= 1.0.4
74ff7c8b 30BuildRequires: miniupnpc-devel >= 1.5
4ffb1fcd 31BuildRequires: openssl-devel
391c9e61 32BuildRequires: pkgconfig
88599e36 33BuildRequires: protobuf-devel
a015a842 34BuildRequires: python3 >= 1:3.5
cda9ff85 35BuildRequires: qrencode-devel
391c9e61 36BuildRequires: zeromq-devel >= 4
0373c347 37Requires: libunivalue >= 1.0.4
55ac9485 38Requires: perl-base
4ffb1fcd
AM
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42Bitcoin is a peer-to-peer currency. Peer-to-peer means that no central
43authority issues new money or tracks transactions. These tasks are
44managed collectively by the network.
45
391c9e61
JB
46%description -l pl.UTF-8
47Bitcoin 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
51%package devel
52Summary: Header file for bitcoinconsensus library
53Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bitcoinconsensus
54Group: Development/Libraries
55Requires: %{name} = %{version}-%{release}
56Requires: openssl-devel
57
58%description devel
59Header file for bitcoinconsensus library.
60
61%description devel -l pl.UTF-8
62Pliki nagłówkowe biblioteki bitcoinconsensus.
63
64%package static
65Summary: Static bitcoinconsensus library
66Summary(pl.UTF-8): Statyczna biblioteka bitcoinconsensus
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
69
70%description static
71Static bitcoinconsensus library.
72
73%description static -l pl.UTF-8
74Statyczna biblioteka bitcoinconsensus.
75
55ac9485
AM
76%package qt
77Summary: Qt-based Bitcoin Wallet
391c9e61 78Summary(pl.UTF-8): Portfel na bitcoiny oparty na Qt
55ac9485 79Group: X11/Applications
391c9e61 80Requires: %{name} = %{version}-%{release}
55ac9485
AM
81
82%description qt
83Qt-based Bitcoin Wallet.
84
391c9e61
JB
85%description qt -l pl.UTF-8
86Portfel na bitcoiny oparty na Qt.
87
4ffb1fcd
AM
88%prep
89%setup -q
c31cb984 90%patch0 -p1
4ffb1fcd
AM
91
92%build
391c9e61
JB
93%{__libtoolize}
94%{__aclocal} -I build-aux/m4
95%{__autoconf}
96%{__autoheader}
97%{__automake}
a015a842
JB
98cd src/secp256k1
99%{__libtoolize}
100%{__aclocal} -I build-aux/m4
101%{__autoconf}
102%{__autoheader}
103%{__automake}
104cd ../..
9aa38433 105%configure \
55ce5315 106 --disable-silent-rules \
9aa38433
AM
107 --with-boost \
108 --with-gui=qt4 \
391c9e61
JB
109 --with-incompatible-bdb \
110 --with-miniupnpc \
111 --with-qrencode \
932be74b
JB
112 --with-qtdbus \
113 --with-system-univalue
cda9ff85
AM
114
115%{__make}
4ffb1fcd 116
55ac9485 117
4ffb1fcd
AM
118%install
119rm -rf $RPM_BUILD_ROOT
91d0d556 120#install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services}
9aa38433
AM
121
122%{__make} install \
123 DESTDIR=$RPM_BUILD_ROOT
55ac9485 124
91d0d556
JB
125# obsoleted by pkg-config
126%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbitcoinconsensus.la
127
787da45a
MK
128# TODO: gone during 0.14.0 -> 0.14.2
129# cp -p contrib/debian/bitcoin-qt.desktop $RPM_BUILD_ROOT%{_desktopdir}
130# cp -p contrib/debian/bitcoin-qt.protocol $RPM_BUILD_ROOT%{_datadir}/kde4/services
131# cp -p share/pixmaps/bitcoin{32,64,128,256}.png $RPM_BUILD_ROOT%{_pixmapsdir}
55ac9485 132
4ffb1fcd
AM
133%clean
134rm -rf $RPM_BUILD_ROOT
135
391c9e61
JB
136%post -p /sbin/ldconfig
137%postun -p /sbin/ldconfig
63c5388d 138
cda9ff85 139%files
4ffb1fcd 140%defattr(644,root,root,755)
391c9e61 141%doc COPYING doc/*.txt
9aa38433 142%attr(755,root,root) %{_bindir}/bitcoin-cli
63c5388d 143%attr(755,root,root) %{_bindir}/bitcoin-tx
0373c347 144%attr(755,root,root) %{_bindir}/bitcoin-wallet
55ac9485 145%attr(755,root,root) %{_bindir}/bitcoind
391c9e61 146%attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.*.*
63c5388d 147%attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0
50662518
JR
148%{_mandir}/man1/bitcoin-cli.1*
149%{_mandir}/man1/bitcoin-tx.1*
c31cb984 150%{_mandir}/man1/bitcoin-wallet.1*
55ac9485 151%{_mandir}/man1/bitcoind.1*
55ac9485 152
391c9e61
JB
153%files devel
154%defattr(644,root,root,755)
155%attr(755,root,root) %{_libdir}/libbitcoinconsensus.so
156%{_includedir}/bitcoinconsensus.h
157%{_pkgconfigdir}/libbitcoinconsensus.pc
158
159%files static
160%defattr(644,root,root,755)
161%{_libdir}/libbitcoinconsensus.a
162
55ac9485
AM
163%files qt
164%defattr(644,root,root,755)
cda9ff85 165%attr(755,root,root) %{_bindir}/bitcoin-qt
787da45a
MK
166#%%{_datadir}/kde4/services/bitcoin-qt.protocol
167#%%{_desktopdir}/bitcoin-qt.desktop
168#%%{_pixmapsdir}/bitcoin*.png
50662518 169%{_mandir}/man1/bitcoin-qt.1*
This page took 0.058273 seconds and 4 git commands to generate.