]> git.pld-linux.org Git - packages/Smarty.git/blob - Smarty.spec
- small typo fixed
[packages/Smarty.git] / Smarty.spec
1 # $Id: Smarty.spec,v 1.2 2003-03-17 21:13:33 adamg Exp $
2 %define         _doc_version    2.4.0
3 Summary:        Template engine for PHP
4 Summary(pl):    System template'owy dla PHP
5 Name:           Smarty
6 Version:        2.4.2
7 Release:        1
8 License:        LGPL
9 Group:          Development/Languages/PHP
10 Source0:        http://smarty.php.net/distributions/%{name}-%{version}.tar.gz
11 Source1:        http://smarty.php.net/distributions/manual/en/%{name}-%{_doc_version}-docs.tar.gz
12 Requires:       php
13 Requires:       php-pear
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Smarty is a template engine for PHP. Smarty provides your basic
19 variable substitution and dynamic block functionality, and also takes
20 a step further to be a "smart" template engine, adding features such
21 as configuration files, template functions, variable modifiers, and
22 making all of this functionality as easy as possible to use for both
23 programmers and template designers.
24
25 %description -l pl
26 Smarty jest systemem template'owym dla PHP. Smarty pozwala na
27 podstawowe podstawianie warto¶ci zmiennych i na zaawansowane operacje
28 na tablicach.
29
30 %package -n Smarty-doc
31 Summary:        Template engine for PHP - documentation
32 Summary(pl):    System template'owy dla PHP - dokumentacja
33 Version:        %{_doc_version}
34 Group:          Development/Languages/PHP
35
36 %description -n Smarty-doc
37 Documentation for Smarty template engine.
38
39 %description -n Smarty-doc -l pl
40 Dokumentacja do systemu template'owego Smarty.
41
42 %prep
43 %setup -q -a 0
44 %setup -q -a 1
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_datadir}/pear/%{name}
49 install -d $RPM_BUILD_ROOT%{_datadir}/pear/%{name}/plugins
50
51
52 install {Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{_datadir}/pear/%{name}
53 install debug.tpl $RPM_BUILD_ROOT%{_datadir}/pear/%{name}
54 install plugins/*.php $RPM_BUILD_ROOT%{_datadir}/pear/%{name}/plugins/
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc AUTHORS BUGS COPYING.lib CREDITS ChangeLog FAQ INSTALL NEWS QUICKSTART README RELEASE_NOTES RESOURCES TESTIMONIALS TODO
62 %dir %{_datadir}/pear/%{name}
63 %dir %{_datadir}/pear/%{name}/plugins
64 %{_datadir}/pear/Smarty/*.class.php
65 %{_datadir}/pear/%{name}/debug.tpl
66 %{_datadir}/pear/%{name}/plugins/*.php
67
68 %files -n Smarty-doc
69 %defattr(644,root,root,755)
70 %doc manual/*
This page took 0.063649 seconds and 4 git commands to generate.