public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Simone Caronni <negativo17@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/bitcoin-core] epel10.2: Package the bitcoin command wrapper and its targets
Date: Fri, 30 Oct 2026 20:03:51 GMT	[thread overview]
Message-ID: <179339063140.1.14127006606791402288.rpms-bitcoin-core-b0826a61eeb0@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/bitcoin-core
            Branch : epel10.2
            Commit : b0826a61eeb0d684d07332867c6fcff8bdc24629
            Author : Simone Caronni <negativo17@gmail.com>
            Date   : 2026-10-30T21:02:07+01:00
            Stats  : +46/-14 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/bitcoin-core/c/b0826a61eeb0d684d07332867c6fcff8bdc24629?branch=epel10.2

            Log:
            Package the bitcoin command wrapper and its targets

- Move the bitcoin wrapper and its man page to -utils; -server and -desktop
  now require -utils so "bitcoin node" and "bitcoin gui" always work.
- Move bitcoin-node to -server and bitcoin-gui to -desktop.
- Add -tests subpackage with bitcoin-chainstate, test_bitcoin,
  test_bitcoin-qt and the newly enabled bench_bitcoin.
- Require bitcoin-core-selinux >= 0.3 for the wrapper and bitcoin-node
  labels.
- Document the bitcoin command in the README files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---
diff --git a/README.server.redhat b/README.server.redhat
index 310888f..77279f4 100644
--- a/README.server.redhat
+++ b/README.server.redhat
@@ -16,9 +16,14 @@ access controls, i.e. standard Unix permissions. Confining your users, and
 running no unconfined services, is strongly recommended. See the Red Hat
 Enterprise Linux SELinux Guide for further details on SELinux.
 
+The daemon is confined whether the service starts it as bitcoind, as the
+multiprocess bitcoin-node binary, or through the bitcoin wrapper (e.g.
+"bitcoin node" or "bitcoin -m node"). When using bitcoin-node with -ipcbind,
+keep the IPC socket in the data directory (default) or in /run/bitcoind.
+
 To repair incorrect SELinux contexts, run the command:
 
-    restorecon -r -v /etc/bitcoin /var/lib/bitcoin
+    restorecon -r -v /etc/bitcoin /var/lib/bitcoin /var/log/bitcoin /run/bitcoind
 
 Default Paths
 -------------

diff --git a/README.utils.redhat b/README.utils.redhat
index 136898e..80990a8 100644
--- a/README.utils.redhat
+++ b/README.utils.redhat
@@ -4,6 +4,12 @@ Using bitcoin utilities on Fedora, CentOS and Red Hat Enterprise Linux
 The bitcoin-cli and bitcoin-tx commands allow you to communicate with a running
 Bitcoin daemon on a local or remote host.
 
+The bitcoin command is a wrapper that runs the other programs through a single
+entry point, e.g. "bitcoin rpc" (bitcoin-cli -named), "bitcoin wallet"
+(bitcoin-wallet), "bitcoin tx" (bitcoin-tx), "bitcoin node" (bitcoind, requires
+bitcoin-core-server) and "bitcoin gui" (bitcoin-qt, requires
+bitcoin-core-desktop). Run "bitcoin help" for the full list of commands.
+
 Configuration
 -------------
 

diff --git a/bitcoin-core.spec b/bitcoin-core.spec
index 40e9907..4e95c0c 100644
--- a/bitcoin-core.spec
+++ b/bitcoin-core.spec
@@ -93,6 +93,7 @@ library.
 
 %package desktop
 Summary:    Peer to Peer Cryptographic Currency
+Requires:   %{name}-utils = %{version}-%{release}
 Provides:   bundled(leveldb)
 Provides:   bundled(libmultiprocess)
 Provides:   bundled(secp256k1)
@@ -127,12 +128,15 @@ with no central authority: managing transactions and issuing money are carried
 out collectively by the network.
 
 This package provides bitcoin-cli, a utility to communicate with and
-control a Bitcoin server via its RPC protocol, and bitcoin-tx, a utility
-to create custom Bitcoin transactions.
+control a Bitcoin server via its RPC protocol, bitcoin-tx, a utility
+to create custom Bitcoin transactions, bitcoin-wallet, an offline wallet tool,
+and bitcoin, a wrapper to run all of them and the node or graphical client
+through a single command (e.g. "bitcoin rpc", "bitcoin node").
 
 %package server
 Summary:    Peer-to-peer digital currency
-Requires:   (%{name}-selinux >= 0.1 if selinux-policy)
+Requires:   (%{name}-selinux >= 0.3 if selinux-policy)
+Requires:   %{name}-utils = %{version}-%{release}
 Provides:   bundled(leveldb)
 Provides:   bundled(libmultiprocess)
 Provides:   bundled(secp256k1)
