]> git.pld-linux.org Git - packages/php-pear-Pager.git/blob - php-pear-Pager.spec
- AutoProv: no for -tests
[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:        2.3.6
10 Release:        1
11 Epoch:          0
12 License:        PHP 2.02
13 Group:          Development/Languages/PHP
14 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5:  5031872edf56baadf8c1e04b974e7037
16 URL:            http://pear.php.net/package/Pager/
17 BuildRequires:  php-pear-PEAR
18 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
19 Requires:       php-pear
20 Obsoletes:      php-pear-Pager_Sliding
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 If you have data that needs paging (ie 1-10 on page one, 11-20 on page
26 two) this class can help. Pass it an array of data and it will sort it
27 into pages, picking up the current page id from the url. It can also
28 give you back/next and page number links taking the current url and
29 adding the correct page id to it.
30
31 In PEAR status of this package is: %{_status}.
32
33 %description -l pl
34 Ta klasa pomaga w sytuacji, kiedy dane wymagaj± podzia³u na strony
35 (np. pozycje 1-10 na pierwszej stronie, 11-20 na drugiej itd.). Po
36 przekazaniu tablicy danych klasa dzieli na strony, pobieraj±c
37 identyfikator strony z URL-a. Mo¿e tak¿e podaæ odno¶niki do
38 poprzedniej i nastêpnej strony, bior±c aktualny URL i dodaj±c do niego
39 w³a¶ciwe identyfikatory stron.
40
41 Ta klasa ma w PEAR status: %{_status}.
42
43 %package tests
44 Summary:        Tests for PEAR::%{_pearname}
45 Summary(pl):    Testy dla PEAR::%{_pearname}
46 Group:          Development/Languages/PHP
47 Requires:       %{name} = %{epoch}:%{version}-%{release}
48 AutoReq:        no
49 AutoProv:       no
50
51 %description tests
52 Tests for PEAR::%{_pearname}.
53
54 %description tests -l pl
55 Testy dla PEAR::%{_pearname}.
56
57 %prep
58 %pear_package_setup
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{php_pear_dir}
63 %pear_package_install
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc install.log
71 %doc docs/%{_pearname}/*
72 %dir %{php_pear_dir}/%{_class}
73 %{php_pear_dir}/.registry/*.reg
74 %{php_pear_dir}/%{_class}/*.php
75
76 %files tests
77 %defattr(644,root,root,755)
78 %{php_pear_dir}/tests/*
This page took 0.147511 seconds and 4 git commands to generate.