1 %include /usr/lib/rpm/macros.php
3 %define _pearname File_CSV
6 Summary: %{_pearname} - Read and write of CSV files
7 Name: php-pear-%{_pearname}
9 Release: 0.%{subver}.%{rel}
11 Group: Development/Languages/PHP
12 Source0: http://pear.php.net/get/%{_pearname}-%{version}%{subver}.tgz
13 # Source0-md5: a941ef2ec81cfc47a8f6d9290cb9d0af
14 URL: http://pear.php.net/package/File_CSV/
15 BuildRequires: php-pear-PEAR
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 Requires: php-pear-File >= 1.4.0-0.alpha1
19 Requires: php-pear-PEAR-core >= 1.7.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Read and write of CSV files as well as discovering the format the CSV
27 Supports headers and is excel compatible, i.e. ="0004" outputs as 0004
30 For more information on CSV: <http://rfc.net/rfc4180.html>
32 In PEAR status of this package is: %{_status}.
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{php_pear_dir}
42 # don't care for tests
43 rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname}
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %doc docs/File_CSV/FILE_CSV_LICENSE
52 %{php_pear_dir}/.registry/*.reg
53 %{php_pear_dir}/File/CSV.php