Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37428504
en ru br
ALT Linux repos
S:0.131-alt1

Group :: Development/Perl
RPM: perl-Array-Iterator

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define module_name Array-Iterator
# BEGIN SourceDeps(oneline):
BuildRequires: perl(ExtUtils/MakeMaker.pm) perl(Test/More.pm) perl(blib.pm) perl-devel
# END SourceDeps(oneline)
%define upstream_name    Array-Iterator
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    0.130
Release:    alt1

Summary:    A subclass of Array::Iterator to allow forwards and backwards iteration
License:    perl
Group:      Development/Perl
URL:        http://search.cpan.org/dist/Array-Iterator/
Source0:    http://www.cpan.org/authors/id/P/PE/PERLANCAR/%{module_name}-%{version}.tar.gz

BuildRequires: perl(Capture/Tiny.pm)
BuildRequires: perl(Module/Build.pm)
BuildRequires: perl(Test/Exception.pm)
BuildArch:  noarch
Source44: import.info

%description
This class provides a very simple iterator interface. It is
uni-directional and can only be used once. It provides no means of
reversing or resetting the iterator. It is not recommended to alter the
array during iteration, however no attempt is made to enforce this
(although I will if I can find an efficient means of doing so). This class
only intends to provide a clear and simple means of generic iteration,
nothing more (yet).

%prep
%setup -q -n %{module_name}-%{version}

%build
# %%{__perl} Build.PL --install_path bindoc=%_man1dir installdirs=vendor
%{__perl} Makefile.PL INSTALLMAN1DIR=%_man1dir INSTALLDIRS=vendor

# ./Build

make

%check
# ./Build test
make test

%install
# ./Build install destdir=%%{buildroot}
%makeinstall_std

%files
%doc README Changes
%perl_vendor_privlib/*


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin