diff --git a/.cvsignore b/.cvsignore index e69de29..c021959 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Term-ProgressBar-2.09.tar.gz diff --git a/perl-Term-ProgressBar.spec b/perl-Term-ProgressBar.spec new file mode 100644 index 0000000..b28b8d7 --- /dev/null +++ b/perl-Term-ProgressBar.spec @@ -0,0 +1,75 @@ +# Note: The signature check for this perl dist. is disabled by default, as ir +# requires network access and would thus fail in the buildsys' mock +# environments. To build locally while enabling the test, either: +# +# rpmbuild ... --define '_with_network_tests 1' ... +# rpmbuild ... --with network_tests ... +# define _with_network_tests 1 in your ~/.rpmmacros +# +# Note that right now, the only way to run tests locally from a cvs sandbox +# "make noarch" type scenario is the third one. + +Name: perl-Term-ProgressBar +Version: 2.09 +Release: 1%{?dist} +Summary: Provide a progress meter on a standard terminal +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Term-ProgressBar/ +Source0: http://www.cpan.org/authors/id/F/FL/FLUFFY/Term-ProgressBar-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: perl(Class::MethodMaker) >= 1.02 +BuildRequires: perl(Module::Build) +BuildRequires: perl(Term::ReadKey) >= 2.14 + +%{?_with_network_tests:BuildRequires: perl(Module::Signature) } + +## cpanspec generated -- left for informational purposes... +#Requires: perl(Class::MethodMaker) >= 1.02 +#Requires: perl(Term::ReadKey) >= 2.14 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Term::ProgressBar provides a simple progress bar on the terminal, to let +the user know that something is happening, roughly how much stuff has been +done, and maybe an estimate at how long remains. + +%prep +%setup -q -n Term-ProgressBar-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf %{buildroot} + +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +# nix signature check if we're not building with network tests... +%{!?_with_network_tests: rm t/0-signature.t } + +# if we are, get rid of files not in MANIFEST +%{?_with_network_tests: rm debug*.list } + +./Build test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc BUGS Changes README examples/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Sep 16 2006 Chris Weyl 2.09-1 +- Specfile autogenerated by cpanspec 1.69.1. diff --git a/sources b/sources index e69de29..c1e98d2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +440dfd04fe51a12d314e9adf2445f04a Term-ProgressBar-2.09.tar.gz