]> git.pld-linux.org Git - packages/perl-Tk-HistEntry.git/blob - perl-Tk-HistEntry.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Tk-HistEntry.git] / perl-Tk-HistEntry.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (requires working $DISPLAY)
4
5 %define         pdir    Tk
6 %define         pnam    HistEntry
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
10 Version:        0.43
11 Release:        1
12 # same as perl
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
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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.
32
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.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc README Changes
64 %{perl_vendorlib}/Tk/*.pm
65 %{_mandir}/man3/*
This page took 0.066206 seconds and 4 git commands to generate.