1 %include /usr/lib/rpm/macros.php
3 %define _pearname %{_class}
4 Summary: %{_pearname} - generic data paging class
5 Summary(pl): %{_pearname} - podstawowa klasa do dzielenia na strony
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 # Source0-md5: c2c8d54835bb520bad373bf103b9eb17
12 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
13 URL: http://pear.php.net/
14 BuildRequires: rpm-php-pearprov >= 4.0.2-98
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 If you have data that needs paging (ie 1-10 on page one, 11-20 on page
21 two) this class can help. Pass it an array of data and it will sort it
22 into pages, picking up the current page id from the url. It can also
23 give you back/next and page number links taking the current url and
24 adding the correct page id to it.
27 Ta klasa pomaga w sytuacji, kiedy dane wymagaj± podzia³u na strony
28 (np. pozycje 1-10 na pierwszej stronie, 11-20 na drugiej itd.). Po
29 przekazaniu tablicy danych klasa dzieli na strony, pobieraj±c
30 identyfikator strony z URL-a. Mo¿e tak¿e podaæ odno¶niki do
31 poprzedniej i nastêpnej strony, bior±c aktualny URL i dodaj±c do niego
32 w³a¶ciwe identyfikatory stron.
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
41 install %{_pearname}-%{version}/%{_class}.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %dir %{php_pear_dir}/%{_class}
49 %doc %{_pearname}-%{version}/example.php
50 %{php_pear_dir}/%{_class}/*.php