]>
Commit | Line | Data |
---|---|---|
e9f1b712 | 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 SimpleTable | |
8 | Summary: Text::SimpleTable - Simple Eyecandy ASCII Tables | |
a3a9a6c7 | 9 | Summary(pl.UTF-8): Text::SimpleTable - proste, ładne tabele ASCII |
e9f1b712 | 10 | Name: perl-Text-SimpleTable |
8096d92d | 11 | Version: 2.0 |
12 | Release: 1 | |
e9f1b712 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
0ec2e913 | 16 | Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz |
8096d92d | 17 | # Source0-md5: b57b6e60b5ee3cd5209d4bad510d0d2d |
270a8e2f | 18 | URL: http://search.cpan.org/dist/Text-SimpleTable/ |
0ec2e913 | 19 | BuildRequires: perl-Module-Build |
e9f1b712 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Simple eyecandy ASCII tables, as seen in Catalyst. | |
27 | ||
0e3e76c8 JR |
28 | %description -l pl.UTF-8 |
29 | Proste, ładne tabele ASCII, takie jakie można zobaczyć w Catalyście. | |
e9f1b712 | 30 | |
31 | %prep | |
32 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
33 | ||
34 | %build | |
8096d92d | 35 | %{__perl} Makefile.PL \ |
36 | INSTALLDIRS=vendor | |
37 | %{__make} | |
e9f1b712 | 38 | |
8096d92d | 39 | %{?with_tests:%{__make} test} |
e9f1b712 | 40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
8096d92d | 44 | %{__make} install \ |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
48 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
e9f1b712 | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc Changes README | |
56 | %{perl_vendorlib}/Text/*.pm | |
57 | %{_mandir}/man3/* | |
8096d92d | 58 | %{_examplesdir}/%{name}-%{version} |