|
@@ -1,60 +1,83 @@
|
|
-Summary: I/O on in-core objects like strings and arrays with Perl
|
|
|
|
-Name: perl-IO-stringy
|
|
|
|
-Version: 2.110
|
|
|
|
-Release: 1%{_dist_release}
|
|
|
|
-License: Artistic
|
|
|
|
-Group: Development/Libraries
|
|
|
|
-Source0: http://search.cpan.org/CPAN/authors/id/E/ER/ERYQ/IO-stringy-%{version}.tar.gz
|
|
|
|
-Url: http://search.cpan.org/author/ERYQ/IO-stringy/
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
-BuildRequires: perl >= 5.004
|
|
|
|
-Requires: perl >= 5.004
|
|
|
|
-Vendor: Project Vine
|
|
|
|
-Distribution: Vine Linux
|
|
|
|
-BuildArch: noarch
|
|
|
|
|
|
+Summary: I/O on in-core objects like strings and arrays with Perl
|
|
|
|
+Name: perl-IO-stringy
|
|
|
|
+Version: 2.110
|
|
|
|
+Release: 2%{_dist_release}
|
|
|
|
+License: GPL+ or Artistic
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Source0: http://search.cpan.org/CPAN/authors/id/E/ER/ERYQ/IO-stringy-%{version}.tar.gz
|
|
|
|
+URL: http://search.cpan.org/author/ERYQ/IO-stringy/
|
|
|
|
+BuildArch: noarch
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+
|
|
|
|
+BuildRequires: perl(Carp)
|
|
|
|
+BuildRequires: perl(Exporter)
|
|
|
|
+BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
+BuildRequires: perl(FileHandle)
|
|
|
|
+BuildRequires: perl(IO::File)
|
|
|
|
+BuildRequires: perl(IO::Handle)
|
|
|
|
+BuildRequires: perl(IO::Scalar)
|
|
|
|
+BuildRequires: perl(IO::ScalarArray)
|
|
|
|
+BuildRequires: perl(IO::WrapTie)
|
|
|
|
+BuildRequires: perl(Symbol)
|
|
|
|
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
+
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
|
|
|
|
%description
|
|
%description
|
|
-This toolkit primarily provides modules for performing both traditional
|
|
|
|
-and object-oriented i/o) on things *other* than normal filehandles; in
|
|
|
|
-particular, IO::Scalar, IO::ScalarArray, and IO::Lines
|
|
|
|
|
|
+his toolkit primarily provides modules for performing both traditional
|
|
|
|
+and object-oriented I/O) on things *other* than normal filehandles; in
|
|
|
|
+particular, IO::Scalar, IO::ScalarArray, and IO::Lines.
|
|
|
|
+
|
|
|
|
+In the more-traditional IO::Handle front, we have IO::AtomicFile, which
|
|
|
|
+may be used to painlessly create files that are updated atomically.
|
|
|
|
+
|
|
|
|
+And in the "this-may-prove-useful" corner, we have IO::Wrap, whose
|
|
|
|
+exported wraphandle() function will clothe anything that's not a blessed
|
|
|
|
+object in an IO::Handle-like wrapper... so you can just use OO syntax
|
|
|
|
+and stop worrying about whether your function's caller handed you a
|
|
|
|
+string, a globref, or a FileHandle.
|
|
|
|
+
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n IO-stringy-%{version}
|
|
%setup -q -n IO-stringy-%{version}
|
|
|
|
|
|
%build
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
|
-make
|
|
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
|
|
-make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
-
|
|
|
|
-find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
|
|
|
|
-
|
|
|
|
-find $RPM_BUILD_ROOT%{_prefix} -type f -print |
|
|
|
|
- sed "s@^$RPM_BUILD_ROOT@@g" |
|
|
|
|
- grep -v ^%{_mandir} |
|
|
|
|
- grep -v perllocal.pod |
|
|
|
|
- grep -v "\.packlist" > %{name}.files
|
|
|
|
-if [ "$(cat %{name}.files)X" = "X" ] ; then
|
|
|
|
- echo "ERROR: EMPTY FILE LIST"
|
|
|
|
- exit -1
|
|
|
|
-fi
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
+make pure_install DESTDIR=%{buildroot}
|
|
|
|
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
|
|
|
|
+%{_fixperms} %{buildroot}
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%check
|
|
%check
|
|
make test
|
|
make test
|
|
|
|
|
|
-%files -f %{name}.files
|
|
|
|
-%defattr(-,root,root)
|
|
|
|
|
|
+%files
|
|
|
|
+%defattr(-,root,root,-)
|
|
%doc README COPYING examples contrib
|
|
%doc README COPYING examples contrib
|
|
-%dir %{perl_vendorlib}/IO
|
|
|
|
-%{_mandir}/man3/*
|
|
|
|
|
|
+%{perl_vendorlib}/IO/
|
|
|
|
+%{_mandir}/man3/IO::AtomicFile.3pm*
|
|
|
|
+%{_mandir}/man3/IO::InnerFile.3pm*
|
|
|
|
+%{_mandir}/man3/IO::Lines.3pm*
|
|
|
|
+%{_mandir}/man3/IO::Scalar.3pm*
|
|
|
|
+%{_mandir}/man3/IO::ScalarArray.3pm*
|
|
|
|
+%{_mandir}/man3/IO::Stringy.3pm*
|
|
|
|
+%{_mandir}/man3/IO::Wrap.3pm*
|
|
|
|
+%{_mandir}/man3/IO::WrapTie.3pm*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.110-2
|
|
|
|
+- rebuilt with perl-5.12.3
|
|
|
|
+- spec revamp
|
|
|
|
+
|
|
* Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.110-1
|
|
* Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.110-1
|
|
- built with perl-5.10.0.
|
|
- built with perl-5.10.0.
|
|
|
|
|