Hello community,
here is the log from the commit of package perl-FileHandle-Unget for
openSUSE:Factory
checked in at Tue Jun 7 14:27:03 CEST 2011.
--------
--- perl-FileHandle-Unget/perl-FileHandle-Unget.changes 2010-11-29
19:54:59.000000000 +0100
+++
/mounts/work_src_done/STABLE/perl-FileHandle-Unget/perl-FileHandle-Unget.changes
2011-06-07 09:43:05.000000000 +0200
@@ -1,0 +2,10 @@
+Tue Jun 7 07:42:14 UTC 2011 - [email protected]
+
+- regenerate with cpanspec
+
+-------------------------------------------------------------------
+Tue Jun 7 06:54:04 UTC 2011 - [email protected]
+
+- Add perl_requires so that it requires the right perl version.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
FileHandle-Unget-0.1623.tar.bz2
New:
----
FileHandle-Unget-0.1623.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-FileHandle-Unget.spec ++++++
--- /var/tmp/diff_new_pack.hAGG8q/_old 2011-06-07 14:23:30.000000000 +0200
+++ /var/tmp/diff_new_pack.hAGG8q/_new 2011-06-07 14:23:30.000000000 +0200
@@ -1,7 +1,7 @@
#
-# spec file for package perl-FileHandle-Unget (Version 0.1623)
+# spec file for package perl-FileHandle-Unget
#
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,54 +15,58 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
Name: perl-FileHandle-Unget
-BuildRequires: perl perl-Weakref perl-macros
Version: 0.1623
-Release: 7
-Summary: Perl module for creating a FileHandle which supports ungetting
of multiple bytes
+Release: 12
License: GPLv2+
-Url: http://sourceforge.net/projects/fh-unget/
+%define cpan_name FileHandle-Unget
+Summary: FileHandle which supports multi-byte unget
+Url: http://search.cpan.org/dist/FileHandle-Unget/
Group: Development/Libraries/Perl
-Requires: perl-Weakref
-AutoReqProv: on
-Source: FileHandle-Unget-%{version}.tar.bz2
+Source:
http://www.cpan.org/authors/id/D/DC/DCOPPIT/%{cpan_name}-%{version}.tar.gz
+BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: perl
+BuildRequires: perl-macros
+%{perl_requires}
%description
-FileHandle::Unget is a drop-in replacement for FileHandle which 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.
+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.
-
-
-Authors:
---------
- David Coppit <[email protected]>
+NOTE: Using 'sysread()' with 'ungetc()' and other buffering functions is
+still a bad idea.
%prep
-%setup -n FileHandle-Unget-%{version} -q
+%setup -q -n %{cpan_name}-%{version}
+find . -type f -print0 | xargs -0 chmod 644
%build
-perl Makefile.PL INSTALLDIRS=site
-make %{?_smp_mflags}
-make test
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__make} %{?_smp_mflags}
+
+%check
+%{__make} test
%install
-[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install_vendor
+%perl_make_install
%perl_process_packlist
+%perl_gen_filelist
%clean
- [ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
-%files
-%defattr (-, root, root)
-%doc %{_mandir}/man?/*
-%{perl_vendorlib}/FileHandle
-%{perl_vendorarch}/auto/FileHandle
+%files -f %{name}.files
+%defattr(-,root,root,755)
+%doc CHANGES LICENSE README
%changelog
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]