1 %include /usr/lib/rpm/macros.php
3 %define _pearname %{_class}
6 Summary: %{_pearname} - generic data paging class
7 Summary(pl.UTF-8): %{_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: 0fadc2487621862f1c6e589737e360e1
16 URL: http://pear.php.net/package/Pager/
17 BuildRequires: php-pear-PEAR
18 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 BuildRequires: rpmbuild(macros) >= 1.300
21 Obsoletes: php-pear-Pager_Sliding
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 If you have data that needs paging (ie 1-10 on page one, 11-20 on page
27 two) this class can help. Pass it an array of data and it will sort it
28 into pages, picking up the current page id from the url. It can also
29 give you back/next and page number links taking the current url and
30 adding the correct page id to it.
32 In PEAR status of this package is: %{_status}.
34 %description -l pl.UTF-8
35 Ta klasa pomaga w sytuacji, kiedy dane wymagają podziału na strony
36 (np. pozycje 1-10 na pierwszej stronie, 11-20 na drugiej itd.). Po
37 przekazaniu tablicy danych klasa dzieli na strony, pobierając
38 identyfikator strony z URL-a. Może także podać odnośniki do
39 poprzedniej i następnej strony, biorąc aktualny URL i dodając do niego
40 właściwe identyfikatory stron.
42 Ta klasa ma w PEAR status: %{_status}.
45 Summary: Tests for PEAR::%{_pearname}
46 Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
47 Group: Development/Languages/PHP
48 Requires: %{name} = %{epoch}:%{version}-%{release}
53 Tests for PEAR::%{_pearname}.
55 %description tests -l pl.UTF-8
56 Testy dla PEAR::%{_pearname}.
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{php_pear_dir}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %doc docs/%{_pearname}/*
72 %{php_pear_dir}/%{_class}
73 %{php_pear_dir}/%{_class}.php
74 %{php_pear_dir}/.registry/*.reg
77 %defattr(644,root,root,755)
78 %{php_pear_dir}/tests/*