public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/transmission] f44: Fix flatpak build
@ 2026-06-03 18:04 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-06-03 18:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/transmission
Branch : f44
Commit : 83d8244d3616b6b7d61d61cb37a1afc77a1a65a8
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-03-20T02:39:59-04:00
Stats : +3/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/transmission/c/83d8244d3616b6b7d61d61cb37a1afc77a1a65a8?branch=f44
Log:
Fix flatpak build
The buildsystem now installs the systemd service file, which is unused in
flatpaks, but does not respect %_unitdir when building into another prefix.
---
diff --git a/transmission.spec b/transmission.spec
index b9aa6a8..849d537 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -120,7 +120,7 @@ EOF
CXXFLAGS="%{optflags} -fPIC"
CFLAGS="%{optflags} -fPIC"
-%cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CLI=ON -DENABLE_QT=ON -DUSE_QT_VERSION=6 -DENABLE_GTK=ON -DUSE_GTK_VERSION=4
+%cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CLI=ON -DENABLE_QT=ON -DUSE_QT_VERSION=6 -DENABLE_GTK=ON -DUSE_GTK_VERSION=4 %{?flatpak:-DWITH_SYSTEMD=OFF}
%cmake_build
# Re-enable if DhtTest.usesBootstrapFile passes
@@ -128,8 +128,6 @@ CFLAGS="%{optflags} -fPIC"
#%%ctest
%install
-mkdir -p %{buildroot}%{_unitdir}
-install -m0644 redhat-linux-build/daemon/transmission-daemon.service %{buildroot}%{_unitdir}/
mkdir -p %{buildroot}%{_sharedstatedir}/transmission
%cmake_install
@@ -180,7 +178,9 @@ install -m0644 -D transmission.sysusers.conf %{buildroot}%{_sysusersdir}/transmi
%files daemon
%{_bindir}/transmission-daemon
+%if !0%{?flatpak}
%{_unitdir}/transmission-daemon.service
+%endif
%attr(-,transmission, transmission)%{_sharedstatedir}/transmission/
%doc %{_mandir}/man1/transmission-daemon*
%{_sysusersdir}/transmission.conf
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 18:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 18:04 [rpms/transmission] f44: Fix flatpak build Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox