]> git.pld-linux.org Git - packages/Smarty.git/blobdiff - Smarty.spec
- ra specyfic changes, release 2
[packages/Smarty.git] / Smarty.spec
index 86a8c13d05710500e81612e99e50d6c20a533d34..9aedeca7edce30401b09a6c312f817302ace53f1 100644 (file)
@@ -1,17 +1,22 @@
-%define                _doc_version    2.4.0
+%define                _doc_version    2.6.2
+%include       /usr/lib/rpm/macros.php
 Summary:       Template engine for PHP
 Summary(pl):   System szablonów dla PHP
 Name:          Smarty
-Version:       2.5.0
-Release:       1
+Version:       2.6.2
+Release:       2
 License:       LGPL
 Group:         Development/Languages/PHP
 Source0:       http://smarty.php.net/distributions/%{name}-%{version}.tar.gz
+# Source0-md5: 876313391dcf6452e3867169230ec4d9
 Source1:       http://smarty.php.net/distributions/manual/en/%{name}-%{_doc_version}-docs.tar.gz
+# Source1-md5: fd5e90f19a002777f3fed6fc51106ce4
+BuildRequires: rpm-php-pearprov >= 4.0.2
 Requires:      php
 Requires:      php-pear
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define                _noautoreq      "pear(?)"
 
 %description
 Smarty is a template engine for PHP. Smarty provides your basic
@@ -46,11 +51,12 @@ Dokumentacja do systemu szablon
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/pear/%{name}/plugins
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/{core,plugins}
 
-install libs/{Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{_datadir}/pear/%{name}
-install libs/debug.tpl $RPM_BUILD_ROOT%{_datadir}/pear/%{name}
-install libs/plugins/*.php $RPM_BUILD_ROOT%{_datadir}/pear/%{name}/plugins
+install libs/{Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
+install libs/debug.tpl $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
+install libs/core/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/core
+install libs/plugins/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/plugins
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -58,11 +64,13 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
-%dir %{_datadir}/pear/%{name}
-%dir %{_datadir}/pear/%{name}/plugins
-%{_datadir}/pear/%{name}/*.class.php
-%{_datadir}/pear/%{name}/debug.tpl
-%{_datadir}/pear/%{name}/plugins/*.php
+%dir %{php_pear_dir}/%{name}
+%dir %{php_pear_dir}/%{name}/core
+%dir %{php_pear_dir}/%{name}/plugins
+%{php_pear_dir}/%{name}/*.class.php
+%{php_pear_dir}/%{name}/debug.tpl
+%{php_pear_dir}/%{name}/core/*.php
+%{php_pear_dir}/%{name}/plugins/*.php
 
 %files doc
 %defattr(644,root,root,755)
This page took 0.033837 seconds and 4 git commands to generate.