]> git.pld-linux.org Git - packages/perl-Array-PrintCols.git/blob - perl-Array-PrintCols.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Array-PrintCols.git] / perl-Array-PrintCols.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Array
6 %define         pnam    PrintCols
7 Summary:        Array::PrintCols - print or format array elements in vertically sorted columns
8 Summary(pl.UTF-8):      Array::PrintCols - formatowanie tablicy w pionowo posortowanych kolumnach
9 Name:           perl-Array-PrintCols
10 Version:        2.1
11 Release:        4
12 License:        GPL v2+
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  b8780d4eda58c33d70c0999232c633bd
16 Patch0:         %{name}-fix.patch
17 URL:            http://search.cpan.org/dist/Array-PrintCols/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Array::PrintCols defines a subroutine to print arrays of elements in
25 alphabetically, vertically sorted columns. Optional arguments can be
26 given to control either the width or number of the columns, the total
27 width of the output, and the amount of indentation.
28
29 %description -l pl.UTF-8
30 Moduł Array::PrintCol definiuje funkcję do wypisywania tablic
31 elementów alfabetycznie, w pionowych posortowanych kolumnach. Można
32 przekazać opcjonalne parametry, kontrolujące szerokość lub liczbę
33 kolumn, całkowitą szerokość wyjścia oraz liczbę wcięć.
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %patch0 -p1
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %{perl_vendorlib}/%{pdir}/*.pm
58 %{_mandir}/man3/*
This page took 0.063816 seconds and 4 git commands to generate.