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