3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Term::Size - Perl extension for retrieving terminal size
9 Summary(pl.UTF-8): Term::Size - rozszerzenie Perla do odczytu rozmiaru terminala
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Term/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 474438fff3f12fca88a23388cc5a7571
18 URL: http://search.cpan.org/dist/Term-Size/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Term::Size is a Perl module which provides a straightforward way to
25 retrieve the terminal size.
27 %description -l pl.UTF-8
28 Term::Size to moduł Perla dostarczający bezpośredni sposób na odczyt
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 OPTIMIZE="%{rpmcflags}"
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc Changes Copyright README
55 %{perl_vendorarch}/Term/Size.pm
56 %dir %{perl_vendorarch}/auto/Term/Size
57 %{perl_vendorarch}/auto/Term/Size/autosplit.ix
58 %attr(755,root,root) %{perl_vendorarch}/auto/Term/Size/Size.so