Package perl-Net-BitTorrent: Specfile

BuildRequires: perl-podlators
%define _unpackaged_files_terminate_build 1
#module 'Net::BitTorrent' is known to be broken in version 0.052 and below
%def_without test
# BEGIN SourceDeps(oneline):
BuildRequires: perl(Digest/SHA.pm) perl(Exporter.pm) perl(Fcntl.pm) perl(File/Spec/Functions.pm) perl(List/Util.pm) perl(Math/BigInt.pm) perl(Module/Build.pm) perl(Scalar/Util.pm) perl(Socket.pm) perl(Time/HiRes.pm) perl-devel
# END SourceDeps(oneline)
#
#   - Net::BitTorrent -
#   This spec file was automatically generated by cpan2rpm [ver: 2.028]
#   (ALT Linux revision)
#   The following arguments were used:
#       '--packager=Igor Vlasenko <viy@altlinux.ru>' http://search.cpan.org/CPAN/authors/id/S/SA/SANKO/Net-BitTorrent-0.052.tar.gz --version 0.052
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Net-BitTorrent
%define m_distro Net-BitTorrent
%define m_name Net::BitTorrent
%define m_author_id unknown
%define _enable_test 1

Name: perl-Net-BitTorrent
Version: 0.052
Release: alt4

Summary: Net-BitTorrent - Perl module

License: Artistic
Group: Development/Perl
Url: http://www.cpan.org

Packager: Igor Vlasenko <viy@altlinux.ru>

BuildArch: noarch
Source: http://search.cpan.org/CPAN/authors/id/S/SA/SANKO/%m_distro-%version.tar.gz

# mask ConfigData.pm requires
%add_findreq_skiplist perl(Module/Build.pm)

%description
None.

%package scripts
Summary: %name scripts
Group: Development/Perl
Requires: %name = %EVR

%description scripts
scripts for %name


%prep
%setup -n %m_distro-%version

%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%perl_vendor_privlib/Net/*

%files scripts
%_bindir/*
%_man1dir/*


%changelog
* Wed Aug 18 2021 Vitaly Lipatov <lav@altlinux.ru> 0.052-alt4
- drop perl(Module/Build.pm) from requires (mask ConfigData.pm require)

* Fri Jun 29 2018 Igor Vlasenko <viy@altlinux.ru> 0.052-alt3
- fixed unpackaged files

* Tue Dec 19 2017 Igor Vlasenko <viy@altlinux.ru> 0.052-alt2
- fixed build with new perl 5.26
- dusabled tests

* Thu May 31 2012 Igor Vlasenko <viy@altlinux.ru> 0.052-alt1
- initial build for ALT Linux Sisyphus