1 %include /usr/lib/rpm/macros.php
3 %define _pearname %{_class}
6 Summary: %{_pearname} - generic data paging class
7 Summary(pl): %{_pearname} - podstawowa klasa do dzielenia na strony
8 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: 5b4d51d6f955ee40e7111efe00c1d80b
16 URL: http://pear.php.net/package/Pager/
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 Obsoletes: php-pear-Pager_Sliding
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 If you have data that needs paging (ie 1-10 on page one, 11-20 on page
25 two) this class can help. Pass it an array of data and it will sort it
26 into pages, picking up the current page id from the url. It can also
27 give you back/next and page number links taking the current url and
28 adding the correct page id to it.
30 In PEAR status of this package is: %{_status}.
33 Ta klasa pomaga w sytuacji, kiedy dane wymagaj± podzia³u na strony
34 (np. pozycje 1-10 na pierwszej stronie, 11-20 na drugiej itd.). Po
35 przekazaniu tablicy danych klasa dzieli na strony, pobieraj±c
36 identyfikator strony z URL-a. Mo¿e tak¿e podaæ odno¶niki do
37 poprzedniej i nastêpnej strony, bior±c aktualny URL i dodaj±c do niego
38 w³a¶ciwe identyfikatory stron.
40 Ta klasa ma w PEAR status: %{_status}.
43 Summary: Tests for PEAR::%{_pearname}
44 Summary(pl): Testy dla PEAR::%{_pearname}
46 Requires: %{name} = %{epoch}:%{version}-%{release}
50 Tests for PEAR::%{_pearname}.
52 %description tests -l pl
53 Testy dla PEAR::%{_pearname}.
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_pear_dir}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %doc docs/%{_pearname}/*
70 %dir %{php_pear_dir}/%{_class}
71 %{php_pear_dir}/.registry/*.reg
72 %{php_pear_dir}/%{_class}/*.php
75 %defattr(644,root,root,755)
76 %{php_pear_dir}/tests/*