3 %bcond_with tests # do perform "make test"
4 # it needs imported gpg key or network connection, do disabled
7 %define pnam ProgressBar
8 %include /usr/lib/rpm/macros.perl
9 Summary: Term::ProgressBar - Perl extension to display a progress bar
10 Summary(pl.UTF-8): Term::ProgressBar - rozszerzenie Perla do wyświetlania paska postępu
11 Name: perl-Term-ProgressBar
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: e8c6a2c779440698f7fbd2b024fae0ac
19 URL: http://search.cpan.org/dist/Term-ProgressBar/
20 BuildRequires: perl-Class-MethodMaker >= 1.02
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A progress bar for things that take a while. It looks like
29 and is as long as the terminal. Linear estimation of the time left for
30 the process to run is available.
32 %description -l pl.UTF-8
33 Pasek postępu dla rzeczy trwających nieco czasu. Wygląda tak:
35 i jest takiej szerokości jak terminal. Dostępna jest liniowa estymacja
36 czasu potrzebnego na wykonanie procesu.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc BUGS Changes README
60 %{perl_vendorlib}/Term/ProgressBar.pm