]>
Commit | Line | Data |
---|---|---|
f08bfccb JB |
1 | # |
2 | # Conditional build: | |
80628192 | 3 | %bcond_without tests # do not perform "make test" |
5fda1011 | 4 | |
017b2a2e | 5 | %define pdir Gtk |
6 | %define pnam HandyCList | |
5fda1011 | 7 | %include /usr/lib/rpm/macros.perl |
5a095754 | 8 | Summary: Gtk::HandyCList - a more Perl-friendly columned list |
af9b00ff | 9 | Summary(pl.UTF-8): Gtk::HandyCList - bardziej przyjazny Perlowi widget listy kolumnowej |
f08bfccb | 10 | Name: perl-Gtk-HandyCList |
f8429ed6 | 11 | Version: 0.03 |
f08bfccb JB |
12 | Release: 1 |
13 | License: unknown | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
f8429ed6 | 16 | # Source0-md5: d61e94a7bfede08010b75948123c0e7b |
5fda1011 | 17 | URL: http://search.cpan.org/dist/Gtk-HandyCList/ |
81180c4d | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
f08bfccb | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
f8429ed6 | 20 | %if %{with tests} |
21 | BuildRequires: perl-gnome | |
22 | %endif | |
f08bfccb JB |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
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. | |
33 | ||
d06487fd JR |
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 | |
f08bfccb JB |
40 | nazwie zamiast po numerze. |
41 | ||
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
48 | ||
49 | %{__make} | |
50 | ||
80628192 | 51 | %{?with_tests:%{__make} test} |
f08bfccb JB |
52 | |
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 Changes | |
65 | %dir %{perl_vendorlib}/Gtk | |
66 | %{perl_vendorlib}/Gtk/HandyCList.pm | |
67 | %{_mandir}/man3/* |