From aa0e67059fc93314ea452a1018596736ed83c029035a6aaa3739dbb4d1e26e25 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 2 Jun 2015 08:12:21 +0000 Subject: [PATCH] Accepting request 309694 from network - Build as PIC so that building does not fail with recent qt5 - Move autoreconf to %prep - Enable verbose build - Use macro for systemd tmpfiles creation - Update to 0.10.2 - Correct desktop file handling scriplets and their dependencies OBS-URL: https://build.opensuse.org/request/show/309694 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bitcoin?expand=0&rev=5 --- bitcoin.changes | 14 ++++++++++++++ bitcoin.spec | 21 +++++++++++++++------ v0.10.1.tar.gz | 3 --- v0.10.2.tar.gz | 3 +++ 4 files changed, 32 insertions(+), 9 deletions(-) delete mode 100644 v0.10.1.tar.gz create mode 100644 v0.10.2.tar.gz diff --git a/bitcoin.changes b/bitcoin.changes index 05fb555..484e63f 100644 --- a/bitcoin.changes +++ b/bitcoin.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Jun 1 16:41:59 UTC 2015 - mpluskal@suse.com + +- Build as PIC so that building does not fail with recent qt5 +- Move autoreconf to %prep +- Enable verbose build +- Use macro for systemd tmpfiles creation + +------------------------------------------------------------------- +Wed May 27 07:32:16 UTC 2015 - mpluskal@suse.com + +- Update to 0.10.2 +- Correct desktop file handling scriplets and their dependencies + ------------------------------------------------------------------- Fri May 15 12:13:17 UTC 2015 - mpluskal@suse.com diff --git a/bitcoin.spec b/bitcoin.spec index 9e28f43..1581d8f 100644 --- a/bitcoin.spec +++ b/bitcoin.spec @@ -18,7 +18,7 @@ Name: bitcoin -Version: 0.10.1 +Version: 0.10.2 Release: 0 Summary: P2P Digital Currency License: MIT @@ -49,6 +49,8 @@ BuildRequires: yasm-devel BuildRequires: pkgconfig(libqrencode) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(protobuf) +Requires(post): update-desktop-files +Requires(postun): update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} ExcludeArch: ppc64 ppc @@ -127,17 +129,20 @@ This package provides automated tests for bitcoin-qt5 and bitcoind. %prep %setup -q %patch0 -p1 +autoreconf -fiv %build -autoreconf -fi +export CXXFLAGS="$CXXFLAGS %{optflags} -fPIC" +export CFLAGS="$CFLAGS %{optflags} -fPIC" %configure \ --with-cli=yes \ --with-daemon=yes \ --with-gui=qt5 \ --with-miniupnpc \ - --with-qrencode + --with-qrencode \ + --disable-hardening -make %{?_smp_mflags} +make %{?_smp_mflags} V=1 %check make %{?_smp_mflags} check @@ -169,7 +174,7 @@ rm -rf %{buildroot}%{_libdir}/libbitcoinconsensus.la %desktop_database_post %postun qt5 -%desktop_database_post +%desktop_database_postun %pre -n bitcoind getent group %{name} >/dev/null || groupadd -r %{name} @@ -178,7 +183,11 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_localstatedir}/l %post -n bitcoind %service_add_post bitcoind.service -systemd-tmpfiles --create %{_tmpfilesdir}/bitcoind.conf +%if 0%{?suse_version} <= 1320 +systemd-tmpfiles --create %{_tmpfilesdir}/bitcoind.conf >/dev/null 2>&1 || : +%else +%tmpfiles_create %{_tmpfilesdir}/bitcoind.conf +%endif %preun -n bitcoind %service_del_preun bitcoind.service diff --git a/v0.10.1.tar.gz b/v0.10.1.tar.gz deleted file mode 100644 index 3ee5ac1..0000000 --- a/v0.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d83e2872de37a17c60b7f5d86a5d9cfe2e7e706bf270ea59d7cd846d2fbf8102 -size 5049043 diff --git a/v0.10.2.tar.gz b/v0.10.2.tar.gz new file mode 100644 index 0000000..0ed628b --- /dev/null +++ b/v0.10.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48c82a35369e54b613f738adf2a3420f8a25636182d272635202a5f99bb1fb9b +size 5075202