1 %include /usr/lib/rpm/macros.perl
2 Summary: IO-String perl module
3 Summary(pl): Modu³ perla IO-String
8 Group: Development/Languages/Perl
9 Group(pl): Programowanie/Jêzyki/Perl
10 Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/IO/IO-String-%{version}.tar.gz
11 BuildRequires: rpm-perlprov >= 3.0.3-16
12 BuildRequires: perl >= 5.005_03-14
14 Requires: %{perl_sitearch}
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 IO-String module provide the IO::File interface for in-core strings.
21 Modu³ perla IO-String.
24 %setup -q -n IO-String-%{version}
31 rm -rf $RPM_BUILD_ROOT
32 make install DESTDIR=$RPM_BUILD_ROOT
35 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/IO/String
36 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
37 mv .packlist.new .packlist
40 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %doc {Changes,README}.gz
50 %{perl_sitelib}/IO/String.pm
51 %{perl_sitearch}/auto/IO/String