]> git.pld-linux.org Git - packages/Smarty.git/blob - Smarty.spec
- ra specyfic changes, release 2
[packages/Smarty.git] / Smarty.spec
1 %define         _doc_version    2.6.2
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.6.2
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:  876313391dcf6452e3867169230ec4d9
12 Source1:        http://smarty.php.net/distributions/manual/en/%{name}-%{_doc_version}-docs.tar.gz
13 # Source1-md5:  fd5e90f19a002777f3fed6fc51106ce4
14 BuildRequires:  rpm-php-pearprov >= 4.0.2
15 Requires:       php
16 Requires:       php-pear
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}/{core,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/core/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/core
59 install libs/plugins/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/plugins
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
67 %dir %{php_pear_dir}/%{name}
68 %dir %{php_pear_dir}/%{name}/core
69 %dir %{php_pear_dir}/%{name}/plugins
70 %{php_pear_dir}/%{name}/*.class.php
71 %{php_pear_dir}/%{name}/debug.tpl
72 %{php_pear_dir}/%{name}/core/*.php
73 %{php_pear_dir}/%{name}/plugins/*.php
74
75 %files doc
76 %defattr(644,root,root,755)
77 %doc manual/*
This page took 0.063105 seconds and 3 git commands to generate.