]> git.pld-linux.org Git - packages/php-pear-File.git/blobdiff - php-pear-File.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-File.git] / php-pear-File.spec
index 27eb0a4cca416843fc7918dd4fa20478cce4082b..96e36345669c7515ecbe079504a62a978f281905 100644 (file)
@@ -1,22 +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):   %{_pearname} - Podstawowe sposoby operacji na plikach i katalogach
-Name:          php-pear-%{_pearname}
-Version:       1.2.2
-Release:       5
+%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-packagexml2cl
+BuildRequires: php-pear-PEAR >= 1:1.6.0
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
-Requires:      php-common >= 3:4.2.0
+BuildRequires: rpmbuild(macros) >= 1.573
+Requires:      php(core) >= 4.2.0
+Requires:      php(pcre)
 Requires:      php-pear
-Requires:      php-pear-PEAR-core
-Requires:      php-pcre
+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)
 
@@ -25,30 +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
-Dostarcza prosty dostêp do zapisu/odczytu plików razem z prostymi
-metodami operacji na ¶cie¿kach. Dostarcza tak¿e interfejsu do plików
+%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):   Testy dla PEAR::%{_pearname}
-Group:         Development
-Requires:      %{name} = %{version}-%{release}
-
-%description tests
-Tests for PEAR::%{_pearname}.
-
-%description tests -l pl
-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}
@@ -59,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
This page took 0.077971 seconds and 4 git commands to generate.