]>
Commit | Line | Data |
---|---|---|
a36564ab AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Event | |
3 | %define _subclass Dispatcher | |
4 | %define _status beta | |
5 | %define _pearname %{_class}_%{_subclass} | |
6 | ||
7 | Summary: %{_pearname} - Dispatch notifications using PHP callbacks | |
8 | #Summary(pl): %{_pearname} - | |
9 | Name: php-pear-%{_pearname} | |
10 | Version: 0.9.1 | |
11 | Release: 1 | |
12 | License: BSD | |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
15 | # Source0-md5: 975cab848349c5e190ff773b107796c0 | |
16 | URL: http://pear.php.net/package/Event_Dispatcher/ | |
17 | BuildRequires: rpm-php-pearprov >= 4.0.2-98 | |
18 | Requires: php-pear | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The Event_Dispatcher acts as a notification dispatch table. It is used | |
24 | to notify other objects of interesting things. This information is | |
25 | encapsulated in Event_Notification objects. Client objects register | |
26 | themselves with the Event_Dispatcher as observers of specific | |
27 | notifications posted by other objects. When an event occurs, an object | |
28 | posts an appropriate notification to the Event_Dispatcher. The | |
29 | Event_Dispatcher dispatches a message to each registered observer, | |
30 | passing the notification as the sole argument. | |
31 | ||
32 | In PEAR status of this package is: %{_status}. | |
33 | ||
34 | #%description -l pl | |
35 | #... | |
36 | # | |
37 | #Ta klasa ma w PEAR status: %{_status}. | |
38 | ||
39 | %prep | |
40 | %setup -q -c | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} | |
45 | ||
46 | install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc %{_pearname}-%{version}/{tests,examples} | |
54 | %{php_pear_dir}/%{_class} |