[5861] | 1 | Summary: I/O on in-core objects like strings and arrays with Perl |
---|
| 2 | Name: perl-IO-stringy |
---|
| 3 | Version: 2.110 |
---|
| 4 | Release: 2%{_dist_release} |
---|
| 5 | License: GPL+ or Artistic |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | Source0: http://search.cpan.org/CPAN/authors/id/E/ER/ERYQ/IO-stringy-%{version}.tar.gz |
---|
| 8 | URL: http://search.cpan.org/author/ERYQ/IO-stringy/ |
---|
| 9 | BuildArch: noarch |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 11 | |
---|
[5861] | 12 | BuildRequires: perl(Carp) |
---|
| 13 | BuildRequires: perl(Exporter) |
---|
| 14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 15 | BuildRequires: perl(FileHandle) |
---|
| 16 | BuildRequires: perl(IO::File) |
---|
| 17 | BuildRequires: perl(IO::Handle) |
---|
| 18 | BuildRequires: perl(IO::Scalar) |
---|
| 19 | BuildRequires: perl(IO::ScalarArray) |
---|
| 20 | BuildRequires: perl(IO::WrapTie) |
---|
| 21 | BuildRequires: perl(Symbol) |
---|
| 22 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 23 | |
---|
| 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | |
---|
| 27 | |
---|
[521] | 28 | %description |
---|
[5861] | 29 | his toolkit primarily provides modules for performing both traditional |
---|
| 30 | and object-oriented I/O) on things *other* than normal filehandles; in |
---|
| 31 | particular, IO::Scalar, IO::ScalarArray, and IO::Lines. |
---|
[521] | 32 | |
---|
[5861] | 33 | In the more-traditional IO::Handle front, we have IO::AtomicFile, which |
---|
| 34 | may be used to painlessly create files that are updated atomically. |
---|
| 35 | |
---|
| 36 | And in the "this-may-prove-useful" corner, we have IO::Wrap, whose |
---|
| 37 | exported wraphandle() function will clothe anything that's not a blessed |
---|
| 38 | object in an IO::Handle-like wrapper... so you can just use OO syntax |
---|
| 39 | and stop worrying about whether your function's caller handed you a |
---|
| 40 | string, a globref, or a FileHandle. |
---|
| 41 | |
---|
| 42 | |
---|
[521] | 43 | %prep |
---|
| 44 | %setup -q -n IO-stringy-%{version} |
---|
| 45 | |
---|
| 46 | %build |
---|
| 47 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
[5861] | 48 | make %{?_smp_mflags} |
---|
[521] | 49 | |
---|
| 50 | %install |
---|
[5861] | 51 | rm -rf %{buildroot} |
---|
| 52 | make pure_install DESTDIR=%{buildroot} |
---|
| 53 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 54 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
| 55 | %{_fixperms} %{buildroot} |
---|
[521] | 56 | |
---|
| 57 | %clean |
---|
[5861] | 58 | rm -rf %{buildroot} |
---|
[521] | 59 | |
---|
| 60 | %check |
---|
| 61 | make test |
---|
| 62 | |
---|
[5861] | 63 | %files |
---|
| 64 | %defattr(-,root,root,-) |
---|
[521] | 65 | %doc README COPYING examples contrib |
---|
[5861] | 66 | %{perl_vendorlib}/IO/ |
---|
| 67 | %{_mandir}/man3/IO::AtomicFile.3pm* |
---|
| 68 | %{_mandir}/man3/IO::InnerFile.3pm* |
---|
| 69 | %{_mandir}/man3/IO::Lines.3pm* |
---|
| 70 | %{_mandir}/man3/IO::Scalar.3pm* |
---|
| 71 | %{_mandir}/man3/IO::ScalarArray.3pm* |
---|
| 72 | %{_mandir}/man3/IO::Stringy.3pm* |
---|
| 73 | %{_mandir}/man3/IO::Wrap.3pm* |
---|
| 74 | %{_mandir}/man3/IO::WrapTie.3pm* |
---|
[521] | 75 | |
---|
| 76 | %changelog |
---|
[5861] | 77 | * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.110-2 |
---|
| 78 | - rebuilt with perl-5.12.3 |
---|
| 79 | - spec revamp |
---|
| 80 | |
---|
[521] | 81 | * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.110-1 |
---|
| 82 | - built with perl-5.10.0. |
---|
| 83 | |
---|
| 84 | * Sat Feb 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.110-0vl2 |
---|
| 85 | - changed Group to Development/Libraries |
---|
| 86 | |
---|
| 87 | * Sun Sep 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.110-0vl1 |
---|
| 88 | - updated to 2.110 |
---|
| 89 | - build with perl-5.8.6 |
---|
| 90 | |
---|
| 91 | * Wed Apr 30 2003 IWAI Masaharu <iwai@alib.jp> 2.108-0vl2 |
---|
| 92 | - build with perl-5.8.0 |
---|
| 93 | |
---|
| 94 | * Sat Nov 2 2002 IWAI Masaharu <iwai@alib.jp> 2.108-0vl1 |
---|
| 95 | - first build for Vine Linux |
---|
| 96 | |
---|