# # spec file for package transmission # # Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define qt6_version 6.0 %define glibmm_version 2.60.0 # Ninja has greater speed than GNU Make. And it provides better error output. %bcond_without ninja %bcond_with webui %if %{with ninja} %define __builder ninja #BuildIgnore: make %endif %if %{with webui} %define webui_opt ON %else %define webui_opt OFF %endif Name: transmission Version: 4.1.1 Release: 0 Summary: A BitTorrent client with multiple UIs License: (GPL-2.0-only OR GPL-3.0-only) AND MIT Group: Productivity/Networking/Other URL: https://www.transmissionbt.com/ Source0: https://github.com/transmission/transmission/releases/download/%{version}/%{name}-%{version}.tar.xz Source1: README.openSUSE Source98: transmission-user.conf Source99: %{name}.rpmlintrc # PATCH-FEATURE-OPENSUSE harden_transmission-daemon.service.patch Patch0: harden_transmission-daemon.service.patch BuildRequires: alts BuildRequires: cmake BuildRequires: fdupes %if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 BuildRequires: gcc13-c++ %else BuildRequires: gcc-c++ %endif BuildRequires: gettext-tools BuildRequires: libb64-devel BuildRequires: libcurl-devel >= 7.28.0 BuildRequires: libdeflate-devel BuildRequires: libevent-devel >= 2.0.0 BuildRequires: libminiupnpc-devel BuildRequires: libpsl-devel BuildRequires: pkgconfig BuildRequires: sysuser-tools BuildRequires: update-desktop-files BuildRequires: cmake(Qt6) >= %{qt6_version} BuildRequires: cmake(Qt6Core) >= %{qt6_version} BuildRequires: cmake(Qt6DBus) >= %{qt6_version} BuildRequires: cmake(Qt6Gui) >= %{qt6_version} BuildRequires: cmake(Qt6LinguistTools) >= %{qt6_version} BuildRequires: cmake(Qt6Network) >= %{qt6_version} BuildRequires: cmake(Qt6Svg) >= %{qt6_version} BuildRequires: cmake(Qt6Widgets) >= %{qt6_version} BuildRequires: pkgconfig(giomm-2.68) >= %{glibmm_version} BuildRequires: pkgconfig(glibmm-2.68) >= %{glibmm_version} BuildRequires: pkgconfig(gtkmm-4.0) >= 4.10.0 BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(zlib) >= 1.2.3 Requires: %{name}-common = %{version} Requires: alts Provides: %{name}-ui = %{version} %if %{with ninja} BuildRequires: ninja %endif %if %{with webui} BuildRequires: npm >= 8.1.307 %endif %description Transmission is a BitTorrent client. It has GTK+ and Qt GUI clients, a daemon for servers and headless use, and both can be remote controlled by HTTP and the terminal. It supports Local Peer Discovery, DHT, µTP, PEX and magnet links. %package -n system-user-transmission Summary: System user and group transmission BuildArch: noarch %sysusers_requires %description -n system-user-transmission System user for use by the transmission service %package gtk Summary: GTK client for the "transmission" BitTorrent client Group: Productivity/Networking/Other Requires: %{name}-common = %{version} Requires: alts # For canberra-gtk-play binary Requires: canberra-gtk-play Provides: %{name}-ui = %{version} %description gtk Transmission is a BitTorrent client. It has GTK+ and Qt GUI clients, a daemon for servers and headless use, and both can be remote controlled by HTTP and the terminal. It supports Local Peer Discovery, DHT, µTP, PEX and magnet links. This package contains a graphical user interface to transmission. %package qt Summary: Qt interface for the "transmission" BitTorrent client Group: Productivity/Networking/Other Requires: %{name}-common = %{version} Requires: alts Provides: %{name}-ui = %{version} %description qt Transmission is a BitTorrent client. It has GTK+ and Qt GUI clients, a daemon for servers and headless use, and both can be remote controlled by HTTP and the terminal. It supports Local Peer Discovery, DHT, µTP, PEX and magnet links. This package contains a graphical user interface to transmission. %package common Summary: Common data for the "transmission" BitTorrent client Group: Productivity/Networking/Other Requires: %{name}-ui = %{version} Requires: alts BuildArch: noarch %description common Transmission is a BitTorrent client. It has GTK+ and Qt GUI clients, a daemon for servers and headless use, and both can be remote controlled by HTTP and the terminal. It supports Local Peer Discovery, DHT, µTP, PEX and magnet links. %package daemon Summary: Daemon for the "transmission" BitTorrent client Group: Productivity/Networking/Other %{?systemd_requires} %description daemon Transmission is a BitTorrent client. It has GTK+ and Qt GUI clients, a daemon for servers and headless use, and both can be remote controlled by HTTP and the terminal. It supports Local Peer Discovery, DHT, µTP, PEX and magnet links. %lang_package -n %{name}-gtk %lang_package -n %{name}-qt %prep %autosetup -p1 # We can't just pass -DINSTALL_DOC=OFF to cmake, as this also disables the man pages sed -i 's/if(INSTALL_DOC)/if(FALSE)/' CMakeLists.txt cp %{SOURCE1} . %build # Remove cmake4 error due to not setting # min cmake version - sflees.de export CMAKE_POLICY_VERSION_MINIMUM=3.5 %if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 export CC=gcc-13 export CXX=g++-13 %endif # Turning INSTALL_DOC off breaks the package because it doesn't install # transmission.1 manpage, argh! %cmake \ -D ENABLE_CLI=ON \ -D ENABLE_GTK=ON \ -D ENABLE_QT=ON \ -D USE_QT_VERSION=6 \ -D ENABLE_WEB=%{webui_opt} %cmake_build %sysusers_generate_pre %{SOURCE98} transmission system-user-transmission.conf %install %cmake_install %find_lang %{name}-gtk %{?no_lang_C} %find_lang transmission transmission-qt.lang --with-qt --without-mo %{?no_lang_C} %suse_update_desktop_file transmission-gtk %suse_update_desktop_file transmission-qt mkdir -p %{buildroot}%{_localstatedir}/lib/transmission # fix doc rm -rf %{buildroot}%{_datadir}/doc/transmission # alternatives - create binary symlink ln -s %{_bindir}/alts %{buildroot}%{_bindir}/%{name} # alternatives - create directory mkdir -p %{buildroot}%{_datadir}/libalternatives/%{name} # alternatives - create 'cli' configuration file cat > %{buildroot}%{_datadir}/libalternatives/%{name}/5.conf < %{buildroot}%{_datadir}/libalternatives/%{name}/15.conf < %{buildroot}%{_datadir}/libalternatives/%{name}/10.conf <