From b59380faff22743ac0a7c9f4fa4ef3e1ea0ece10346d59294dd1e6bd4eeb9e30 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 18 Feb 2015 10:39:08 +0000 Subject: [PATCH] Accepting request 286400 from network 1 OBS-URL: https://build.opensuse.org/request/show/286400 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bitcoin?expand=0&rev=2 --- bitcoin.changes | 26 +++++++++++++++ bitcoin.spec | 87 +++++++++++++++++++++++++++++++++++++------------ v0.10.0.tar.gz | 3 ++ v0.9.3.tar.gz | 3 -- 4 files changed, 96 insertions(+), 23 deletions(-) create mode 100644 v0.10.0.tar.gz delete mode 100644 v0.9.3.tar.gz diff --git a/bitcoin.changes b/bitcoin.changes index 1dbebac..51aa781 100644 --- a/bitcoin.changes +++ b/bitcoin.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Mon Feb 16 13:54:56 UTC 2015 - mpluskal@suse.com + +- Update to 0.10.0: + * Faster synchronization + * new REST interface + * RPC Server “Warm-Up” Mode + * Improved signing security + * Watch-only wallet support + * Consensus library + * Standard script rules relaxed for P2SH addresses + * New tool bitcoin-tx + * Mining and relay policy enhancements + * BIP 66: strict DER encoding for signatures + * for more details see https://bitcoin.org/en/release/v0.10.0 +- New package libbitcoinconsensus +- Rename package bitcoin-cli to bitcoin-tools +- Exclude ppc and ppc64 from being built - bitcoin does not support + big endian. + +------------------------------------------------------------------- +Sat Jan 31 22:54:32 UTC 2015 - mpluskal@suse.com + +- Enable qr support +- Run tests after build + ------------------------------------------------------------------- Tue Oct 28 14:16:43 UTC 2014 - mpluskal@suse.com diff --git a/bitcoin.spec b/bitcoin.spec index c152658..39d15d6 100644 --- a/bitcoin.spec +++ b/bitcoin.spec @@ -1,7 +1,7 @@ # # spec file for package bitcoin # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2011-2014 P Rusnak # # All modifications and additions to the file contributed by third parties @@ -18,13 +18,13 @@ Name: bitcoin -Version: 0.9.3 +Version: 0.10.0 Release: 0 Summary: P2P Digital Currency License: MIT Group: Productivity/Networking/Other Url: http://www.bitcoin.org -Source: https://github.com/bitcoin/bitcoin/archive/v%{version}.tar.gz +Source: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz Source1: bitcoind.service Source2: bitcoind.firewall Source3: bitcoind.conf @@ -35,17 +35,23 @@ BuildRequires: automake BuildRequires: boost-devel BuildRequires: gcc-c++ BuildRequires: git +BuildRequires: lcov BuildRequires: libdb-4_8-devel BuildRequires: libminiupnpc-devel -BuildRequires: libopenssl-devel BuildRequires: libqt5-qtbase-devel BuildRequires: libqt5-qttools-devel -BuildRequires: protobuf-devel -BuildRequires: qrencode-devel -BuildRequires: systemd +BuildRequires: libtool +BuildRequires: pkg-config +BuildRequires: python +BuildRequires: systemd-rpm-macros BuildRequires: update-desktop-files +BuildRequires: yasm-devel +BuildRequires: pkgconfig(libqrencode) +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(protobuf) BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} +ExcludeArch: ppc64 ppc %description Bitcoin is a free open source peer-to-peer electronic cash system that is completely decentralized, without the need for a central server or trusted parties. Users hold the crypto keys to their own money and transact directly with each other, with the help of a P2P network to check for double-spending. @@ -54,10 +60,9 @@ Full transaction history is stored locally at each client. This requires several %package qt5 Summary: An end-user Qt5 GUI for the Bitcoin crypto-currency -License: MIT Group: Development/Libraries/Other -Provides: bitcoin = %{version} -Obsoletes: bitcoin < %{version} +Provides: %{name} = %{version} +Obsoletes: %{name} < %{version} %description qt5 Bitcoin is a free open source peer-to-peer electronic cash system that is completely decentralized, without the need for a central server or trusted parties. Users hold the crypto keys to their own money and transact directly with each other, with the help of a P2P network to check for double-spending. @@ -66,21 +71,40 @@ Full transaction history is stored locally at each client. This requires several This package provides Bitcoin-Qt, a GUI for Bitcoin based on Qt. -%package cli +%package utils Summary: An end-user cli for the Bitcoin crypto-currency -License: MIT +Group: Productivity/Networking/Other +Provides: %{name}-cli = %{version} +Obsoletes: %{name}-cli < %{version} -%description cli +%description utils Bitcoin is a free open source peer-to-peer electronic cash system that is completely decentralized, without the need for a central server or trusted parties. Users hold the crypto keys to their own money and transact directly with each other, with the help of a P2P network to check for double-spending. Full transaction history is stored locally at each client. This requires several GB of space, slowly growing. This package provides bitcoin-cli - CLI tool to interact with the daemon. +%package -n lib%{name}consensus0 +Summary: Bitcoin consensus library +Group: System/Library + +%description -n lib%{name}consensus0 +The purpose of this library is to make the verification functionality that is critical to Bitcoin’s consensus available to other applications, e.g. to language bindings such as python-bitcoinlib or alternative node implementations. + +%package -n lib%{name}consensus-devel +Summary: Developmont files for bitcoin consensus library +Group: Development/Languages/C and C++ +Requires: lib%{name}consensus0 = %{version} + +%description -n lib%{name}consensus-devel +The purpose of this library is to make the verification functionality that is critical to Bitcoin’s consensus available to other applications, e.g. to language bindings such as python-bitcoinlib or alternative node implementations. + +This package contains development files. + %package -n bitcoind Summary: Headless daemon for Bitcoin crypto-currency -License: MIT Group: Development/Libraries/Other +Requires(pre): shadow %description -n bitcoind Bitcoin is a free open source peer-to-peer electronic cash system that is completely decentralized, without the need for a central server or trusted parties. Users hold the crypto keys to their own money and transact directly with each other, with the help of a P2P network to check for double-spending. @@ -91,7 +115,6 @@ This package provides bitcoind, headless bitcoin daemon. %package test Summary: Automated tests for bitcoin client -License: MIT Group: Development/Libraries/Other %description test @@ -106,17 +129,21 @@ This package provides automated tests for bitcoin-qt5 and bitcoind. %patch0 -p1 %build -autoreconf -fvi +autoreconf -fi %configure \ --with-cli=yes \ --with-daemon=yes \ --with-gui=qt5 \ --with-miniupnpc \ - --disable-silent-rules + --with-qrencode + make %{?_smp_mflags} +%check +make %{?_smp_mflags} check + %install -%make_install +make DESTDIR=%{buildroot} install %{?_smp_mflags} install -D -m 0644 share/pixmaps/bitcoin256.png %{buildroot}%{_datadir}/pixmaps/%{name}.png install -D -m 0644 contrib/debian/bitcoin-qt.desktop %{buildroot}%{_datadir}/applications/%{name}-qt.desktop @@ -134,6 +161,10 @@ install -D -m 0644 $RPM_SOURCE_DIR/bitcoind.service %{buildroot}/%{_unitdir}/bit install -d -m 0755 %{buildroot}/%{_tmpfilesdir}/ install -m 0644 %{SOURCE3} %{buildroot}/%{_tmpfilesdir}/bitcoind.conf +# do not ship these +rm -rf %{buildroot}%{_libdir}/libbitcoinconsensus.a +rm -rf %{buildroot}%{_libdir}/libbitcoinconsensus.la + %post qt5 %desktop_database_post @@ -155,6 +186,10 @@ systemd-tmpfiles --create %{_tmpfilesdir}/bitcoind.conf %postun -n bitcoind %service_del_postun bitcoind.service +%post -n lib%{name}consensus0 -p /sbin/ldconfig + +%postun -n lib%{name}consensus0 -p /sbin/ldconfig + %files qt5 %defattr(-,root,root) %doc COPYING README.md @@ -163,10 +198,22 @@ systemd-tmpfiles --create %{_tmpfilesdir}/bitcoind.conf %{_mandir}/man1/bitcoin-qt.1%{?ext_man} %{_datadir}/pixmaps/%{name}.png -%files cli +%files utils %defattr(-,root,root) %doc COPYING README.md -%{_bindir}/bitcoin-cli +%{_bindir}/%{name}-cli +%{_bindir}/%{name}-tx + +%files -n lib%{name}consensus0 +%defattr(-,root,root) +%doc COPYING README.md +%{_libdir}/lib%{name}consensus.so.* + +%files -n lib%{name}consensus-devel +%defattr(-,root,root) +%doc COPYING README.md +%{_libdir}/lib%{name}consensus.so +%{_includedir}/%{name}consensus.h %files -n bitcoind %defattr(-,root,root) diff --git a/v0.10.0.tar.gz b/v0.10.0.tar.gz new file mode 100644 index 0000000..1e33de7 --- /dev/null +++ b/v0.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be57f3b0d64a797873189e45851f3b3510832e14ff18b5f563e1ba8911d145ac +size 5017915 diff --git a/v0.9.3.tar.gz b/v0.9.3.tar.gz deleted file mode 100644 index 6688160..0000000 --- a/v0.9.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ed92e8323cb4187cae015457c7c5920a5c658438f01c6c45f0ce3aabf9bd428 -size 4788997