| [521] | 1 | Name: perl-IO-String |
|---|
| 2 | Version: 1.08 |
|---|
| [9170] | 3 | Release: 3%{?_dist_release} |
|---|
| [521] | 4 | |
|---|
| 5 | Summary: Emulate file interface for in-core strings |
|---|
| 6 | Group: Development/Libraries |
|---|
| 7 | License: GPL or Artistic |
|---|
| 8 | URL: http://search.cpan.org/dist/IO-String/ |
|---|
| 9 | Source0: http://www.cpan.org/authors/id/G/GA/GAAS/IO-String-%{version}.tar.gz |
|---|
| [9170] | 10 | |
|---|
| [521] | 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 12 | BuildArch: noarch |
|---|
| 13 | BuildRequires: perl >= 5.6.1 |
|---|
| [9170] | 14 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
|---|
| [521] | 15 | |
|---|
| 16 | %description |
|---|
| 17 | The "IO::String" module provides the "IO::File" interface for in-core |
|---|
| 18 | strings. An "IO::String" object can be attached to a string, and |
|---|
| 19 | makes it possible to use the normal file operations for reading or |
|---|
| 20 | writing data, as well as for seeking to various locations of the |
|---|
| 21 | string. This is useful when you want to use a library module that |
|---|
| 22 | only provides an interface to file handles on data that you have in a |
|---|
| 23 | string variable. |
|---|
| 24 | |
|---|
| 25 | Note that perl-5.8 and better has built-in support for "in memory" |
|---|
| 26 | files, which are set up by passing a reference instead of a filename |
|---|
| 27 | to the open() call. The reason for using this module is that it makes |
|---|
| 28 | the code backwards compatible with older versions of Perl. |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | %prep |
|---|
| 32 | %setup -q -n IO-String-%{version} |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | %build |
|---|
| 36 | perl Makefile.PL INSTALLDIRS=vendor |
|---|
| 37 | make %{?_smp_mflags} |
|---|
| 38 | |
|---|
| 39 | %install |
|---|
| 40 | rm -rf $RPM_BUILD_ROOT |
|---|
| 41 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
|---|
| 42 | #find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
|---|
| 43 | #find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' |
|---|
| 44 | #chmod -R u+w $RPM_BUILD_ROOT/* |
|---|
| 45 | |
|---|
| 46 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
|---|
| 47 | |
|---|
| 48 | find $RPM_BUILD_ROOT/usr -type f -print | |
|---|
| 49 | sed "s@^$RPM_BUILD_ROOT@@g" | |
|---|
| 50 | grep -v %{_mandir} | |
|---|
| 51 | grep -v perllocal.pod | |
|---|
| 52 | grep -v "\.packlist" > IO-String-%{version}-filelist |
|---|
| 53 | if [ "$(cat IO-String-%{version}-filelist)X" = "X" ] ; then |
|---|
| 54 | echo "ERROR: EMPTY FILE LIST" |
|---|
| 55 | exit -1 |
|---|
| 56 | fi |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | %check || : |
|---|
| 60 | make test |
|---|
| 61 | |
|---|
| 62 | %clean |
|---|
| 63 | rm -rf $RPM_BUILD_ROOT |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | %files -f IO-String-%{version}-filelist |
|---|
| 67 | %defattr(-,root,root,-) |
|---|
| 68 | %doc Changes README |
|---|
| 69 | %dir %{perl_vendorlib}/IO/ |
|---|
| 70 | #{perl_vendorlib}/IO/* |
|---|
| 71 | %{_mandir}/man3/*.3* |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | %changelog |
|---|
| [9170] | 75 | * Sat Dec 20 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.08-3 |
|---|
| 76 | - rebuilt with perl 5.16.3 |
|---|
| 77 | |
|---|
| [3739] | 78 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.08-2 |
|---|
| 79 | - rebuilt with perl-5.12.3 |
|---|
| 80 | |
|---|
| [521] | 81 | * Tue Nov 4 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.08-1vl5 |
|---|
| 82 | - applied new versioning policy |
|---|
| 83 | - rebuilt with perl 5.10.0 |
|---|
| 84 | |
|---|
| 85 | * Sat Feb 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.08-0vl1 |
|---|
| 86 | - new upstream release |
|---|
| 87 | - changed Group to Development/Libraries |
|---|
| 88 | |
|---|
| 89 | * Sat Feb 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.08-0vl1 |
|---|
| 90 | - new upstream release |
|---|
| 91 | - changed Group to Development/Libraries |
|---|
| 92 | |
|---|
| 93 | * Sun Sep 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> |
|---|
| 94 | - rebuilt for Vine |
|---|
| 95 | |
|---|
| 96 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
|---|
| 97 | - rebuilt |
|---|
| 98 | |
|---|
| 99 | * Wed Nov 24 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.06-1 |
|---|
| 100 | - Update to 1.06. |
|---|
| 101 | |
|---|
| 102 | * Sun Jul 04 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.05-0.fdr.1 |
|---|
| 103 | - First build. |
|---|