]>
Commit | Line | Data |
---|---|---|
e2111d27 | 1 | # |
0eb78c72 | 2 | # Conditional build: |
112fd73b | 3 | %bcond_with tests # do perform "make test" (disabled b/c tests get stuck on builders) |
c665454c | 4 | |
bf12bbdf | 5 | %define pdir Term |
6 | %define pnam ScreenColor | |
c665454c | 7 | %include /usr/lib/rpm/macros.perl |
9f2ee352 | 8 | Summary: Term::ScreenColor - screen positioning and coloring module for Perl |
a38cf999 | 9 | Summary(pl.UTF-8): Term::ScreenColor - moduł pozycjonowania i kolorowania ekranu dla Perla |
0eb78c72 | 10 | Name: perl-Term-ScreenColor |
a8fd5a60 | 11 | Version: 1.20 |
112fd73b | 12 | Release: 2 |
0eb78c72 | 13 | # same as perl |
ce03d1a9 | 14 | License: GPL v1+ or Artistic |
0eb78c72 MP |
15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
a8fd5a60 | 17 | # Source0-md5: a79bff3bd9ee9dbae05d54864f42bba3 |
c665454c | 18 | URL: http://search.cpan.org/dist/Term-ScreenColor/ |
e2111d27 JB |
19 | BuildRequires: perl-Term-Screen |
20 | BuildRequires: perl-devel >= 1:5.8.0 | |
0eb78c72 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
e2111d27 | 22 | BuildArch: noarch |
0eb78c72 MP |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
e2111d27 JB |
26 | Term::ScreenColor adds ANSI coloring support, along with a few other |
27 | useful methods, to the objects provided in Term::Screen. | |
28 | ||
0c698a1c JR |
29 | %description -l pl.UTF-8 |
30 | Term::ScreenColor dodaje obsługę kolorów ANSI oraz parę innych | |
31 | użytecznych metod do obiektów dostarczonych w module Term::Screen. | |
0eb78c72 MP |
32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
0eb78c72 MP |
39 | %{__make} |
40 | ||
e2111d27 | 41 | %{?with_tests:%{__make} test} |
0eb78c72 MP |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
e2111d27 JB |
45 | |
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
0eb78c72 MP |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %{perl_vendorlib}/Term/ScreenColor.pm | |
55 | %{_mandir}/man3/* |