]> git.pld-linux.org Git - packages/php-pear-Pager.git/blob - php-pear-Pager.spec
- new rpm-php-requires/provides scripts
[packages/php-pear-Pager.git] / php-pear-Pager.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          Pager
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}
7 Version:        1.0.6
8 Release:        2
9 License:        PHP 2.02
10 Group:          Development/Languages/PHP
11 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 URL:            http://pear.php.net/
13 BuildRequires:  rpm-php-pearprov >= 4.0.2-98
14 Requires:       php-pear
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 If you have data that needs paging (ie 1-10 on page one, 11-20 on page
20 two) this class can help. Pass it an array of data and it will sort it
21 into pages, picking up the current page id from the url. It can also
22 give you back/next and page number links taking the current url and
23 adding the correct page id to it.
24
25 %description -l pl
26 Ta klasa pomaga w sytuacji, kiedy dane wymagaj± podzia³u na strony
27 (np. pozycje 1-10 na pierwszej stronie, 11-20 na drugiej itd.). Po
28 przekazaniu tablicy danych klasa dzieli na strony, pobieraj±c
29 identyfikator strony z URL-a. Mo¿e tak¿e podaæ odno¶niki do
30 poprzedniej i nastêpnej strony, bior±c aktualny URL i dodaj±c do niego
31 w³a¶ciwe identyfikatory stron.
32
33 %prep
34 %setup -q -c
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
39
40 install %{_pearname}-%{version}/%{_class}.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %dir %{php_pear_dir}/%{_class}
48 %doc %{_pearname}-%{version}/example.php
49 %{php_pear_dir}/%{_class}/*.php
This page took 0.195201 seconds and 4 git commands to generate.