Files
perl-Transmission-Client/perl-Transmission-Client.spec
2025-08-12 18:18:16 +02:00

103 lines
3.1 KiB
RPMSpec

#
# spec file for package perl-Transmission-Client
#
# Copyright (c) 2024 SUSE LLC
#
# 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 cpan_name Transmission-Client
Name: perl-Transmission-Client
Version: 0.80.600
Release: 0
%define cpan_version 0.0806
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Interface to Transmission
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/O/OL/OLOF/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime) >= 0.5
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(LWP::UserAgent) >= 5.8
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Moose) >= 0.8
BuildRequires: perl(MooseX::Types) >= 0.2
BuildRequires: perl(Sub::Exporter) >= 0.95
Requires: perl(DateTime) >= 0.5
Requires: perl(JSON::MaybeXS)
Requires: perl(LWP::UserAgent) >= 5.8
Requires: perl(List::MoreUtils)
Requires: perl(Moose) >= 0.8
Requires: perl(MooseX::Types) >= 0.2
Requires: perl(Sub::Exporter) >= 0.95
Provides: perl(Transmission::AttributeRole)
Provides: perl(Transmission::Client) = %{version}
Provides: perl(Transmission::Session)
Provides: perl(Transmission::Stats)
Provides: perl(Transmission::Torrent)
Provides: perl(Transmission::Torrent::File)
Provides: perl(Transmission::Types)
Provides: perl(Transmission::Utils)
%undefine __perllib_provides
%{perl_requires}
%description
Transmission::Client is the main module in a collection of modules to
communicate with Transmission. Transmission is a cross-platform BitTorrent
client that is:
* * Easy
* * Lean
* * Native
* * Powerful
* * Free
If you want to communicate with "transmission-daemon", this is a module
which can help you with that.
The documentation is half copy/paste from the Transmission RPC spec:
https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt
This module differs from P2P::Transmission in (at least) two ways: This one
use Moose and it won't die. The latter is especially annoying in the
constructor.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc AUTHORS Changes README
%changelog