]>
Commit | Line | Data |
---|---|---|
916c8527 | 1 | %include /usr/lib/rpm/macros.php |
cb4f7cdc | 2 | %define _class File |
3 | %define _subclass IMC | |
916c8527 AG |
4 | %define _status beta |
5 | %define _pearname %{_class}_%{_subclass} | |
6 | ||
cb4f7cdc | 7 | Summary: %{_pearname} - create and parse Internet Mail Consortium-style files |
23a8ad5e | 8 | Summary(pl.UTF-8): %{_pearname} - tworzenie i parsowanie plików typu Internet Mail Consortium |
916c8527 AG |
9 | Name: php-pear-%{_pearname} |
10 | Version: 0.3 | |
7d5974f8 | 11 | Release: 4 |
916c8527 AG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
15 | # Source0-md5: 48b2b15969f5f5aecaf8e76eef03a6d1 | |
76d0b749 | 16 | URL: http://pear.php.net/package/File_IMC/ |
fe55e691 | 17 | BuildRequires: php-pear-PEAR |
03aea89e | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
9ac67c80 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
916c8527 AG |
20 | Requires: php-pear |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Allows you to programmatically create a vCard or vCalendar, and fetch | |
26 | the text. | |
27 | ||
28 | IMPORTANT: The array structure has changed slightly from | |
76f3c8f8 JB |
29 | Contact_Vcard_Parse. See the example output for the new structure. |
30 | Also different from Contact_Vcard is the use of a factory pattern. | |
31 | Again, see the examples. | |
916c8527 | 32 | |
cfb9b30a | 33 | In PEAR status of this package is: %{_status}. |
916c8527 | 34 | |
29a5a6d3 JR |
35 | %description -l pl.UTF-8 |
36 | Ta klasa pozwala programowo tworzyć pliki vCard i vCalendar oraz | |
37 | pobierać tekst. | |
76f3c8f8 | 38 | |
29a5a6d3 JR |
39 | WAŻNE: struktura tablic zmieniła się nieco w stosunku do |
40 | Contact_Vcard_Parse. Nową strukturę można obejrzeć w przykładzie. | |
41 | Użycie wzorców także różni się od Contact_Vcard, co również można | |
42 | zobaczyć w przykładach. | |
76f3c8f8 JB |
43 | |
44 | Ta klasa ma w PEAR status: %{_status}. | |
45 | ||
916c8527 | 46 | %prep |
03aea89e | 47 | %pear_package_setup |
916c8527 AG |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
03aea89e ER |
51 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
52 | %pear_package_install | |
916c8527 AG |
53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
03aea89e ER |
59 | %doc install.log |
60 | %doc docs/%{_pearname}/{sample.*,*.php} | |
61 | %{php_pear_dir}/.registry/*.reg | |
916c8527 AG |
62 | %{php_pear_dir}/%{_class}/*.php |
63 | %{php_pear_dir}/%{_class}/%{_subclass} |