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