%define upstream_name Devel-Autoflush %define upstream_version 0.05 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Set autoflush from the command line License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(IO::CaptureOutput) BuildRequires: perl(Test::More) BuildRequires: perl(Module::Build::Compat) BuildArch: noarch %description This module is a hack to set autoflush for STDOUT and STDERR from the command line or from 'PERL5OPT' for code that needs it but doesn't have it. This often happens when prompting: # guess.pl print "Guess a number: "; my $n = <STDIN>; %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{make} %check %{make} test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc README Changes LICENSE %{_mandir}/man3/* %perl_vendorlib/* %changelog * Tue Jan 18 2011 jquelin <jquelin> 0.50.0-1.mga1 + Revision: 22342 - cleaning spec file - imported package perl-Devel-Autoflush * Fri Dec 24 2010 Shlomi Fish <shlomif@mandriva.org> 0.50.0-1mdv2011.0 + Revision: 624622 - import perl-Devel-Autoflush