3 %bcond_without tests # do not perform "make test"
7 Summary: Net::Interface - Perl extension to access network interfaces
8 Summary(pl.UTF-8): Net::Interface - moduł umożliwiający dostęp do interfejsów sieciowych
9 Name: perl-Net-Interface
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 339079deafeb8720c569bae51dac4a0d
17 Patch0: no-dot-in-inc.patch
18 Patch1: %{name}-iface.patch
19 URL: http://search.cpan.org/dist/Net-Interface/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Net::Interface is designed to make the use of ifconfig(1) and friends
26 unnecessary from within Perl. It provides methods to get and set all
27 the attributes of an interface, and even create new logical or
28 physical interfaces (if your O/S supports it).
30 %description -l pl.UTF-8
31 Net::Interface został zaprojektowany, aby uczynić używanie ifconfig(1)
32 i spółki z poziomu Perla niepotrzebnym. Dostarcza metody do
33 odczytywania i ustawiania wszystkich atrybutów interfejsu, a nawet
34 tworzenia nowych logicznych i fizycznych interfejsów (o ile system
35 operacyjny na to pozwala).
38 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 OPTIMIZE="%{rpmcflags}"
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorarch}/Net/Interface.pm
64 %dir %{perl_vendorarch}/auto/Net/Interface
65 %attr(755,root,root) %{perl_vendorarch}/auto/Net/Interface/Interface.so
66 %dir %{perl_vendorarch}/Net/Interface
67 %{perl_vendorarch}/Net/Interface/Developer.pm
68 %{perl_vendorarch}/Net/Interface/NetSymbols.pm