]> git.pld-linux.org Git - packages/perl-Term-ProgressBar.git/blob - perl-Term-ProgressBar.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Term-ProgressBar.git] / perl-Term-ProgressBar.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # do perform "make test"
4                         # it needs imported gpg key or network connection, do disabled
5
6 %define         pdir    Term
7 %define         pnam    ProgressBar
8 Summary:        Term::ProgressBar - Perl extension to display a progress bar
9 Summary(pl.UTF-8):      Term::ProgressBar - rozszerzenie Perla do wyświetlania paska postępu
10 Name:           perl-Term-ProgressBar
11 Version:        2.10
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  e8c6a2c779440698f7fbd2b024fae0ac
18 URL:            http://search.cpan.org/dist/Term-ProgressBar/
19 BuildRequires:  perl-Class-MethodMaker >= 1.02
20 BuildRequires:  perl-devel >= 1:5.8.0
21 BuildRequires:  rpm-perlprov >= 4.1-13
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 A progress bar for things that take a while. It looks like
27  50% [=====     ]
28 and is as long as the terminal. Linear estimation of the time left for
29 the process to run is available.
30
31 %description -l pl.UTF-8
32 Pasek postępu dla rzeczy trwających nieco czasu. Wygląda tak:
33  50% [=====     ]
34 i jest takiej szerokości jak terminal. Dostępna jest liniowa estymacja
35 czasu potrzebnego na wykonanie procesu.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc BUGS Changes README
59 %{perl_vendorlib}/Term/ProgressBar.pm
60 %{_mandir}/man3/*
This page took 0.07581 seconds and 4 git commands to generate.