]>
Commit | Line | Data |
---|---|---|
c94f457e | 1 | %include /usr/lib/rpm/macros.php |
0ecc1c6a | 2 | %define _class HTML |
3 | %define _subclass Menu | |
c94f457e AG |
4 | %define _status stable |
5 | %define _pearname %{_class}_%{_subclass} | |
fdaebd43 | 6 | |
c94f457e | 7 | Summary: %{_pearname} - generates HTML Menu from multidimensional hashes |
da130ced | 8 | Summary(pl.UTF-8): %{_pearname} - generowanie menu w HTML z wielowymiarowych hashy |
c94f457e | 9 | Name: php-pear-%{_pearname} |
2b3bb124 | 10 | Version: 2.1.3 |
e0c89cb7 | 11 | Release: 1 |
c94f457e AG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
2b3bb124 | 15 | # Source0-md5: e3e5c9bb8c26f93bb4310a0f2691a097 |
eade9f16 | 16 | URL: http://pear.php.net/package/HTML_Menu/ |
36585179 | 17 | BuildRequires: php-pear-PEAR |
bdd03644 | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
af2e8de2 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
c94f457e AG |
20 | Requires: php-pear |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
e0c89cb7 ER |
24 | # exclude optional dependencies |
25 | %define _noautoreq 'pear(HTML/Template/Sigma.*)' | |
26 | ||
c94f457e AG |
27 | %description |
28 | With the %{_pearname} class one can easily create and maintain a | |
29 | navigation structure for website, configuring it via a multidimensional | |
30 | hash structure. Different modes for the HTML output are supported. | |
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) | |
bdd03644 ER |
60 | %doc install.log optional-packages.txt |
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} |