]>
Commit | Line | Data |
---|---|---|
45945b74 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" (requires working $DISPLAY) | |
b5b7fa19 | 4 | |
6549520e | 5 | %define pdir Tk |
6 | %define pnam TextANSIColor | |
b5b7fa19 | 7 | %include /usr/lib/rpm/macros.perl |
45945b74 | 8 | Summary: Tk::TextANSIColor - Tk::Text widget with support for ANSI color escape codes |
e0c3f5a5 | 9 | Summary(pl.UTF-8): Tk::TextANSIColor - widget Tk::Text z obsługą sekwencji kolorów ANSI |
45945b74 | 10 | Name: perl-Tk-TextANSIColor |
d676b4fd | 11 | Version: 0.16 |
45945b74 JB |
12 | Release: 1 |
13 | # same as perl | |
a6b0998c | 14 | License: GPL v1+ or Artistic |
45945b74 JB |
15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
d676b4fd | 17 | # Source0-md5: c285af9d6189baab4c8a9cc22dcc3ad0 |
b5b7fa19 | 18 | URL: http://search.cpan.org/dist/Tk-TextANSIColor/ |
45945b74 JB |
19 | BuildRequires: perl-Term-ANSIColor >= 1.00 |
20 | BuildRequires: perl-Tk | |
616c8480 | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
45945b74 JB |
22 | BuildRequires: rpm-perlprov >= 4.1-13 |
23 | Requires: perl-Term-ANSIColor >= 1.00 | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This widget extends the capabilities of the standard Tk::Text widget | |
b5b7fa19 ER |
29 | by adding support for ANSI color escape codes. When these escape codes |
30 | are detected they are replaced by equivalent tags. A read-only widget | |
31 | is also supplied. | |
45945b74 | 32 | |
d2342715 JR |
33 | %description -l pl.UTF-8 |
34 | Ten widget rozszerza możliwości standardowego widgetu Tk::Text dodając | |
35 | obsługę kodów kolorów ANSI. Jeśli te kody zostaną wykryte, są | |
36 | zastępowane odpowiednimi znacznikami. Załączony jest także widget | |
45945b74 JB |
37 | tylko do odczytu. |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
d676b4fd | 43 | %{__perl} Build.PL \ |
44 | installdirs=vendor \ | |
45 | destdir=$RPM_BUILD_ROOT | |
45945b74 | 46 | |
d676b4fd | 47 | ./Build |
45945b74 | 48 | |
d676b4fd | 49 | %{?with_tests:./Build test} |
45945b74 JB |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
d676b4fd | 54 | ./Build install \ |
45945b74 JB |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc ChangeLog README | |
62 | %{perl_vendorlib}/Tk/*TextANSIColor.pm | |
63 | %{_mandir}/man3/* |