3 %bcond_with tests # do not perform "make test"
7 Summary: IO::Interface - Perl extension to access interface information
8 Summary(pl.UTF-8): IO::Interface - rozszerzenie Perla do dostępu do informacji o interfejsach
9 Name: perl-IO-Interface
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 38c292a4d0976dd38179cfbfdca5e777
17 URL: http://search.cpan.org/dist/IO-Interface/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 IO::Interface adds methods to IO::Socket objects that allows them to
24 be used to retrieve and change information about the network
25 interfaces on your system. In addition to the object-oriented access
26 methods, you can use a function-oriented style.
28 %description -l pl.UTF-8
29 IO::Interface dodaje do obiektów IO::Socket metody pozwalające na
30 używanie ich do pobierania i zmiany informacji o interfejsach
31 sieciowych w systemie. Oprócz metod zorientowanych obiektowo można
32 używać także wywołań zorientowanych na funkce.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
43 OPTIMIZE="%{rpmcflags}"
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorarch}/IO/Interface.pm
60 %dir %{perl_vendorarch}/IO/Interface
61 %{perl_vendorarch}/IO/Interface/Simple.pm
62 %dir %{perl_vendorarch}/auto/IO/Interface
63 %attr(755,root,root) %{perl_vendorarch}/auto/IO/Interface/*.so
64 %{perl_vendorarch}/auto/IO/Interface/autosplit.ix