# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir IO %define pnam AIO Summary: IO::AIO - Perl Asynchronous Input/Output Summary(pl.UTF-8): IO::AIO - asynchroniczne wejście/wyjście w Perlu Name: perl-IO-AIO Version: 4.31 Release: 3 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: de33075400968c2c23a861d05f92a979 URL: http://search.cpan.org/dist/IO-AIO/ BuildRequires: perl-devel >= 1:5.8.2 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-common-sense %endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module implements asynchronous I/O using whatever means your operating system supports. %description -l pl.UTF-8 Ten moduł implementuje asynchroniczne we/wy przy użyciu dowolnych metod obsługiwanych przez system operacyjny. %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} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %attr(755,root,root) %{_bindir}/treescan %{perl_vendorarch}/IO/AIO.pm %dir %{perl_vendorarch}/auto/IO/AIO %attr(755,root,root) %{perl_vendorarch}/auto/IO/AIO/AIO.so %{_mandir}/man3/IO::AIO.3pm*