1 %include /usr/lib/rpm/macros.php
4 %define _pearname %{_class}
7 Summary: %{_pearname} - Common file and directory routines
8 Summary(pl.UTF-8): %{_pearname} - Podstawowe sposoby operacji na plikach i katalogach
9 Name: php-pear-%{_pearname}
11 Release: 0.%{subver}.%{rel}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}%{subver}.tgz
15 # Source0-md5: 517436d7e68f0b2d3e27b938371e0ff0
16 URL: http://pear.php.net/package/File/
17 BuildRequires: php-packagexml2cl
18 BuildRequires: php-pear-PEAR >= 1:1.6.0
19 BuildRequires: rpm-php-pearprov >= 4.4.2-11
20 BuildRequires: rpmbuild(macros) >= 1.573
21 Requires: php-common >= 3:4.2.0
24 Requires: php-pear-File_CSV
25 Requires: php-pear-File_Util
26 Requires: php-pear-PEAR-core >= 1:1.5.3
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Provides easy access to read/write to files along with some common
32 routines to deal with paths. Also provides interface for handling CSV
35 In PEAR status of this package is: %{_status}.
37 %description -l pl.UTF-8
38 Dostarcza prosty dostęp do zapisu/odczytu plików razem z prostymi
39 metodami operacji na ścieżkach. Dostarcza także interfejsu do plików
42 Ta klasa ma w PEAR status: %{_status}.
45 Summary: Tests for PEAR::%{_pearname}
46 Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
47 Group: Development/Languages/PHP
48 Requires: %{name} = %{version}-%{release}
53 Tests for PEAR::%{_pearname}.
55 %description tests -l pl.UTF-8
56 Testy dla PEAR::%{_pearname}.
62 packagexml2cl package.xml > ChangeLog
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{php_pear_dir}
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %doc ChangeLog install.log
75 %{php_pear_dir}/.registry/*.reg
76 %{php_pear_dir}/%{_class}.php
79 %defattr(644,root,root,755)
80 %{php_pear_dir}/tests/*