summaryrefslogtreecommitdiff
path: root/perl-libnet.spec
blob: 3c74cee53622ceeb0c7c8a1f21b3ee60e40dc987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#
# Conditional build:
%bcond_without	tests	# do not perform "make test"
#
%define		pdir	Net
%define		pnam	libnet
Summary:	Miscellaneous Perl networking modules
Summary(cs.UTF-8):	Modul libnet pro Perl
Summary(da.UTF-8):	Perl-modulet libnet
Summary(de.UTF-8):	libnet Perl Modul
Summary(es.UTF-8):	Módulo de Perl libnet
Summary(fr.UTF-8):	Module Perl libnet
Summary(it.UTF-8):	Modulo di Perl libnet
Summary(ja.UTF-8):	libnet Perl モジュール
Summary(ko.UTF-8):	libnet 펄 모줄
Summary(nb.UTF-8):	Perlmodul libnet
Summary(pl.UTF-8):	Różne moduły perlowe do obsługi sieci
Summary(pt.UTF-8):	Módulo de Perl libnet
Summary(pt_BR.UTF-8):	Módulo Perl libnet
Summary(ru.UTF-8):	Модуль для Perl libnet
Summary(sv.UTF-8):	libnet Perlmodul
Summary(uk.UTF-8):	Модуль для Perl libnet
Summary(zh_CN.UTF-8):	libnet Perl 模块
Name:		perl-libnet
Version:	3.14
Release:	1
Epoch:		1
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/Net/%{pnam}-%{version}.tar.gz
# Source0-md5:	4bc9d0d71f3b35c867902956773033b9
Patch0:		%{name}-Configure.patch
URL:		https://metacpan.org/release/libnet
BuildRequires:	perl-ExtUtils-MakeMaker >= 6.64
%if %{with tests}
BuildRequires:	perl-Test-Pod >= 1.00
BuildRequires:	perl-Test-Pod-Coverage >= 0.08
%endif
BuildRequires:	perl-devel >= 1:5.8.1
BuildRequires:	rpm-perlprov >= 4.1-13
BuildRequires:	rpmbuild(macros) >= 1.745
Requires:	perl(IO::Socket) >= 1.05
# Makefile.PL says so because of some Net::FTP issue (CPAN RT#100020)
#Requires:	perl-Socket >= 2.016
#Suggests:	perl-IO-Socket-IP >= 0.20 or perl-IO-Socket-INET6 >= 2.62
Suggests:	perl-IO-Socket-SSL >= 2.007
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

# Convert::EBCDIC required only on os390
# Authen::SASL and MIME::Base64 required only for SMTP AUTH
%define		_noautoreq_perl	Convert::EBCDIC Authen::SASL MIME::Base64

%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 RFCs 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

%description -l pl.UTF-8
libnet jest zestawem modułów do Perla, które udostępniają prosty i
spójny interfejs programisty (API) do obsługi po stronie klienta
różnych protokołów używanych w sieci Internet. Spis dokumentów RFC,
które są zaimplementowane w libnet:

- 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 %{pnam}-%{version}
%patch0 -p1

%build
%{__perl} Makefile.PL </dev/null \
	INSTALLDIRS=vendor
%{__make}

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Net/libnetFAQ.pod

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README Changes
%config(noreplace) %{perl_vendorlib}/Net/Config.pm
%{perl_vendorlib}/Net/Cmd.pm
%{perl_vendorlib}/Net/Domain.pm
%dir %{perl_vendorlib}/Net/FTP
%{perl_vendorlib}/Net/FTP/A.pm
%{perl_vendorlib}/Net/FTP/dataconn.pm
%{perl_vendorlib}/Net/FTP/E.pm
%{perl_vendorlib}/Net/FTP/I.pm
%{perl_vendorlib}/Net/FTP/L.pm
%{perl_vendorlib}/Net/FTP.pm
%{perl_vendorlib}/Net/libnet.cfg
%{perl_vendorlib}/Net/NNTP.pm
%{perl_vendorlib}/Net/POP3.pm
%{perl_vendorlib}/Net/Netrc.pm
%{perl_vendorlib}/Net/SMTP.pm
%{perl_vendorlib}/Net/Time.pm
%{_mandir}/man3/Net::Cmd.3pm*
%{_mandir}/man3/Net::Config.3pm*
%{_mandir}/man3/Net::Domain.3pm*
%{_mandir}/man3/Net::FTP*.3pm*
%{_mandir}/man3/Net::NNTP.3pm*
%{_mandir}/man3/Net::POP3.3pm*
%{_mandir}/man3/Net::Netrc.3pm*
%{_mandir}/man3/Net::SMTP.3pm*
%{_mandir}/man3/Net::Time.3pm*
%{_mandir}/man3/Net::libnetFAQ.3pm*