]>
Commit | Line | Data |
---|---|---|
0bd2820d ER |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _status alpha | |
3 | %define _pearname File_CSV | |
4 | %define subver alpha1 | |
5 | %define rel 1 | |
6 | Summary: %{_pearname} - Read and write of CSV files | |
7 | Name: php-pear-%{_pearname} | |
8 | Version: 1.0.0 | |
9 | Release: 0.%{subver}.%{rel} | |
10 | License: New BSD | |
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 | |
17 | Requires: php-pear | |
18 | Requires: php-pear-File >= 1.4.0-0.alpha1 | |
dc31c31e | 19 | Requires: php-pear-PEAR-core >= 1:1.7.0 |
0bd2820d ER |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Read and write of CSV files as well as discovering the format the CSV | |
25 | file is in. | |
26 | ||
27 | Supports headers and is excel compatible, i.e. ="0004" outputs as 0004 | |
28 | (only read wise) | |
29 | ||
30 | For more information on CSV: <http://rfc.net/rfc4180.html> | |
31 | ||
32 | In PEAR status of this package is: %{_status}. | |
33 | ||
34 | %prep | |
35 | %pear_package_setup | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
40 | %pear_package_install | |
41 | ||
42 | # don't care for tests | |
43 | rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname} | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc install.log | |
51 | %doc docs/File_CSV/FILE_CSV_LICENSE | |
52 | %{php_pear_dir}/.registry/*.reg | |
53 | %{php_pear_dir}/File/CSV.php |