- Drop old specfile constructs.

OBS-URL: https://build.opensuse.org/package/show/filesharing/rtorrent?expand=0&rev=5
This commit is contained in:
Jan Engelhardt 2020-09-04 14:21:29 +00:00 committed by Git OBS Bridge
parent 1d76c73990
commit 8b6168fc9e
2 changed files with 11 additions and 20 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 4 14:21:00 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Drop old specfile constructs.
-------------------------------------------------------------------
Fri Jan 24 12:13:56 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package rtorrent
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,38 +16,28 @@
#
%if 0%{?suse_version} > 1320
%bcond_without xmlrpc
%endif
Name: rtorrent
Version: 0.9.8
Release: 0
Summary: Console-based BitTorrent Client
License: SUSE-GPL-2.0+-with-openssl-exception
Group: Productivity/Networking/File-Sharing
Url: http://github.com/rakshasa/rtorrent
URL: http://github.com/rakshasa/rtorrent
Source: https://github.com/rakshasa/rtorrent/releases/download/v%version/%name-%version.tar.gz
Source2: rtorrent.desktop
# This manpage copied from the 0.9.2 tarball as it was missing in later versions
Source3: rtorrent.1
Source4: rtorrent.service
%if %{with xmlrpc}
BuildRequires: xmlrpc-c-devel
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
# not strictly needed. we only need it for the ownership of the vim data dir
BuildRequires: gzip
BuildRequires: pkgconfig(cppunit) >= 1.9.6
BuildRequires: pkgconfig(libcurl) >= 7.15.4
BuildRequires: pkgconfig(libtorrent) >= 0.13.8
BuildRequires: pkgconfig(xmlrpc)
Requires(pre): shadow
%description
@ -63,16 +53,12 @@ management.
# It's full of type pun violations
export CFLAGS="%optflags -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
%if 0%{?suse_version} >= 1220
export CXXFLAGS="$CXXFLAGS -std=gnu++11"
%endif
autoreconf -fiv
%configure \
%if %{with xmlrpc}
--with-xmlrpc-c="%_bindir/xmlrpc-c-config" \
%endif
--enable-ipv6
make %{?_smp_mflags}
%make_build
%install
b="%buildroot"
@ -97,8 +83,8 @@ getent passwd rtorrent >/dev/null || useradd -r rtorrent
%service_del_postun rtorrent.service
%files
%defattr(-,root,root)
%doc doc/rtorrent.rc COPYING
%doc doc/rtorrent.rc
%license COPYING
%_bindir/rtorrent
%_datadir/applications/%name.desktop
%_mandir/man1/rtorrent.1*