]> git.pld-linux.org Git - packages/perl-Text-TabularDisplay.git/blob - perl-Text-TabularDisplay.spec
- new
[packages/perl-Text-TabularDisplay.git] / perl-Text-TabularDisplay.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Text
7 %define pnam    TabularDisplay
8 Summary:        Text::TabularDisplay - Display text in formatted table output
9 #Summary(pl):   
10 Name:           perl-Text-TabularDisplay
11 Version:        1.20
12 Release:        1
13 License:        GPL v2
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  045a7a8042bb3f8da5b81c909f036b0e
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Text::TabularDisplay simplifies displaying textual data in a table.
24 The output is identical to the columnar display of query results in
25 the mysql text monitor.
26
27 # %description -l pl
28 # TODO
29
30 %prep
31 %setup -q -n %{pdir}-%{pnam}-%{version}
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36 %{__make}
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes
55 %{perl_vendorlib}/Text/*.pm
56 %{_mandir}/man3/*
57 %{_examplesdir}/%{name}-%{version}
This page took 0.083153 seconds and 4 git commands to generate.