%include /usr/lib/rpm/macros.perl %define pdir IO %define pnam String Summary: IO::String perl module Summary(pl): Moduł perla IO::String Name: perl-IO-String Version: 1.05 Release: 1 License: GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 221375d26c9e381a818c4bb4d1a08ec9 BuildRequires: perl-devel >= 5.6 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description IO::String module emulates the IO::File interface for in-core strings. %description -l pl Moduł perla IO::String, emulujący interfejs IO::File dla ciągów znaków. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{__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 %{perl_vendorlib}/%{pdir}/%{pnam}.pm %{_mandir}/man3/*