diff --git a/rtorrent.changes b/rtorrent.changes index c70497d..43f78d5 100644 --- a/rtorrent.changes +++ b/rtorrent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 4 14:21:00 UTC 2020 - Jan Engelhardt + +- Drop old specfile constructs. + ------------------------------------------------------------------- Fri Jan 24 12:13:56 UTC 2020 - Jan Engelhardt diff --git a/rtorrent.spec b/rtorrent.spec index d32bda9..37dc224 100644 --- a/rtorrent.spec +++ b/rtorrent.spec @@ -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*