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