]>
Commit | Line | Data |
---|---|---|
3b08a55b ER |
1 | %define engine phptemplate |
2 | Summary: Drupal PHPTemplate theme engine | |
68317171 | 3 | Summary(pl.UTF-8): Silnik motywów Drupala PHPTemplate |
3b08a55b ER |
4 | Name: drupal-themeengine-%{engine} |
5 | Version: 4.6.0 | |
9bbe6284 | 6 | Release: 0.3 |
3b08a55b ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | Source0: http://drupal.org/files/projects/%{engine}-%{version}.tar.gz | |
10 | # Source0-md5: 54604c9ce9e3a760126152badb0f401d | |
11 | URL: http://drupal.org/project/phptemplate | |
12 | Requires: drupal >= 4.6.0 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
9bbe6284 ER |
16 | %define _drupaldir %{_datadir}/drupal |
17 | %define _enginedir %{_drupaldir}/themes/engines | |
3b08a55b ER |
18 | |
19 | %description | |
20 | A theme engine that allows you to use template files written in pure | |
79e3444b | 21 | PHP. These template files do not need to be processed by the theme |
3b08a55b ER |
22 | engine, and as such execute a lot faster than most other template |
23 | engines. Another major advantage to using PHP as your template | |
24 | language, is flexibility, as the advanced user can access any | |
25 | information / functionality available in the Drupal API, and is not | |
26 | restricted to what the template engine / language allows him to do. | |
27 | ||
28 | Several of the largest Drupal sites, such as Drupal.org and | |
29 | Spreadfirefox.com use PHPTemplate based themes. | |
30 | ||
31 | The 'default' template for this engine is box_grey by Adrian Simmons. | |
32 | ||
370cb749 JR |
33 | %description -l pl.UTF-8 |
34 | Ten silnik motywów umożliwia używanie plików szablonów napisanych w | |
35 | czystym PHP. Te pliki szablonów nie wymagają przetwarzania przez | |
36 | silnik motywów i jako takie wykonują się dużo szybciej niż większość | |
37 | innych silników motywów. Inną dużą zaletą używania PHP jako języka | |
38 | szablonów jest elastyczność, jako że zaawansowany użytkownik może | |
39 | dostać się do każdej informacji/funkcjonalności dostępnej w API | |
40 | Drupala i nie jest ograniczony do tego, na co pozwala mu silnik/język | |
41 | szablonów. | |
79e3444b | 42 | |
370cb749 JR |
43 | Kilka największych serwisów opartych na Drupalu, takich jak Drupal.org |
44 | czy Spreadfirefox.com używa motywów opartych na PHPTemplate. | |
79e3444b | 45 | |
370cb749 | 46 | "Domyślnym" szablonem dla tego silnika jest box_grey Adriana Simmonsa. |
79e3444b | 47 | |
3b08a55b ER |
48 | %prep |
49 | %setup -q -n %{engine} | |
50 | rm -f LICENSE.txt # GPL v2 | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | install -d $RPM_BUILD_ROOT%{_enginedir}/%{engine} | |
55 | ||
56 | install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine} | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc *.txt | |
64 | %{_enginedir}/%{engine} |