]>
Commit | Line | Data |
---|---|---|
023f636b JB |
1 | # |
2 | # Conditional build: | |
857d7135 | 3 | %bcond_with tests # perform "make test" (requires working $DISPLAY) |
e8a5b072 | 4 | |
f4720e1e | 5 | %define pdir Tk |
6 | %define pnam HistEntry | |
e8a5b072 | 7 | %include /usr/lib/rpm/macros.perl |
023f636b | 8 | Summary: Tk::HistEntry Perl module - entry widget with history capability |
950ae41c | 9 | Summary(pl.UTF-8): Moduł Perla Tk::HistEntry - widget wprowadzania z obsługą historii |
62cf48ee | 10 | Name: perl-Tk-HistEntry |
595f2c44 | 11 | Version: 0.43 |
62cf48ee | 12 | Release: 1 |
857d7135 | 13 | # same as perl |
ad708dfc | 14 | License: GPL v1+ or Artistic |
62cf48ee SZ |
15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
595f2c44 | 17 | # Source0-md5: a9373d96bcc25f205ec970f6fe92c5ef |
e8a5b072 | 18 | URL: http://search.cpan.org/dist/Tk-HistEntry/ |
62cf48ee | 19 | BuildRequires: perl-Tk |
98df9660 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
62cf48ee SZ |
21 | BuildRequires: rpm-perlprov |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
023f636b JB |
26 | Tk::HistEntry defines entry widgets with history capabilities. The |
27 | widgets come in two flavours: HistEntry (Tk::HistEntry::Browse) with | |
28 | associated browse entry and SimpleHistEntry (Tk::HistEntry::Simple) - | |
29 | plain widget without browse entry. The user may browse with the Up and | |
30 | Down keys through the history list. New history entries may be added | |
31 | either manually by binding the Return key to historyAdd() or | |
32 | automatically by setting the -command option. | |
62cf48ee | 33 | |
3b47bb5e | 34 | %description -l pl.UTF-8 |
023f636b | 35 | Klasa Tk::HistEntry definiuje podstawowe widgety do wprowadzania |
3b47bb5e JR |
36 | tekstu z obsługą historii. Widgety są dostępne w dwóch rodzajach: |
37 | HistEntry (Tk::HistEntry::Browse) z powiązanym przeglądaniem oraz | |
38 | SimpleHistEntry (Tk::HistEntry::Simple) bez przeglądania. Użytkownik | |
39 | może przeglądać listę historii klawiszami Góra i Dół. Nowe elementy | |
40 | historii mogą być dodawane ręcznie przez podpięcie klawisza Return do | |
023f636b | 41 | historyAdd() lub automatycznie przez ustawienie opcji -command. |
62cf48ee SZ |
42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
023f636b JB |
47 | %{__perl} Makefile.PL \ |
48 | INSTALLDIRS=vendor | |
62cf48ee SZ |
49 | %{__make} |
50 | ||
857d7135 | 51 | %{?with_tests:%{__make} test} |
023f636b | 52 | |
62cf48ee SZ |
53 | %install |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc README Changes | |
023f636b | 65 | %{perl_vendorlib}/Tk/*.pm |
62cf48ee | 66 | %{_mandir}/man3/* |