X-Git-Url: https://git.pld-linux.org/?p=packages%2Fphp-pear-File.git;a=blobdiff_plain;f=php-pear-File.spec;h=96e36345669c7515ecbe079504a62a978f281905;hp=d114c792d7f92bc33c85f8606519e05ff0528c22;hb=HEAD;hpb=9bdf7fcc45f5fe79e237dfa62a4a9ca0fb5d4841 diff --git a/php-pear-File.spec b/php-pear-File.spec index d114c79..96e3634 100644 --- a/php-pear-File.spec +++ b/php-pear-File.spec @@ -1,24 +1,26 @@ -%include /usr/lib/rpm/macros.php -%define _class File -%define _status stable -%define _pearname %{_class} -Summary: %{_pearname} - Common file and directory routines -Summary(pl.UTF-8): %{_pearname} - Podstawowe sposoby operacji na plikach i katalogach -Name: php-pear-%{_pearname} -Version: 1.2.2 -Release: 6 +%define status alpha +%define pearname File +Summary: %{pearname} - Common file and directory routines +Summary(pl.UTF-8): %{pearname} - Podstawowe sposoby operacji na plikach i katalogach +Name: php-pear-%{pearname} +Version: 1.4.1 +Release: 1 License: PHP Group: Development/Languages/PHP -Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz -# Source0-md5: ba8f020b70fb6a37c6258e0e42033aad +Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz +# Source0-md5: 3cf96cff0ae67c495dbc6714b0cb032a URL: http://pear.php.net/package/File/ -BuildRequires: php-pear-PEAR +BuildRequires: php-packagexml2cl +BuildRequires: php-pear-PEAR >= 1:1.6.0 BuildRequires: rpm-php-pearprov >= 4.4.2-11 -BuildRequires: rpmbuild(macros) >= 1.300 +BuildRequires: rpmbuild(macros) >= 1.573 +Requires: php(core) >= 4.2.0 Requires: php(pcre) -Requires: php-common >= 3:4.2.0 Requires: php-pear -Requires: php-pear-PEAR-core +Requires: php-pear-File_CSV +Requires: php-pear-File_Util +Requires: php-pear-PEAR-core >= 1:1.5.3 +Obsoletes: php-pear-File-tests BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -27,32 +29,21 @@ 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}. +In PEAR status of this package is: %{status}. %description -l pl.UTF-8 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.UTF-8): Testy dla PEAR::%{_pearname} -Group: Development/Languages/PHP -Requires: %{name} = %{version}-%{release} -AutoReq: no -AutoProv: no - -%description tests -Tests for PEAR::%{_pearname}. - -%description tests -l pl.UTF-8 -Testy dla PEAR::%{_pearname}. +Ta klasa ma w PEAR status: %{status}. %prep %pear_package_setup +%build +packagexml2cl package.xml > ChangeLog + %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{php_pear_dir} @@ -63,11 +54,6 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc install.log +%doc ChangeLog 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/* +%{php_pear_dir}/File.php