@@ -150,6 +154,20 @@ Some third party wallet software will want this package to provide the actual
 If you use the graphical %{name} client then you almost certainly do not
 need this package.
 
+%package tests
+Summary:    Peer-to-peer digital currency testing and debugging tools
+Requires:   %{name}-utils = %{version}-%{release}
+
+%description tests
+Bitcoin is an experimental new digital currency that enables instant payments to
+anyone, anywhere in the world. Bitcoin uses peer-to-peer technology to operate
+with no central authority: managing transactions and issuing money are carried
+out collectively by the network.
+
+This package provides the unit test suites, the benchmark tool and the bitcoin
+kernel chainstate utility, available through the "bitcoin test", "bitcoin
+test-gui", "bitcoin bench" and "bitcoin chainstate" commands.
+
 %prep
 %autosetup -p1 -n %{project_name}-%{version}
 
@@ -166,6 +184,7 @@ cp -p %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} .
 %build
 # Bitcoin kernel library used only as part of the testing for now:
 %cmake \
+    -DBUILD_BENCH=ON \
     -DBUILD_CLI=ON \
     -DBUILD_DAEMON=ON \
     -DBUILD_GUI=ON \
@@ -228,9 +247,6 @@ mkdir -p %{buildroot}%{_localstatedir}/log/%{project_name}/
 # AppStream metadata
 install -p -m 644 -D %{SOURCE18} %{buildroot}%{_metainfodir}/%{project_name}-qt.metainfo.xml
 
-# Remove test files so that they aren't shipped. Tests have already been run.
-rm -f %{buildroot}%{_bindir}/test_*
-
 install -m0644 -D %{SOURCE11} %{buildroot}%{_sysusersdir}/%{name}.conf
 
 %check
@@ -254,13 +270,6 @@ test/functional/test_runner.py --tmpdirprefix `pwd` --extended
 %systemd_postun_with_restart %{project_name}.service
 
 %files
-%{_bindir}/%{project_name}
-%{_libexecdir}/bitcoin-chainstate
-%{_libexecdir}/bitcoin-gui
-%{_libexecdir}/bitcoin-node
-%{_libexecdir}/test_bitcoin
-%{_libexecdir}/test_bitcoin-qt
-%{_mandir}/man1/bitcoin.1*
 
 %files -n libbitcoinkernel
 %{_libdir}/lib%{project_name}kernel.so.%(echo %{version} | cut -d. -f 1)
@@ -274,6 +283,7 @@ test/functional/test_runner.py --tmpdirprefix `pwd` --extended
 %{_datadir}/applications/%{project_name}-qt.desktop
 %{_datadir}/kde4/services/%{project_name}-qt.protocol
 %{_datadir}/icons/hicolor/*/apps/%{project_name}.png
+%{_libexecdir}/%{project_name}-gui
 %{_mandir}/man1/%{project_name}-qt.1*
 %{_metainfodir}/%{project_name}-qt.metainfo.xml
 
@@ -289,15 +299,24 @@ test/functional/test_runner.py --tmpdirprefix `pwd` --extended
 %license COPYING
 %doc %{project_name}.conf.example README.utils.redhat SECURITY.md
 %doc doc/README.md
+%{_bindir}/%{project_name}
 %{_bindir}/%{project_name}-cli
 %{_bindir}/%{project_name}-tx
 %{_bindir}/%{project_name}-wallet
 %{_compldir}/%{project_name}-cli
 %{_compldir}/%{project_name}-tx
+%{_mandir}/man1/%{project_name}.1*
 %{_mandir}/man1/%{project_name}-cli.1*
 %{_mandir}/man1/%{project_name}-tx.1*
 %{_mandir}/man1/%{project_name}-wallet.1*
 
+%files tests
+%license COPYING
+%{_libexecdir}/bench_%{project_name}
+%{_libexecdir}/%{project_name}-chainstate
+%{_libexecdir}/test_%{project_name}
+%{_libexecdir}/test_%{project_name}-qt
+
 %files server
 %license COPYING
 %doc %{project_name}.conf.example README.server.redhat SECURITY.md
@@ -312,6 +331,8 @@ test/functional/test_runner.py --tmpdirprefix `pwd` --extended
 %{_compldir}/%{project_name}d
 %{_mandir}/man1/%{project_name}d.1*
 %{_sbindir}/%{project_name}d
+%{_bindir}/%{project_name}d
+%{_libexecdir}/%{project_name}-node
 %{_tmpfilesdir}/%{project_name}.conf
 %{_unitdir}/%{project_name}.service
 %{_userunitdir}/%{project_name}.service

                 reply	other threads:[~2026-10-30 20:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179339063140.1.14127006606791402288.rpms-bitcoin-core-b0826a61eeb0@fedoraproject.org \
    --to=negativo17@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox