# # Conditional build: %bcond_with tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir IO %define pnam Interface Summary: IO::Interface - Perl extension to access interface information Summary(pl.UTF-8): IO::Interface - rozszerzenie Perla do dostępu do informacji o interfejsach Name: perl-IO-Interface Version: 1.05 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 0ac2e6bac4d385a01355acea8b6190cc URL: http://search.cpan.org/dist/IO-Interface/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description IO::Interface adds methods to IO::Socket objects that allows them to be used to retrieve and change information about the network interfaces on your system. In addition to the object-oriented access methods, you can use a function-oriented style. %description -l pl.UTF-8 IO::Interface dodaje do obiektów IO::Socket metody pozwalające na używanie ich do pobierania i zmiany informacji o interfejsach sieciowych w systemie. Oprócz metod zorientowanych obiektowo można używać także wywołań zorientowanych na funkce. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ CC="%{__cc}" \ OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorarch}/IO/Interface.pm %dir %{perl_vendorarch}/IO/Interface %{perl_vendorarch}/IO/Interface/Simple.pm %dir %{perl_vendorarch}/auto/IO/Interface %attr(755,root,root) %{perl_vendorarch}/auto/IO/Interface/*.so %{perl_vendorarch}/auto/IO/Interface/*.bs %{perl_vendorarch}/auto/IO/Interface/autosplit.ix %{_mandir}/man3/*