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}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 6be585b1d4bf9e464658a63950c5c404
15 URL: http://pear.php.net/package/Pager/
16 BuildRequires: rpm-php-pearprov >= 4.0.2-98
18 Obsoletes: php-pear-Pager_Sliding
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 If you have data that needs paging (ie 1-10 on page one, 11-20 on page
24 two) this class can help. Pass it an array of data and it will sort it
25 into pages, picking up the current page id from the url. It can also
26 give you back/next and page number links taking the current url and
27 adding the correct page id to it.
29 In PEAR status of this package is: %{_status}.
32 Ta klasa pomaga w sytuacji, kiedy dane wymagaj± podzia³u na strony
33 (np. pozycje 1-10 na pierwszej stronie, 11-20 na drugiej itd.). Po
34 przekazaniu tablicy danych klasa dzieli na strony, pobieraj±c
35 identyfikator strony z URL-a. Mo¿e tak¿e podaæ odno¶niki do
36 poprzedniej i nastêpnej strony, bior±c aktualny URL i dodaj±c do niego
37 w³a¶ciwe identyfikatory stron.
39 Ta klasa ma w PEAR status: %{_status}.
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
48 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc %{_pearname}-%{version}/{examples,tests}
56 %dir %{php_pear_dir}/%{_class}
57 %{php_pear_dir}/%{_class}/*.php