3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 Summary: Text::Format Perl module - various subroutines to format text
7 Summary(pl.UTF-8): Moduł Perla Text::Format - różne funkcje do formatowania tekstu
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Text/Text-Format-%{version}.tar.gz
15 # Source0-md5: e9577b0d46f527d64f954b133ea0fbcf
16 URL: http://search.cpan.org/dist/Text-Format/
17 %{?with_tests:BuildRequires: perl-Test-Simple}
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Text::Format Perl module provides various subroutines to format text.
26 %description -l pl.UTF-8
27 Moduł Perla Text::Format udostępnia różne funkcje do formatowania
31 %setup -q -n Text-Format-%{version}
34 %{__perl} Makefile.PL \
38 %{?with_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
43 %{__make} pure_install \
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_vendorlib}/Text/Format.pm
53 %{_mandir}/man3/Text::Format.3pm*