]>
Commit | Line | Data |
---|---|---|
f66b925c PG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Pager | |
3 | %define _pearname %{_class} | |
4 | Summary: %{_class}_%{_subclass} - Generic data paging class | |
5 | Summary(pl): %{_class}_%{_subclass} - Podstawowa klasa pagera | |
6 | Name: php-pear-%{_pearname} | |
7 | Version: 1.0.3 | |
8 | Release: 1 | |
9 | License: PHP 2.02 | |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
12 | BuildRequires: rpm-php-pearprov | |
13 | URL: http://pear.php.net/ | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | If you have data that needs paging (ie 1-10 on page one, 11-20 on page | |
19 | two) this class can help. Pass it an array of data and it will sort it | |
20 | into pages, picking up the current page id from the url. It can also | |
21 | give you back/next and page number links taking the current url and | |
22 | adding the correct page id to it. | |
23 | ||
24 | %description -l pl | |
25 | ||
26 | %prep | |
27 | %setup -q -c | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | cd %{_pearname}-%{version} | |
32 | ||
33 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} | |
34 | ||
35 | install %{_class}.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/ | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %dir %{php_pear_dir}/%{_class} | |
43 | %doc %{_pearname}-%{version}/example.php | |
44 | %{php_pear_dir}/%{_class}/*.php |