3 %bcond_with tests # perform "make test" (requires working $DISPLAY)
7 Summary: Tk::HistEntry Perl module - entry widget with history capability
8 Summary(pl.UTF-8): Moduł Perla Tk::HistEntry - widget wprowadzania z obsługą historii
9 Name: perl-Tk-HistEntry
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a9373d96bcc25f205ec970f6fe92c5ef
17 URL: http://search.cpan.org/dist/Tk-HistEntry/
18 BuildRequires: perl-Tk
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Tk::HistEntry defines entry widgets with history capabilities. The
26 widgets come in two flavours: HistEntry (Tk::HistEntry::Browse) with
27 associated browse entry and SimpleHistEntry (Tk::HistEntry::Simple) -
28 plain widget without browse entry. The user may browse with the Up and
29 Down keys through the history list. New history entries may be added
30 either manually by binding the Return key to historyAdd() or
31 automatically by setting the -command option.
33 %description -l pl.UTF-8
34 Klasa Tk::HistEntry definiuje podstawowe widgety do wprowadzania
35 tekstu z obsługą historii. Widgety są dostępne w dwóch rodzajach:
36 HistEntry (Tk::HistEntry::Browse) z powiązanym przeglądaniem oraz
37 SimpleHistEntry (Tk::HistEntry::Simple) bez przeglądania. Użytkownik
38 może przeglądać listę historii klawiszami Góra i Dół. Nowe elementy
39 historii mogą być dodawane ręcznie przez podpięcie klawisza Return do
40 historyAdd() lub automatycznie przez ustawienie opcji -command.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/Tk/*.pm