]> git.pld-linux.org Git - packages/perl-Text-SimpleTable.git/blob - perl-Text-SimpleTable.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Text-SimpleTable.git] / perl-Text-SimpleTable.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Text
6 %define pnam    SimpleTable
7 Summary:        Text::SimpleTable - Simple Eyecandy ASCII Tables
8 Summary(pl.UTF-8):      Text::SimpleTable - proste, ładne tabele ASCII
9 Name:           perl-Text-SimpleTable
10 Version:        2.03
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  a79a1f53846c111e8f6056702c39fa17
17 URL:            http://search.cpan.org/dist/Text-SimpleTable/
18 BuildRequires:  perl-Module-Build
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Simple eyecandy ASCII tables, as seen in Catalyst.
26
27 %description -l pl.UTF-8
28 Proste, ładne tabele ASCII, takie jakie można zobaczyć w Catalyście.
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 README
55 %{perl_vendorlib}/Text/*.pm
56 %{_mandir}/man3/*
57 %{_examplesdir}/%{name}-%{version}
This page took 0.119568 seconds and 4 git commands to generate.