]>
Commit | Line | Data |
---|---|---|
a36564ab AG |
1 | %define _class Event |
2 | %define _subclass Dispatcher | |
31cc0a6c | 3 | %define _status stable |
a36564ab AG |
4 | %define _pearname %{_class}_%{_subclass} |
5 | ||
17a7d027 | 6 | Summary: %{_pearname} - dispatch notifications using PHP callbacks |
96361c13 | 7 | Summary(pl.UTF-8): %{_pearname} - przekazywanie powiadomień za pośrednictwem callbacków PHP |
a36564ab | 8 | Name: php-pear-%{_pearname} |
462f6bee | 9 | Version: 1.1.0 |
4c7c632f | 10 | Release: 2 |
39971786 | 11 | Epoch: 0 |
a36564ab AG |
12 | License: BSD |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
462f6bee | 15 | # Source0-md5: cf21ab8b519110a0d574a6822a67a6d8 |
a36564ab | 16 | URL: http://pear.php.net/package/Event_Dispatcher/ |
3380b316 | 17 | BuildRequires: php-pear-PEAR |
018ed6c4 | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
9a32d257 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
a36564ab | 20 | Requires: php-pear |
b813e6d2 | 21 | Obsoletes: php-pear-Event_Dispatcher-tests |
a36564ab AG |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | The Event_Dispatcher acts as a notification dispatch table. It is used | |
27 | to notify other objects of interesting things. This information is | |
28 | encapsulated in Event_Notification objects. Client objects register | |
29 | themselves with the Event_Dispatcher as observers of specific | |
30 | notifications posted by other objects. When an event occurs, an object | |
31 | posts an appropriate notification to the Event_Dispatcher. The | |
32 | Event_Dispatcher dispatches a message to each registered observer, | |
33 | passing the notification as the sole argument. | |
34 | ||
35 | In PEAR status of this package is: %{_status}. | |
36 | ||
466284c9 JR |
37 | %description -l pl.UTF-8 |
38 | Event_Dispatcher działa jako tabela przekazywania powiadomień. Służy | |
39 | do powiadamiania innych obiektów o interesujących rzeczach. Informacje | |
40 | te są opakowywane w obiekty Event_Notification. Obiekty klienckie | |
41 | rejestrują się w klasie Event_Dispatcher jako obserwatorzy konkretnych | |
42 | powiadomień wysyłanych przez inne obiekty. Kiedy zachodzi zdarzenie, | |
43 | obiekt wysyła odpowiednie powiadomienie do klasy Event_Dispatcher. | |
44 | Event_Dispatcher przekazuje tę wiadomość do każdego zarejestrowanego | |
45 | obserwatora, przekazując powiadomienie jako jedyny argument. | |
17a7d027 JB |
46 | |
47 | Ta klasa ma w PEAR status: %{_status}. | |
a36564ab AG |
48 | |
49 | %prep | |
018ed6c4 | 50 | %pear_package_setup |
a36564ab AG |
51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
018ed6c4 ER |
54 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
55 | %pear_package_install | |
a36564ab AG |
56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
018ed6c4 ER |
62 | %doc install.log |
63 | %doc docs/%{_pearname}/examples | |
64 | %{php_pear_dir}/.registry/*.reg | |
a36564ab | 65 | %{php_pear_dir}/%{_class} |