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