Author: witekfl Date: Mon Mar 24 20:05:27 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - new, created by pldcpan.pl
---- Files affected: SPECS: perl-FileHandle-Unget.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-FileHandle-Unget.spec diff -u /dev/null SPECS/perl-FileHandle-Unget.spec:1.1 --- /dev/null Mon Mar 24 21:05:27 2008 +++ SPECS/perl-FileHandle-Unget.spec Mon Mar 24 21:05:22 2008 @@ -0,0 +1,80 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir FileHandle +%define pnam Unget +Summary: FileHandle::Unget - FileHandle which supports multi-byte unget +#Summary(pl.UTF-8): +Name: perl-FileHandle-Unget +Version: 0.1621 +Release: 1 +License: GPL v2+ +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/FileHandle/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 610a63b10ad5c9917b6f0594745bba4c +# generic URL, check or change before uncommenting +#URL: http://search.cpan.org/dist/FileHandle-Unget/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +FileHandle::Unget operates exactly the same as FileHandle, except that it +provides a version of ungetc that allows you to unget more than one character. +It also provides ungets to unget a string. + +This module is useful if the filehandle refers to a stream for which you can't +just seek() backwards. Some operating systems support multi-byte +ungetc(), but this is not guaranteed. Use this module if you want a +portable solution. In addition, on some operating systems, eof() will not be +reset if you ungetc after having read to the end of the file. + +NOTE: Using sysread() with ungetc() and other buffering functions is +still a bad idea. + + + +# %description -l pl.UTF-8 +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES README +%dir %{perl_vendorlib}/FileHandle +%{perl_vendorlib}/FileHandle/Unget.pm +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2008-03-24 20:05:22 witekfl +- new, created by pldcpan.pl + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
