File perl-FileHandle-Unget.spec of Package perl-FileHandle-Unget

# spec file for package perl-FileHandle-Unget (Version 0.1623)
# Copyright (c) 2010 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# 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
License:        GPLv2+
Group:          Development/Libraries/Perl
Requires:       perl-Weakref
AutoReqProv:    on
Source:         FileHandle-Unget-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

    David Coppit <>

%setup -n FileHandle-Unget-%{version} -q

perl Makefile.PL INSTALLDIRS=site
make %{?_smp_mflags}
make test

[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor

 [ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%defattr (-, root, root)
%doc %{_mandir}/man?/*

openSUSE Build Service is sponsored by