]>
Commit | Line | Data |
---|---|---|
72ff36db PG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class HTML | |
3 | %define _subclass Template | |
4 | %define _pearname %{_class}_%{_subclass}_Flexy | |
5 | Summary: %{_pearname} - A Flexible Caching Template Engine Based on SimpleTemplate | |
6 | Summary(pl): %{_pearname} | |
7 | Name: php-pear-%{_pearname} | |
8 | Version: 0.1 | |
9 | Release: 1 | |
10 | License: PHP 2.02 | |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
13 | Patch0: %{name}-cosmetic.patch | |
14 | URL: http://pear.php.net/ | |
15 | BuildRequires: rpm-php-pearprov | |
16 | Requires: php-pear | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Flexy Template is a Template Engine to php code convertor, based on | |
22 | Simple Template, and similar to Smarty. It should be very fast, and is | |
23 | easy to extend to develop or use any template syntax you like. Default | |
24 | filter (SimpleTags) includes: variables, foreach loops, conditionals, | |
25 | method calls, includes, Handles urlencoded tags - so you can edit the | |
26 | template in mozilla etc. Other filters include: | |
27 | - RtfSimpletags - to make RTF/Word documents, | |
28 | - BodyOnly - to strip header and footer from a template, | |
29 | - Php - to strip php code from template, | |
30 | - Email - For parsing email templates. | |
31 | ||
32 | %prep | |
33 | %setup -q -c | |
34 | cd %{_pearname}-%{version} | |
35 | %patch0 -p1 | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}/Flexy/Filter | |
40 | ||
41 | install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass} | |
42 | install %{_pearname}-%{version}/Flexy/Filter/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}/Flexy/Filter/ | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc %{_pearname}-%{version}/Flexy/example.ini | |
50 | %dir %{php_pear_dir}/%{_class}/%{_subclass}/Flexy | |
51 | %dir %{php_pear_dir}/%{_class}/%{_subclass}/Flexy/Filter | |
52 | %{php_pear_dir}/%{_class}/%{_subclass}/*.php | |
53 | %{php_pear_dir}/%{_class}/%{_subclass}/Flexy/Filter/*.php |