Summary: A FileHandle that supports ungetting of multiple bytes Name: perl-FileHandle-Unget Version: 0.1623 Release: 6%{?dist} License: GPL+ Group: Development/Libraries Url: http://search.cpan.org/dist/FileHandle-Unget/ Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCOPPIT/FileHandle-Unget-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Scalar::Util) >= 1.14 BuildRequires: perl(Devel::Leak), perl(ExtUtils::MakeMaker), perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Provides: perl(FileHandle::Unget) = %{version} %description FileHandle::Unget is a drop-in replacement for FileHandle that allows more than one byte to be placed back on the input. It supports an ungetc(ORD), which can be called more than once in a row, and an ungets(SCALAR), which places a string of bytes back on the input. %prep %setup -q -n FileHandle-Unget-%{version} # Auto provides aren't clever enough for what FileHandle::Unget does %global provfilt /bin/sh -c "%{__perl_provides} | %{__grep} -v '^perl(FileHandle::Unget)'" %define __perl_provides %{provfilt} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' /usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null %{_fixperms} %{buildroot} %check %{__make} test %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc README CHANGES LICENSE %{perl_vendorlib}/FileHandle/ %{_mandir}/man3/FileHandle::Unget.3pm* %changelog * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1623-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.1623-5 - Rebuild to fix problems with vendorarch/lib (#661697) * Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.1623-4 - Mass rebuild with perl-5.12.0 * Fri Feb 19 2010 Paul Howarth <paul@city-fan.org> 0.1623-3 - Fix versioned provide for perl(FileHandle::Unget) - Add buildreq perl(Devel::Leak) for additional test coverage - Use %%{_fixperms} macro instead of our own %%{__chmod} incantation * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> 0.1623-2 - Rebuild against perl 5.10.1 * Tue Sep 1 2009 Paul Howarth <paul@city-fan.org> 0.1623-1 - Update to 0.1623 - fix uninitialized value warning and incorrect behaviour (CPAN RT#48528) - remove reference to obsolete ExtUtils::MakeMaker::bytes (CPAN RT#48984) * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1622-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1622-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jul 17 2008 Paul Howarth <paul@city-fan.org> 0.1622-1 - Update to 0.1622 - BuildRequire perl(Test::More) - Unget.pm permissions no longer need fixing * Thu Feb 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.1621-6 - rebuild for new perl * Mon Aug 13 2007 Paul Howarth <paul@city-fan.org> 0.1621-5 - Clarify license as GPL (unspecified version) * Wed Apr 18 2007 Paul Howarth <paul@city-fan.org> 0.1621-4 - Buildrequire perl(ExtUtils::MakeMaker) - Fix argument order for find with -depth * Tue Aug 29 2006 Paul Howarth <paul@city-fan.org> 0.1621-3 - FE6 mass rebuild * Thu Feb 16 2006 Paul Howarth <paul@city-fan.org> 0.1621-2 - Don't use macros in command paths, hardcode them instead * Wed Oct 12 2005 Paul Howarth <paul@city-fan.org> 0.1621-1 - Fedora Extras submission