3 %bcond_without tests # do not perform "make test"
6 %define pnam Autoformat
7 Summary: Text::Autoformat - automatic text wrapping and reformatting
8 Summary(pl.UTF-8): Text::Autoformat - automatyczne zawijanie i reformatowanie tekstu
9 Name: perl-Text-Autoformat
10 # add "0000" to version because there were six-digit versions in 1.6xxxxx times
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{ver}.tar.gz
17 # Source0-md5: 2c147571940dddec4974ca8cd5ddc57f
18 URL: http://search.cpan.org/dist/Text-Autoformat/
19 BuildRequires: perl-Text-Reform >= 1.11
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: perl-Text-Reform >= 1.11
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Text::Autoformat provides intelligent formatting of plaintext without
28 the need for any kind of embedded mark-up. The module recognizes
29 Internet quoting conventions, a wide range of bulleting and number
30 schemes, centred text, and block quotations, and reformats each
31 appropriately. Other options allow the user to adjust inter-word and
32 inter-paragraph spacing, justify text, and impose various
33 capitalization schemes.
35 %description -l pl.UTF-8
36 Text::Autoformat udostępnia inteligentne formatowanie czystego tekstu
37 bez potrzeby jakichkolwiek znaczników. Moduł rozpoznaje internetowe
38 konwencje cytowania, szeroki zasób wyliczeń i wiele schematów, tekst
39 centrowany, cytaty blokowe - i każdy z nich odpowiednio reformatuje.
40 Inne opcje pozwalają użytkownikowi regulować odstępy między słowami
41 i między akapitami, justować tekst i stosować różne schematy wielkości
45 %setup -q -n %{pdir}-%{pnam}-%{ver}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/Text/Autoformat.pm
67 %{perl_vendorlib}/Text/Autoformat
68 %{_mandir}/man3/Text::Autoformat.3pm*