|
|
|
@ -1,23 +1,19 @@
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
|
|
Name: transmission
|
|
|
|
|
Version: 2.92
|
|
|
|
|
Release: 13%{?dist}
|
|
|
|
|
Version: 2.93
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A lightweight GTK+ BitTorrent client
|
|
|
|
|
# See COPYING. This licensing situation is... special.
|
|
|
|
|
License: MIT and GPLv2
|
|
|
|
|
URL: http://www.transmissionbt.com
|
|
|
|
|
|
|
|
|
|
Source0: http://download.transmissionbt.com/files/transmission-%{version}.tar.xz
|
|
|
|
|
Source0: https://github.com/transmission/transmission-releases/raw/master/transmission-%{version}.tar.xz
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1221292
|
|
|
|
|
Source1: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/transmission-symbolic.svg
|
|
|
|
|
#Patch0: transmission-2.84-overshoot.patch
|
|
|
|
|
Patch1: transmission-libsystemd.patch
|
|
|
|
|
Patch2: transmission-fdlimits.patch
|
|
|
|
|
# https://github.com/transmission/transmission/pull/468
|
|
|
|
|
Patch3: CVE-2018-5702.patch
|
|
|
|
|
# Cherry-picked from upstream
|
|
|
|
|
Patch4: 0001-transmission-build-against-openssl-1.1.0.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: openssl-devel >= 1.1.0
|
|
|
|
|
BuildRequires: glib2-devel >= 2.32.0
|
|
|
|
@ -93,13 +89,7 @@ useradd -r -g transmission -d %{_sharedstatedir}/transmission -s /sbin/nologin \
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
#%%patch0 -p0
|
|
|
|
|
%patch1 -p0
|
|
|
|
|
%patch2 -p0
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%autosetup -p0
|
|
|
|
|
|
|
|
|
|
# fix icon location for Transmission Qt
|
|
|
|
|
sed -i 's|Icon=%{name}-qt|Icon=%{name}|g' qt/%{name}-qt.desktop
|
|
|
|
@ -117,22 +107,22 @@ CXXFLAGS="%{optflags} -fPIC"
|
|
|
|
|
%configure --disable-static --enable-utp --enable-daemon --with-systemd-daemon \
|
|
|
|
|
--enable-nls --enable-cli --enable-daemon \
|
|
|
|
|
--enable-external-natpmp
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
pushd qt
|
|
|
|
|
%{qmake_qt5} qtr.pro
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
%make_build check
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
install -m0644 daemon/transmission-daemon.service %{buildroot}%{_unitdir}/
|
|
|
|
|
mkdir -p %{buildroot}%{_sharedstatedir}/transmission
|
|
|
|
|
%make_install
|
|
|
|
|
make install INSTALL_ROOT=%{buildroot}%{_prefix} -C qt
|
|
|
|
|
%make_install INSTALL_ROOT=%{buildroot}%{_prefix} -C qt
|
|
|
|
|
|
|
|
|
|
# Install the symbolic icon
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
|
|
|
|
|