File perl-Net-BitTorrent-DHT.spec of Package perl-Net-BitTorrent-DHT

#
# spec file for package perl-Net-BitTorrent-DHT
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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:           perl-Net-BitTorrent-DHT
Version:        1.0.3
Release:        0
%define cpan_name Net-BitTorrent-DHT
Summary:        Kademlia-like DHT Node for BitTorrent
License:        Artistic-2.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Net-BitTorrent-DHT/
Source:         http://www.cpan.org/authors/id/S/SA/SANKO/%{cpan_name}-v%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(AnyEvent)
BuildRequires:  perl(AnyEvent::HTTP)
BuildRequires:  perl(AnyEvent::Util)
BuildRequires:  perl(Bit::Vector)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Module::Build::Tiny) >= 0.035
BuildRequires:  perl(Moose)
BuildRequires:  perl(Moose::Role)
BuildRequires:  perl(Moose::Util::TypeConstraints)
BuildRequires:  perl(Net::BitTorrent::Protocol) >= v1.0.2
BuildRequires:  perl(Test::Class)
BuildRequires:  perl(Test::Moose)
BuildRequires:  perl(Test::More) >= 0.98
BuildRequires:  perl(Types::Standard)
BuildRequires:  perl(feature)
#BuildRequires: perl(AnyEvent::Socket)
#BuildRequires: perl(Moose::Util)
#BuildRequires: perl(Net::BitTorrent::DHT)
#BuildRequires: perl(Net::BitTorrent::DHT::Bucket)
#BuildRequires: perl(Net::BitTorrent::DHT::Node)
#BuildRequires: perl(Net::BitTorrent::DHT::RoutingTable)
#BuildRequires: perl(Net::BitTorrent::DHT::Tracker)
#BuildRequires: perl(parent)
Requires:       perl(AnyEvent)
Requires:       perl(AnyEvent::HTTP)
Requires:       perl(AnyEvent::Util)
Requires:       perl(Bit::Vector)
Requires:       perl(Moose)
Requires:       perl(Moose::Role)
Requires:       perl(Moose::Util::TypeConstraints)
Requires:       perl(Net::BitTorrent::Protocol) >= v1.0.2
Requires:       perl(Types::Standard)
Requires:       perl(feature)
Recommends:     perl(Config::IPFilter)
%{perl_requires}

%description
Kademlia-like DHT Node for BitTorrent

%prep
%setup -q -n %{cpan_name}-v%{version}

%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}

%check
./Build test

%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes cpanfile LICENSE minil.toml README.md

%changelog
openSUSE Build Service is sponsored by