1 | Name: perl-IO-String |
---|
2 | Version: 1.08 |
---|
3 | Release: 1%{?_dist_release} |
---|
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 |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | |
---|
12 | BuildArch: noarch |
---|
13 | BuildRequires: perl >= 5.6.1 |
---|
14 | Requires: perl >= 5.6.1 |
---|
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 |
---|
75 | * Tue Nov 4 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.08-1vl5 |
---|
76 | - applied new versioning policy |
---|
77 | - rebuilt with perl 5.10.0 |
---|
78 | |
---|
79 | * Sat Feb 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.08-0vl1 |
---|
80 | - new upstream release |
---|
81 | - changed Group to Development/Libraries |
---|
82 | |
---|
83 | * Sat Feb 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.08-0vl1 |
---|
84 | - new upstream release |
---|
85 | - changed Group to Development/Libraries |
---|
86 | |
---|
87 | * Sun Sep 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> |
---|
88 | - rebuilt for Vine |
---|
89 | |
---|
90 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
---|
91 | - rebuilt |
---|
92 | |
---|
93 | * Wed Nov 24 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.06-1 |
---|
94 | - Update to 1.06. |
---|
95 | |
---|
96 | * Sun Jul 04 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.05-0.fdr.1 |
---|
97 | - First build. |
---|