]>
Commit | Line | Data |
---|---|---|
18a856e5 ER |
1 | %define status alpha |
2 | %define pearname File_CSV | |
18a856e5 ER |
3 | Summary: %{pearname} - Read and write of CSV files |
4 | Name: php-pear-%{pearname} | |
0bd2820d | 5 | Version: 1.0.0 |
e0e0b593 | 6 | Release: 2 |
0bd2820d ER |
7 | License: New BSD |
8 | Group: Development/Languages/PHP | |
18a856e5 ER |
9 | Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz |
10 | # Source0-md5: a3899032d51cee860a2008e8b294c885 | |
0bd2820d | 11 | URL: http://pear.php.net/package/File_CSV/ |
18a856e5 | 12 | BuildRequires: php-pear-PEAR >= 1:1.7.0 |
0bd2820d | 13 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
18a856e5 | 14 | BuildRequires: rpmbuild(macros) >= 1.580 |
e0e0b593 | 15 | Requires: php(pcre) |
0bd2820d ER |
16 | Requires: php-pear |
17 | Requires: php-pear-File >= 1.4.0-0.alpha1 | |
dc31c31e | 18 | Requires: php-pear-PEAR-core >= 1:1.7.0 |
0bd2820d ER |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Read and write of CSV files as well as discovering the format the CSV | |
24 | file is in. | |
25 | ||
26 | Supports headers and is excel compatible, i.e. ="0004" outputs as 0004 | |
27 | (only read wise) | |
28 | ||
29 | For more information on CSV: <http://rfc.net/rfc4180.html> | |
30 | ||
18a856e5 | 31 | In PEAR status of this package is: %{status}. |
0bd2820d ER |
32 | |
33 | %prep | |
34 | %pear_package_setup | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
39 | %pear_package_install | |
40 | ||
0bd2820d ER |
41 | %clean |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %doc install.log | |
47 | %doc docs/File_CSV/FILE_CSV_LICENSE | |
48 | %{php_pear_dir}/.registry/*.reg | |
49 | %{php_pear_dir}/File/CSV.php |