]> git.pld-linux.org Git - packages/Smarty.git/blob - Smarty.spec
1852829d2eb3886653c3f58bdbd36b47bd9171e9
[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 # Source0-md5:  9acb557dc4e344fadc2ab2270c74dfa2
12 Source1:        http://smarty.php.net/distributions/manual/en/%{name}-%{version}-docs.tar.gz
13 # Source1-md5:  22bd33a9b9cf497e80eb21659b4c2163
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}/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/plugins/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/plugins
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
65 %dir %{php_pear_dir}/%{name}
66 %dir %{php_pear_dir}/%{name}/plugins
67 %{php_pear_dir}/%{name}/*.class.php
68 %{php_pear_dir}/%{name}/debug.tpl
69 %{php_pear_dir}/%{name}/plugins/*.php
70
71 %files doc
72 %defattr(644,root,root,755)
73 %doc manual/*
This page took 0.030759 seconds and 2 git commands to generate.