]> git.pld-linux.org Git - packages/Smarty-plugin-paginate.git/blob - Smarty-plugin-paginate.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/Smarty-plugin-paginate.git] / Smarty-plugin-paginate.spec
1 %define         php_min_version 5.0.0
2 Summary:        Smarty plugin for data set pagination
3 Name:           Smarty-plugin-paginate
4 Version:        1.6
5 Release:        6
6 License:        LGPL v2.1+
7 Group:          Development/Languages/PHP
8 Source0:        http://www.phpinsider.com/php/code/SmartyPaginate/SmartyPaginate-%{version}.tar.gz
9 # Source0-md5:  1407027bd2cc319cdb3b8535a498289d
10 URL:            http://www.phpinsider.com/php/code/SmartyPaginate/
11 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
12 Requires:       Smarty
13 Requires:       php(core) >= %{php_min_version}
14 Requires:       php(pcre)
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _smartydir      %{_datadir}/php/Smarty
19
20 %description
21 SmartyPaginate is a data pagination class for the Smarty template
22 engine.
23
24 Often times when you display a large result set on a web page (such as
25 a database query), you will want to break it up across multiple pages
26 with "previous" and "next" links that aid in navigating through the
27 data. SmartyPaginate automates the task of keeping track of the
28 pagination and displaying pagination navigation links.
29
30 %prep
31 %setup -q -n SmartyPaginate-%{version}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_smartydir}/plugins,%{php_data_dir}}
36 cp -a libs/SmartyPaginate.class.php $RPM_BUILD_ROOT%{php_data_dir}
37 cp -a plugins/*.php $RPM_BUILD_ROOT%{_smartydir}/plugins
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc NEWS README
45 %{php_data_dir}/*.class.php
46 %{_smartydir}/plugins/*.php
This page took 0.068597 seconds and 3 git commands to generate.