2014-08-06 15:31:58 +02:00
|
|
|
#
|
|
|
|
# spec file for package rtorrent
|
|
|
|
#
|
2022-06-22 10:28:55 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-08-06 15:31:58 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: rtorrent
|
2019-07-31 14:31:15 +02:00
|
|
|
Version: 0.9.8
|
2014-08-06 15:31:58 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Console-based BitTorrent Client
|
|
|
|
License: SUSE-GPL-2.0+-with-openssl-exception
|
|
|
|
Group: Productivity/Networking/File-Sharing
|
2020-09-04 17:13:37 +02:00
|
|
|
URL: https://github.com/rakshasa/rtorrent
|
2019-07-31 14:31:15 +02:00
|
|
|
|
2019-08-16 18:16:24 +02:00
|
|
|
Source: https://github.com/rakshasa/rtorrent/releases/download/v%version/%name-%version.tar.gz
|
2014-08-06 15:31:58 +02:00
|
|
|
Source2: rtorrent.desktop
|
|
|
|
# This manpage copied from the 0.9.2 tarball as it was missing in later versions
|
|
|
|
Source3: rtorrent.1
|
2019-07-31 14:31:15 +02:00
|
|
|
Source4: rtorrent.service
|
2022-06-22 10:25:46 +02:00
|
|
|
Patch1: 0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch
|
2015-11-18 22:34:37 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
2014-08-06 15:31:58 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2015-11-18 22:34:37 +01:00
|
|
|
BuildRequires: pkgconfig(cppunit) >= 1.9.6
|
|
|
|
BuildRequires: pkgconfig(libcurl) >= 7.15.4
|
2019-07-31 14:31:15 +02:00
|
|
|
BuildRequires: pkgconfig(libtorrent) >= 0.13.8
|
2020-09-04 16:21:29 +02:00
|
|
|
BuildRequires: pkgconfig(xmlrpc)
|
2020-01-24 13:14:08 +01:00
|
|
|
Requires(pre): shadow
|
2014-08-06 15:31:58 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
rTorrent is a console-based BitTorrent client. It aims to be a
|
|
|
|
fully-featured and efficient client with the ability to run in the
|
|
|
|
background using screen. It supports fast-resume and session
|
|
|
|
management.
|
|
|
|
|
|
|
|
%prep
|
2022-06-22 10:28:55 +02:00
|
|
|
%autosetup -p1
|
2014-08-06 15:31:58 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
# It's full of type pun violations
|
|
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
export CXXFLAGS="$CXXFLAGS -std=gnu++11"
|
2015-11-18 22:34:37 +01:00
|
|
|
autoreconf -fiv
|
2014-08-06 15:31:58 +02:00
|
|
|
%configure \
|
|
|
|
--with-xmlrpc-c="%_bindir/xmlrpc-c-config" \
|
|
|
|
--enable-ipv6
|
2020-09-04 16:21:29 +02:00
|
|
|
%make_build
|
2014-08-06 15:31:58 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
2019-08-16 18:16:24 +02:00
|
|
|
%make_install
|
2014-08-06 15:31:58 +02:00
|
|
|
install -Dm0644 "%{S:2}" "$b/%_datadir/applications/%name.desktop"
|
|
|
|
mkdir -p "$b/%_mandir/man1"
|
|
|
|
install -pm0644 "%{S:3}" "$b/%_mandir/man1/"
|
|
|
|
%suse_update_desktop_file -r "%name" Network P2P
|
2019-08-16 18:16:24 +02:00
|
|
|
install -Dm0644 "%{S:4}" "$b/%_unitdir/rtorrent.service"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
getent passwd rtorrent >/dev/null || useradd -r rtorrent
|
|
|
|
%service_add_pre rtorrent.service
|
2019-07-31 14:31:15 +02:00
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post rtorrent.service
|
2014-08-06 15:31:58 +02:00
|
|
|
|
2019-08-16 18:16:24 +02:00
|
|
|
%preun
|
|
|
|
%service_del_preun rtorrent.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun rtorrent.service
|
|
|
|
|
2014-08-06 15:31:58 +02:00
|
|
|
%files
|
2020-09-04 16:21:29 +02:00
|
|
|
%doc doc/rtorrent.rc
|
|
|
|
%license COPYING
|
2014-08-06 15:31:58 +02:00
|
|
|
%_bindir/rtorrent
|
|
|
|
%_datadir/applications/%name.desktop
|
|
|
|
%_mandir/man1/rtorrent.1*
|
2019-08-16 18:16:24 +02:00
|
|
|
%_unitdir/rtorrent.service
|
2014-08-06 15:31:58 +02:00
|
|
|
|
|
|
|
%changelog
|