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