]>
Commit | Line | Data |
---|---|---|
0ecc1c6a | 1 | %define _class HTML |
2 | %define _subclass Menu | |
c94f457e AG |
3 | %define _status stable |
4 | %define _pearname %{_class}_%{_subclass} | |
c94f457e | 5 | Summary: %{_pearname} - generates HTML Menu from multidimensional hashes |
da130ced | 6 | Summary(pl.UTF-8): %{_pearname} - generowanie menu w HTML z wielowymiarowych hashy |
c94f457e | 7 | Name: php-pear-%{_pearname} |
f3629944 | 8 | Version: 2.2.0 |
eec6cb96 | 9 | Release: 2 |
c94f457e AG |
10 | License: PHP 2.02 |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
f3629944 | 13 | # Source0-md5: 586d22fd2a07167c71e6f6ed11777c36 |
eade9f16 | 14 | URL: http://pear.php.net/package/HTML_Menu/ |
36585179 | 15 | BuildRequires: php-pear-PEAR |
bdd03644 | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
af2e8de2 | 17 | BuildRequires: rpmbuild(macros) >= 1.300 |
c94f457e | 18 | Requires: php-pear |
cf2a7acc | 19 | Suggests: php-pear-HTML_Template_Sigma |
c94f457e AG |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
e0c89cb7 ER |
23 | # exclude optional dependencies |
24 | %define _noautoreq 'pear(HTML/Template/Sigma.*)' | |
25 | ||
c94f457e AG |
26 | %description |
27 | With the %{_pearname} class one can easily create and maintain a | |
cf2a7acc ER |
28 | navigation structure for website, configuring it via a |
29 | multidimensional hash structure. Different modes for the HTML output | |
30 | are supported. | |
c94f457e | 31 | |
cb3052a0 | 32 | In PEAR status of this package is: %{_status}. |
c94f457e | 33 | |
583831cb JR |
34 | %description -l pl.UTF-8 |
35 | Za pomocą klasy HTML_Menu możliwe jest tworzenie i zarządzanie | |
36 | strukturą nawigacyjną strony WWW, konfigurowalną za pomocą | |
37 | wielowymiarowej struktury hashy. Obsługiwane są różne rodzaje wyjścia | |
d4c1dba2 | 38 | HTML. |
c94f457e AG |
39 | |
40 | Ta klasa ma w PEAR status: %{_status}. | |
41 | ||
42 | %prep | |
bdd03644 | 43 | %pear_package_setup |
c94f457e AG |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
bdd03644 ER |
47 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
48 | %pear_package_install | |
c94f457e AG |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
e0c89cb7 ER |
53 | %post |
54 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
55 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
56 | fi | |
57 | ||
c94f457e AG |
58 | %files |
59 | %defattr(644,root,root,755) | |
f3629944 | 60 | %doc install.log |
bdd03644 ER |
61 | %doc docs/%{_pearname}/examples |
62 | %{php_pear_dir}/.registry/*.reg | |
c94f457e | 63 | %{php_pear_dir}/%{_class}/*.php |
0f2a3534 | 64 | %{php_pear_dir}/%{_class}/%{_subclass} |