]> git.pld-linux.org Git - packages/php-pear-File.git/blobdiff - php-pear-File.spec
- optional-packages.txt doesn't work good for extensions (which are installed at...
[packages/php-pear-File.git] / php-pear-File.spec
index c2eeb5fd761fbe6485b819c3cfb6803d5394f55c..27eb0a4cca416843fc7918dd4fa20478cce4082b 100644 (file)
@@ -1,17 +1,22 @@
 %include       /usr/lib/rpm/macros.php
 %define                _class          File
+%define                _status         stable
 %define                _pearname       %{_class}
 Summary:       %{_pearname} - Common file and directory routines
 Summary(pl):   %{_pearname} - Podstawowe sposoby operacji na plikach i katalogach
 Name:          php-pear-%{_pearname}
-Version:       1.0.2
-Release:       4
-License:       PHP 2.02
+Version:       1.2.2
+Release:       5
+License:       PHP
 Group:         Development/Languages/PHP
 Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
-URL:           http://pear.php.net/
-BuildRequires: rpm-php-pearprov >= 4.0.2-98
+# Source0-md5: ba8f020b70fb6a37c6258e0e42033aad
+URL:           http://pear.php.net/package/File/
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+Requires:      php-common >= 3:4.2.0
 Requires:      php-pear
+Requires:      php-pear-PEAR-core
+Requires:      php-pcre
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -20,26 +25,45 @@ Provides easy access to read/write to files along with some common
 routines to deal with paths. Also provides interface for handling CSV
 files.
 
+In PEAR status of this package is: %{_status}.
+
 %description -l pl
 Dostarcza prosty dostêp do zapisu/odczytu plików razem z prostymi
 metodami operacji na ¶cie¿kach. Dostarcza tak¿e interfejsu do plików
 CSV.
 
+Ta klasa ma w PEAR status: %{_status}.
+
+%package tests
+Summary:       Tests for PEAR::%{_pearname}
+Summary(pl):   Testy dla PEAR::%{_pearname}
+Group:         Development
+Requires:      %{name} = %{version}-%{release}
+
+%description tests
+Tests for PEAR::%{_pearname}.
+
+%description tests -l pl
+Testy dla PEAR::%{_pearname}.
+
 %prep
-%setup -q -c
+%pear_package_setup
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
-
-install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}
-install %{_pearname}-%{version}/%{_class}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc %{_pearname}-%{version}/tests/*
-%{php_pear_dir}/%{_class}/*.php
+%doc install.log
+%{php_pear_dir}/.registry/*.reg
 %{php_pear_dir}/*.php
+%{php_pear_dir}/%{_class}
+
+%files tests
+%defattr(644,root,root,755)
+%{php_pear_dir}/tests/*
This page took 0.040611 seconds and 4 git commands to generate.