]> git.pld-linux.org Git - packages/perl-Text-Autoformat.git/blob - perl-Text-Autoformat.spec
7f0ac67874584f5020a4977512fe668bab816c4c
[packages/perl-Text-Autoformat.git] / perl-Text-Autoformat.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Text
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
11 %define ver     1.74
12 Version:        %{ver}0000
13 Release:        1
14 License:        Artistic
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
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
34
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
42 liter.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{ver}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Changes
66 %{perl_vendorlib}/Text/Autoformat.pm
67 %{perl_vendorlib}/Text/Autoformat
68 %{_mandir}/man3/Text::Autoformat.3pm*
This page took 0.095333 seconds and 2 git commands to generate.