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