3 %bcond_without tests # do perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: TFTP - Pure perl TFTP implementation
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 0c62ec431f745ca177ab01df3292c803
16 BuildRequires: perl-devel >= 5.6
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This is a perl module (completely implemented in perl) to
22 provide the client functionality of the TFTP protocol as described in
23 rfc783. A class, TFTP, is available which encapsulates the persistent
24 aspects of a TFTP connection and from which the basic TFTP operations
25 (get,put) can be initiated.
29 %setup -q -n %{pdir}-%{version}
32 %{__perl} Makefile.PL \
37 %{?with_tests:make test}
40 rm -rf $RPM_BUILD_ROOT
41 make install DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %{perl_vendorlib}/TFTP.pm