Sisyphus repository
Last update: 21 october 2020 | SRPMs: 17714 | Visits: 19447281
en ru br
ALT Linux repos
S:3.11-alt1
5.0: 1.22-alt1
4.1: 1.22-alt1
4.0: 1.20-alt2
3.0: 1.19-alt3

Group :: Development/Perl
RPM: perl-libnet

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define dist libnet
Name: perl-%dist
Version: 1.19
Release: alt3
Epoch: 1

Summary: Collection of Network protocol modules for Perl
License: GPL or Artistic
Group: Development/Perl

URL: %CPAN %dist
Source: %dist-%version.tar.bz2

# passive FTP connections by default

Patch0: %name-1.13-alt-ftp-passive.patch
# don't look for any previous libnet installation
Patch1: %name-1.16-alt-buildreq.patch
# support for /etc/perl5
Patch2: %name-1.12-alt-deb-etc-perl5.patch
# mention <Port> argument in Net::SMTP
Patch3: %name-1.12-deb-smtp-docs.patch
# use Sys::Hostname (cpan #13208)
Patch4: %name-1.19-alt-hostname.patch
# fix precedence (deb #275142)
Patch5: %name-1.19-deb-nntp-article.patch

BuildArch: noarch
Requires: perl-base >= 1:5.8.1

# Added by buildreq2 on Sat Jun 11 2005

BuildRequires: perl-devel

%description
libnet is a collection of Perl modules which provides a simple
and consistent programming interface (API) to the client side
of various protocols used in the internet community.

The RFC implemented in this distribution are

Net::FTP RFC959 File Transfer Protocol
Net::SMTP RFC821 Simple Mail Transfer Protocol
Net::Time RFC867 Daytime Protocol
Net::Time RFC868 Time Protocol
Net::NNTP RFC977 Network News Transfer Protocol
Net::POP3 RFC1939 Post Office Protocol 3
Net::SNPP RFC1861 Simple Network Pager Protocol

%prep
%setup -q -n %dist-%version
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
%perl_vendor_build

%install
%perl_vendor_install

%__mkdir_p %buildroot%_sysconfdir/perl5/Net
%__mv %buildroot{%perl_vendor_privlib,%_sysconfdir/perl5}/Net/libnet.cfg

%files
%doc README Change* demos
%dir %_sysconfdir/perl5/Net
%config(noreplace) %_sysconfdir/perl5/Net/libnet.cfg
%dir %perl_vendor_privlib/Net
%perl_vendor_privlib/Net/*.pm
%doc %perl_vendor_privlib/Net/*.pod
%dir %perl_vendor_privlib/Net/FTP
%perl_vendor_privlib/Net/FTP/*.pm

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin