]>
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} |
6944999a | 9 | Version: 2.4.8 |
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 | |
6944999a | 15 | # Source0-md5: c8b03ee32ef9fdda4d2f8ffc54556fad |
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 |
eaeb60df | 22 | Obsoletes: php-pear-Pager-tests |
f66b925c PG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | If you have data that needs paging (ie 1-10 on page one, 11-20 on page | |
28 | two) this class can help. Pass it an array of data and it will sort it | |
29 | into pages, picking up the current page id from the url. It can also | |
30 | give you back/next and page number links taking the current url and | |
31 | adding the correct page id to it. | |
32 | ||
510e2177 | 33 | In PEAR status of this package is: %{_status}. |
cfd988b8 | 34 | |
d84ef5e6 JR |
35 | %description -l pl.UTF-8 |
36 | Ta klasa pomaga w sytuacji, kiedy dane wymagają podziału na strony | |
cf5c3ada | 37 | (np. pozycje 1-10 na pierwszej stronie, 11-20 na drugiej itd.). Po |
d84ef5e6 JR |
38 | przekazaniu tablicy danych klasa dzieli na strony, pobierając |
39 | identyfikator strony z URL-a. Może także podać odnośniki do | |
40 | poprzedniej i następnej strony, biorąc aktualny URL i dodając do niego | |
41 | właściwe identyfikatory stron. | |
f66b925c | 42 | |
cfd988b8 AG |
43 | Ta klasa ma w PEAR status: %{_status}. |
44 | ||
f66b925c | 45 | %prep |
e51800fd | 46 | %pear_package_setup |
f66b925c PG |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
e51800fd ER |
50 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
51 | %pear_package_install | |
f66b925c PG |
52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
e51800fd | 58 | %doc docs/%{_pearname}/* |
718f7d32 AG |
59 | %{php_pear_dir}/%{_class} |
60 | %{php_pear_dir}/%{_class}.php | |
e51800fd | 61 | %{php_pear_dir}/.registry/*.reg |