]> git.pld-linux.org Git - packages/Smarty.git/blob - Smarty.spec
- up to 2.6.2
[packages/Smarty.git] / Smarty.spec
1 %define         _doc_version    2.6.2
2 %include        /usr/lib/rpm/macros.php
3 Summary:        Template engine for PHP
4 Summary(pl):    System szablonów dla PHP
5 Name:           Smarty
6 Version:        2.6.2
7 Release:        1
8 License:        LGPL
9 Group:          Development/Languages/PHP
10 Source0:        http://smarty.php.net/distributions/%{name}-%{version}.tar.gz
11 # Source0-md5:  876313391dcf6452e3867169230ec4d9
12 Source1:        http://smarty.php.net/distributions/manual/en/%{name}-%{_doc_version}-docs.tar.gz
13 # Source1-md5:  fd5e90f19a002777f3fed6fc51106ce4
14 BuildRequires:  rpm-php-pearprov >= 4.3
15 Requires:       php
16 Requires:       php-pear
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Smarty is a template engine for PHP. Smarty provides your basic
22 variable substitution and dynamic block functionality, and also takes
23 a step further to be a "smart" template engine, adding features such
24 as configuration files, template functions, variable modifiers, and
25 making all of this functionality as easy as possible to use for both
26 programmers and template designers.
27
28 %description -l pl
29 Smarty jest systemem szablonów dla PHP. Pozwala na podstawowe
30 podstawianie warto¶ci zmiennych oraz dynamiczne operacje na blokach;
31 idzie o krok dalej, aby byæ "m±drym" silnikiem szablonów, dodaj±c
32 takie mo¿liwo¶ci jak pliki konfiguracyjne, funkcje, zmienne
33 modyfikatory oraz czyni±c ca³± funkcjonalno¶æ jak naj³atwiejsz± w
34 u¿yciu jednocze¶nie dla programistów i projektantów szablonów.
35
36 %package doc
37 Summary:        Template engine for PHP - documentation
38 Summary(pl):    System szablonów dla PHP - dokumentacja
39 Version:        %{_doc_version}
40 Group:          Development/Languages/PHP
41
42 %description doc
43 Documentation for Smarty template engine.
44
45 %description doc -l pl
46 Dokumentacja do systemu szablonów Smarty.
47
48 %prep
49 %setup -q -a 1
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/{core,plugins}
54
55 install libs/{Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
56 install libs/debug.tpl $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
57 install libs/core/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/core
58 install libs/plugins/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/plugins
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
66 %dir %{php_pear_dir}/%{name}
67 %dir %{php_pear_dir}/%{name}/core
68 %dir %{php_pear_dir}/%{name}/plugins
69 %{php_pear_dir}/%{name}/*.class.php
70 %{php_pear_dir}/%{name}/debug.tpl
71 %{php_pear_dir}/%{name}/core/*.php
72 %{php_pear_dir}/%{name}/plugins/*.php
73
74 %files doc
75 %defattr(644,root,root,755)
76 %doc manual/*
This page took 0.054904 seconds and 3 git commands to generate.