1 |
%define prj Horde_Notification |
2 |
|
3 |
%define xmldir %{_var}/lib/pear |
4 |
%define peardir %(pear config-get php_dir 2> /dev/null) |
5 |
|
6 |
Name: horde-notification |
7 |
Version: 0.0.2 |
8 |
Release: %mkrel 5 |
9 |
Summary: Horde Notification System |
10 |
License: LGPL |
11 |
Group: Networking/Mail |
12 |
Url: https://pear.horde.org/#horde_notification |
13 |
Source0: %{prj}-%{version}.tgz |
14 |
BuildArch: noarch |
15 |
Requires(pre): php-pear |
16 |
Requires: php-pear |
17 |
Requires: php-pear-channel-horde |
18 |
Requires: php-gettext |
19 |
BuildRequires: php-pear |
20 |
BuildRequires: php-pear-channel-horde |
21 |
|
22 |
|
23 |
%description |
24 |
The Notification:: class provides a subject-observer pattern for raising and |
25 |
showing messages of different types and to different listeners. |
26 |
|
27 |
%prep |
28 |
%setup -q -n %{prj}-%{version} |
29 |
|
30 |
%build |
31 |
mv ../package.xml . |
32 |
|
33 |
%install |
34 |
pear install --packagingroot %{buildroot} --nodeps package.xml |
35 |
|
36 |
%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} |
37 |
|
38 |
%__mkdir_p %{buildroot}%{xmldir} |
39 |
cp package.xml %{buildroot}%{xmldir}/%{prj}.xml |
40 |
|
41 |
%clean |
42 |
%__rm -rf %{buildroot} |
43 |
|
44 |
%post |
45 |
pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml |
46 |
|
47 |
%postun |
48 |
if [ "$1" -eq "0" ]; then |
49 |
pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj} |
50 |
fi |
51 |
|
52 |
%files |
53 |
%defattr(-, root, root) |
54 |
%{xmldir}/%{prj}.xml |
55 |
%dir %{peardir}/Horde/Notification |
56 |
%dir %{peardir}/Horde/Notification/Listener |
57 |
%{peardir}/Horde/Notification.php |
58 |
%{peardir}/Horde/Notification/Event.php |
59 |
%{peardir}/Horde/Notification/Listener.php |
60 |
%{peardir}/Horde/Notification/Listener/audio.php |
61 |
%{peardir}/Horde/Notification/Listener/javascript.php |
62 |
%{peardir}/Horde/Notification/Listener/mobile.php |
63 |
%{peardir}/Horde/Notification/Listener/status.php |
64 |
|
65 |
|
66 |
|