%global pkg_name Tie-Cycle %global pkg_version 1.16 %global rpm_pkg_version 1.16 %global rpm_pkg_release 1.n0i.6 Summary: Cycle through a list of values via a scalar Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/B/BD/BDFOY/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(Test::More)} %description You use "Tie::Cycle" to go through a list over and over again. Once you get to the end of the list, you go back to the beginning. You don't have to worry about any of this since the magic of tie does that for you. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path examples/} %{__perl} -pi -e "s{ (?<=\.)3(?=\') }{\\\$(MAN3EXT)}xs" Makefile.PL %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes examples/ LICENSE README %changelog * Tue Oct 30 2007 Marius Feraru - 1.16-1.n0i.6 - version 1.16 * Tue May 22 2007 Marius Feraru - 1.15-1.n0i.5 - spec file (re)created using N0i::CPAN::RPMizer 0.1 - version 1.15 * Fri May 19 2006 Marius Feraru - 1.13-1.n0i.4 - version 1.13 * Thu Jul 28 2005 Marius Feraru 1.12-3.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:1.12-2.n0i.2 - version 1.12 * Fri Jan 28 2005 Marius Feraru 0:1.11-1.n0i.1 - version 1.11 - spec file (re?)created using N0i::CPAN::RPMizer/2004120601