1 %define php_min_version 5.0.0
2 Summary: Smarty plugin for data set pagination
3 Name: Smarty-plugin-paginate
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
13 Requires: php(core) >= %{php_min_version}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _smartydir %{_datadir}/php/Smarty
21 SmartyPaginate is a data pagination class for the Smarty template
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.
31 %setup -q -n SmartyPaginate-%{version}
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
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
45 %{php_data_dir}/*.class.php
46 %{_smartydir}/plugins/*.php