]>
Commit | Line | Data |
---|---|---|
f66b925c PG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Pager | |
3 | %define _pearname %{_class} | |
cfd988b8 AG |
4 | %define _status stable |
5 | ||
97b43bed | 6 | Summary: %{_pearname} - generic data paging class |
cc0d602d | 7 | Summary(pl.UTF-8): %{_pearname} - podstawowa klasa do dzielenia na strony |
f66b925c | 8 | Name: php-pear-%{_pearname} |
03f8ab78 | 9 | Version: 2.4.7 |
81c5cd45 | 10 | Release: 1 |
bcf8efc2 | 11 | Epoch: 0 |
f66b925c PG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
03f8ab78 | 15 | # Source0-md5: 412ca32d9c3e5038a801032e5ddc9b90 |
106eacbc | 16 | URL: http://pear.php.net/package/Pager/ |
5dc883bb | 17 | BuildRequires: php-pear-PEAR |
e51800fd | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
d8d4b332 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
dcc9bd3a | 20 | Requires: php-pear |
aa5be8ff | 21 | Obsoletes: php-pear-Pager_Sliding |
f66b925c PG |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
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. | |
31 | ||
510e2177 | 32 | In PEAR status of this package is: %{_status}. |
cfd988b8 | 33 | |
d84ef5e6 JR |
34 | %description -l pl.UTF-8 |
35 | Ta klasa pomaga w sytuacji, kiedy dane wymagają podziału na strony | |
cf5c3ada | 36 | (np. pozycje 1-10 na pierwszej stronie, 11-20 na drugiej itd.). Po |
d84ef5e6 JR |
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. | |
f66b925c | 41 | |
cfd988b8 AG |
42 | Ta klasa ma w PEAR status: %{_status}. |
43 | ||
e51800fd ER |
44 | %package tests |
45 | Summary: Tests for PEAR::%{_pearname} | |
cc0d602d | 46 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
919eaed1 | 47 | Group: Development/Languages/PHP |
e51800fd ER |
48 | Requires: %{name} = %{epoch}:%{version}-%{release} |
49 | AutoReq: no | |
5e053c1f | 50 | AutoProv: no |
e51800fd ER |
51 | |
52 | %description tests | |
53 | Tests for PEAR::%{_pearname}. | |
54 | ||
d84ef5e6 | 55 | %description tests -l pl.UTF-8 |
e51800fd ER |
56 | Testy dla PEAR::%{_pearname}. |
57 | ||
f66b925c | 58 | %prep |
e51800fd | 59 | %pear_package_setup |
f66b925c PG |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
e51800fd ER |
63 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
64 | %pear_package_install | |
f66b925c PG |
65 | |
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
e51800fd | 71 | %doc docs/%{_pearname}/* |
718f7d32 AG |
72 | %{php_pear_dir}/%{_class} |
73 | %{php_pear_dir}/%{_class}.php | |
e51800fd | 74 | %{php_pear_dir}/.registry/*.reg |
e51800fd ER |
75 | |
76 | %files tests | |
77 | %defattr(644,root,root,755) | |
78 | %{php_pear_dir}/tests/* |