README.md

bitcoin-core

The bitcoin-core package.

Preparing a new update

Perform the following steps to prepare the update to a new version. The sample commands below are performed with version 25.0.

Generic package update steps:

$ rm -f bitcoin-core-*.tar.gz SHA256SUMS*

$ rpmdev-bumpspec -D -c "Update to 25.0." -n 25.0 bitcoin-core.spec

$ spectool -g bitcoin-core.spec
Downloading: https://bitcoincore.org/bin/bitcoin-core-25.0/bitcoin-25.0.tar.gz
100% of  10.9 MiB |#######################################################| Elapsed Time: 0:00:01 Time:  0:00:01
Downloaded: bitcoin-25.0.tar.gz
Downloading: https://bitcoincore.org/bin/bitcoin-core-25.0/SHA256SUMS.asc
100% of  10.3 KiB |#######################################################| Elapsed Time: 0:00:00 Time:  0:00:00
Downloaded: SHA256SUMS.asc
Downloading: https://bitcoincore.org/bin/bitcoin-core-25.0/SHA256SUMS
100% of   2.8 KiB |#######################################################| Elapsed Time: 0:00:00 Time:  0:00:00
Downloaded: SHA256SUMS
Downloading: https://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
File '/home/slaanesh/workspace/fedora/bitcoin-core/db-4.8.30.NC.tar.gz' already present.

When uploading sources, make sure the DB tarball is included even if it has not changed as otherwise will not be available in the Koji build root:

$ fedpkg new-sources bitcoin-25.0.tar.gz SHA256SUMS SHA256SUMS.asc db-4.8.30.NC.tar.gz
File already uploaded: db-4.8.30.NC.tar.gz
Uploading: bitcoin-25.0.tar.gz
######################################################################## 100.0%
Uploading: SHA256SUMS
######################################################################## 100.0%
Uploading: SHA256SUMS.asc
######################################################################## 100.0%
Source upload succeeded. Don't forget to commit the sources file

After this, based on the list of keys that have signed the release and that are listed in SHA25SUM.asc, download the available ones and assemble an offline GPG keyring:

$ ./bitcoin-gpg.sh
Prepare official script to verify releases to work offline... done.
Creating GPG keyring with public keys that have signed release 25.0... done.

After this, it's time to commit and build:

$ git add bitcoin-core-offline-pubring.gpg
$ git commit -a -m "Update to 25.0"

$ fedpkg build --nowait