]> git.pld-linux.org Git - packages/Smarty.git/blame - Smarty.spec
- up to 2.6.26
[packages/Smarty.git] / Smarty.spec
CommitLineData
c8ccde9a 1%define doc_version 2.6.14
8e2cfc78 2%include /usr/lib/rpm/macros.php
0a03539f 3Summary: Template engine for PHP
554e6959 4Summary(pl.UTF-8): System szablonów dla PHP
0a03539f 5Name: Smarty
948e0427 6Version: 2.6.26
de57fced 7Release: 1
0a03539f
ŁJM
8License: LGPL
9Group: Development/Languages/PHP
de57fced 10Source0: http://www.smarty.net/distributions/%{name}-%{version}.tar.gz
948e0427 11# Source0-md5: e0da351443b8613e1013c481ab30cb84
c8ccde9a
ER
12# Source1Download: http://www.smarty.net/download-docs.php
13Source1: http://www.smarty.net/distributions/manual/en/%{name}-%{doc_version}-docs.tar.gz
f89c557a 14# Source1-md5: 5123152dd248898a84b96b806f551e78
ceb8190f 15Source2: %{name}-function.html_input_image.php
0b2b51c3 16URL: http://www.smarty.net/
57c04d03 17BuildRequires: rpm-php-pearprov >= 4.3
9dd07cd1 18Requires: php-common
0a03539f
ŁJM
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0a03539f 21
88a9ca9a
ER
22%define _smartydir %{_datadir}/php/Smarty
23
0a03539f
ŁJM
24%description
25Smarty is a template engine for PHP. Smarty provides your basic
26variable substitution and dynamic block functionality, and also takes
27a step further to be a "smart" template engine, adding features such
28as configuration files, template functions, variable modifiers, and
29making all of this functionality as easy as possible to use for both
30programmers and template designers.
31
b2a044db
JR
32%description -l pl.UTF-8
33Smarty jest systemem szablonów dla PHP. Pozwala na podstawowe
34podstawianie wartości zmiennych oraz dynamiczne operacje na blokach;
35idzie o krok dalej, aby być "mądrym" silnikiem szablonów, dodając
36takie możliwości jak pliki konfiguracyjne, funkcje, zmienne
37modyfikatory oraz czyniąc całą funkcjonalność jak najłatwiejszą w
38użyciu jednocześnie dla programistów i projektantów szablonów.
0a03539f 39
39e0217d 40%package doc
0a03539f 41Summary: Template engine for PHP - documentation
554e6959 42Summary(pl.UTF-8): System szablonów dla PHP - dokumentacja
c8ccde9a 43Version: %{doc_version}
0a03539f
ŁJM
44Group: Development/Languages/PHP
45
39e0217d 46%description doc
0a03539f
ŁJM
47Documentation for Smarty template engine.
48
b2a044db
JR
49%description doc -l pl.UTF-8
50Dokumentacja do systemu szablonów Smarty.
0a03539f
ŁJM
51
52%prep
0a03539f
ŁJM
53%setup -q -a 1
54
55%install
56rm -rf $RPM_BUILD_ROOT
88a9ca9a
ER
57install -d $RPM_BUILD_ROOT{%{_smartydir}/{internals,plugins},%{php_pear_dir}}
58
59install libs/{Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{_smartydir}
60install libs/debug.tpl $RPM_BUILD_ROOT%{_smartydir}
61install libs/internals/*.php $RPM_BUILD_ROOT%{_smartydir}/internals
62install libs/plugins/*.php $RPM_BUILD_ROOT%{_smartydir}/plugins
ceb8190f 63install %{SOURCE2} $RPM_BUILD_ROOT%{_smartydir}/plugins/function.html_input_image.php
0a03539f 64
88a9ca9a
ER
65# backards compatible
66ln -s %{_smartydir} $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
0a03539f
ŁJM
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
88a9ca9a 71# make compat symlink, the symlink is discarded using %ghost on package uninstall
3e1a4945 72%triggerpostun -- Smarty < 2.6.10-4
88a9ca9a
ER
73if [ -d %{php_pear_dir}/%{name}/plugins ]; then
74 mv %{php_pear_dir}/%{name}/plugins/* %{_smartydir}/plugins
75 rmdir %{php_pear_dir}/%{name}/plugins 2>/dev/null
76fi
77rmdir %{php_pear_dir}/%{name} 2>/dev/null || mv -v %{php_pear_dir}/%{name}{,.rpmsave}
78ln -s %{_smartydir} %{php_pear_dir}/%{name}
79
63fec699 80%post
81[ -e %{php_pear_dir}/%{name} ] || ln -s %{_smartydir} %{php_pear_dir}/%{name}
82
0a03539f
ŁJM
83%files
84%defattr(644,root,root,755)
749d428c 85%doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
88a9ca9a
ER
86%dir %{_smartydir}
87%dir %{_smartydir}/internals
88%dir %{_smartydir}/plugins
89%{_smartydir}/*.class.php
90%{_smartydir}/debug.tpl
91%{_smartydir}/internals/*.php
92%{_smartydir}/plugins/*.php
93
94# for the sake of bc
95%ghost %{php_pear_dir}/%{name}
0a03539f 96
39e0217d 97%files doc
0a03539f
ŁJM
98%defattr(644,root,root,755)
99%doc manual/*
This page took 0.075453 seconds and 4 git commands to generate.