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: b363538a55eb1315951cbe022124684b
18 URL: https://metacpan.org/release/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 BuildRequires: rpmbuild(macros) >= 1.745
23 Requires: perl-Text-Reform >= 1.11
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Text::Autoformat provides intelligent formatting of plaintext without
29 the need for any kind of embedded mark-up. The module recognizes
30 Internet quoting conventions, a wide range of bulleting and number
31 schemes, centred text, and block quotations, and reformats each
32 appropriately. Other options allow the user to adjust inter-word and
33 inter-paragraph spacing, justify text, and impose various
34 capitalization schemes.
36 %description -l pl.UTF-8
37 Text::Autoformat udostępnia inteligentne formatowanie czystego tekstu
38 bez potrzeby jakichkolwiek znaczników. Moduł rozpoznaje internetowe
39 konwencje cytowania, szeroki zasób wyliczeń i wiele schematów, tekst
40 centrowany, cytaty blokowe - i każdy z nich odpowiednio reformatuje.
41 Inne opcje pozwalają użytkownikowi regulować odstępy między słowami
42 i między akapitami, justować tekst i stosować różne schematy wielkości
46 %setup -q -n %{pdir}-%{pnam}-%{ver}
49 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{perl_vendorlib}/Text/Autoformat.pm
68 %{perl_vendorlib}/Text/Autoformat
69 %{_mandir}/man3/Text::Autoformat.3pm*