- Enable LTO and tests for Leap
- Enable sqlite3 support for wallet - Enable asm optimizations unconditionally OBS-URL: https://build.opensuse.org/package/show/network:cryptocurrencies/bitcoin?expand=0&rev=59
This commit is contained in:
committed by
Git OBS Bridge
parent
375bc290b8
commit
5dae975051
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 14 14:16:11 UTC 2024 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Enable LTO and tests for Leap
|
||||||
|
- Enable sqlite3 support for wallet
|
||||||
|
- Enable asm optimizations unconditionally
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 7 12:00:28 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Wed Feb 7 12:00:28 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
39
bitcoin.spec
39
bitcoin.spec
@@ -23,12 +23,6 @@
|
|||||||
%define name_pretty %{base_pretty}
|
%define name_pretty %{base_pretty}
|
||||||
%define consensus 1
|
%define consensus 1
|
||||||
%define is_base 1
|
%define is_base 1
|
||||||
# Disable tests on Tumbleweed because of an hard to investigate error
|
|
||||||
%if 0%{?suse_version} > 1500
|
|
||||||
%bcond_with tests
|
|
||||||
%else
|
|
||||||
%bcond_without tests
|
|
||||||
%endif
|
|
||||||
Name: bitcoin
|
Name: bitcoin
|
||||||
Version: 26.0
|
Version: 26.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -67,7 +61,11 @@ BuildRequires: pkgconfig(libzmq)
|
|||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
BuildRequires: pkgconfig(protobuf)
|
BuildRequires: pkgconfig(protobuf)
|
||||||
BuildRequires: pkgconfig(python3)
|
BuildRequires: pkgconfig(python3)
|
||||||
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
%{?systemd_ordering}
|
%{?systemd_ordering}
|
||||||
|
%if 0%{?suse_version} < 1550
|
||||||
|
BuildRequires: gcc12-c++
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{name_pretty} is a peer-to-peer electronic cash system
|
%{name_pretty} is a peer-to-peer electronic cash system
|
||||||
@@ -180,41 +178,26 @@ This package provides automated tests for %{name}-qt5 and %{name}d.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
export CXXFLAGS="%{optflags} -fPIE -fPIC -fcommon"
|
%if 0%{?suse_version} < 1550
|
||||||
export CFLAGS="%{optflags} -fPIE -fPIC -fcommon"
|
export CXX=g++-12
|
||||||
export LDFLAGS="-pie"
|
|
||||||
|
|
||||||
# Autodetecting if assembly optimizazions for secp256k1 can be used does not
|
|
||||||
# work well on non-x86_64 architectures, like i.e. aarch64, which results in
|
|
||||||
# build errors. At the same time, x86_64 is the only architecture for which
|
|
||||||
# assembly is properly supported (ARM assembly optimizations are still
|
|
||||||
# experimental). Let's just disable asm for all the other architectures until
|
|
||||||
# that doesn't change.
|
|
||||||
%configure \
|
|
||||||
%ifarch x86_64
|
|
||||||
--with-asm=auto \
|
|
||||||
%else
|
|
||||||
--with-asm=no \
|
|
||||||
%endif
|
%endif
|
||||||
|
%configure \
|
||||||
|
--with-asm=auto \
|
||||||
--with-cli=yes \
|
--with-cli=yes \
|
||||||
--with-daemon=yes \
|
--with-daemon=yes \
|
||||||
--with-gui=qt5 \
|
--with-gui=qt5 \
|
||||||
--with-miniupnpc \
|
--with-miniupnpc \
|
||||||
--with-qrencode \
|
--with-qrencode \
|
||||||
|
--with-sqlite=yes \
|
||||||
|
--enable-lto \
|
||||||
%if %{consensus} == 0
|
%if %{consensus} == 0
|
||||||
--without-libs \
|
--without-libs \
|
||||||
%endif
|
|
||||||
%if 0%{without tests}
|
|
||||||
--disable-tests \
|
|
||||||
--disable-bench \
|
|
||||||
%endif
|
%endif
|
||||||
--disable-hardening
|
--disable-hardening
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%if 0%{with tests}
|
|
||||||
%check
|
%check
|
||||||
%make_build LC_ALL=C.UTF-8 check
|
%make_build LC_ALL=C.UTF-8 check
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
@@ -327,13 +310,11 @@ systemd-tmpfiles --create %{_tmpfilesdir}/%{name}d.conf >/dev/null 2>&1 || :
|
|||||||
%{_sbindir}/rc%{name}d
|
%{_sbindir}/rc%{name}d
|
||||||
%{_tmpfilesdir}/%{name}d.conf
|
%{_tmpfilesdir}/%{name}d.conf
|
||||||
|
|
||||||
%if 0%{with tests}
|
|
||||||
%files test
|
%files test
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc doc/README.md doc/release-notes.md
|
%doc doc/README.md doc/release-notes.md
|
||||||
%{_bindir}/test_%{name}
|
%{_bindir}/test_%{name}
|
||||||
%{_bindir}/test_%{name}-qt
|
%{_bindir}/test_%{name}-qt
|
||||||
%{_bindir}/bench_%{name}
|
%{_bindir}/bench_%{name}
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user