3 %bcond_without tests # do not perform "make test"
6 %define pnam HandyCList
7 %include /usr/lib/rpm/macros.perl
8 Summary: Gtk::HandyCList - a more Perl-friendly columned list
9 Summary(pl.UTF-8): Gtk::HandyCList - bardziej przyjazny Perlowi widget listy kolumnowej
10 Name: perl-Gtk-HandyCList
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: d61e94a7bfede08010b75948123c0e7b
17 URL: http://search.cpan.org/dist/Gtk-HandyCList/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-gnome
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This is a version of Gtk::CList which takes care of some common things
28 for the programmer. For instance, it keeps track of what's stored in
29 the list, so you don't need to keep a separate array; when the column
30 titles are clicked, the list will be re-sorted according to
31 user-supplied functions or some default rules. It allows you to
32 reference columns by name, instead of by number.
34 %description -l pl.UTF-8
35 To jest wersja Gtk::Clist dbająca za programistę o parę powszechnych
36 zachowań. Na przykład śledzi co jest zapisane w liście, więc nie
37 trzeba przechowywać oddzielnej tablicy; po kliknięciu na tytuły lista
38 zostanie przesortowana zgodnie z podanymi funkcjami lub jakimiś
39 domyślnymi regułami. Widget pozwala na odwoływanie się do kolumn po
40 nazwie zamiast po numerze.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %dir %{perl_vendorlib}/Gtk
66 %{perl_vendorlib}/Gtk/HandyCList.pm