1 %include /usr/lib/rpm/macros.php
3 %define _subclass Table
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - makes it easy to build console style tables
8 Summary(pl.UTF-8): %{_pearname} - proste tworzenie tabel konsolowych
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: 23c6973122c1106673c6ccce7375c4e2
16 URL: http://pear.php.net/package/Console_Table/
17 BuildRequires: php-pear-PEAR
18 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 BuildRequires: rpmbuild(macros) >= 1.300
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Provides methods such as addRow(), insertRow(), addCol() etc to build
26 Console tables. Can be with or without headers, and has various
29 In PEAR status of this package is: %{_status}.
31 %description -l pl.UTF-8
32 Dostarcza metod, takich jak addRow(), insertRow(), addCol(), itp. do
33 tworzenia tabel konsolowych. Mogą być robione z i bez nagłówków.
34 Posiada wiele opcji konfigurowalnych.
36 Ta klasa ma w PEAR status: %{_status}.
39 Summary: Tests for PEAR::%{_pearname}
40 Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
41 Group: Development/Languages/PHP
42 Requires: %{name} = %{epoch}:%{version}-%{release}
47 Tests for PEAR::%{_pearname}.
49 %description tests -l pl.UTF-8
50 Testy dla PEAR::%{_pearname}.
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{php_pear_dir}
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{php_pear_dir}/.registry/*.reg
67 %{php_pear_dir}/%{_class}/*.php
70 %defattr(644,root,root,755)
71 %{php_pear_dir}/tests/*